https://userapps.support.sap.com/sap/support/knowledge/en/2019986
2019986 - ImportFile function will return an error -1 to empty file | SAP Knowledge Base Article
When you import an empty file using the ImportFile function, you will receive a wrong return value. Empty file is a file size of 0 bytes. Manual is written as...