I am trying to read multiple excel files (all .xlsx) in a loop, but I keep getting this error:
Execute failed: No valid entries or contents found, this is not a valid OOXML (Office Open XML) file
Any ideas on how I can fix this?
I am trying to read multiple excel files (all .xlsx) in a loop, but I keep getting this error:
Execute failed: No valid entries or contents found, this is not a valid OOXML (Office Open XML) file
Any ideas on how I can fix this?
Getting this error now:
Execute failed: org.apache.poi.openxml4j.exceptions.NotOfficeXmlFileException: No valid entries or contents found, this is not a valid OOXML (Office Open XML) file
These are the steps I see:
You could provide us wth a sample of one file that would not load to reproduce the error; if it does not contain any sensitive informations.
Hi @vivianmpoon,
it really sounds like you’re trying to read an invalid file. Which software was used to create the file? As @mlauber71 already pointed out, it would be helpful if you could share a sample of your data.
Best,
Simon
Unfortunately I am not able to share the data as it has sensitive information.
Not sure what the issue is because I used the exact same files from the prior month and it worked before (no changes were made to those files). The only thing that has changed is that I added a new file to the folder, so I tried to remove the new file to see if that was what’s causing the issue, but the error still persists
Hi @vivianmpoon
are you able to create a new file with dummy data that fails for you? So that I can take a look and investigate the issue.
Best,
Simon
Most likely it still is a problem with the Excel File. Another thing you might try is use R packages like openxlsx or readxl to import the Excel File and see if this succeeds. This could give you further information about the nature of the problem.
And as @SimonS said: an example reproducing the error might go a long way in solving this.
Funny thing…as I was trying to recreate the error, I saved the files in another folder and it worked! I guess there was something about that particular folder the files were originally in…
Perhaps some access restrictions?
However, glad to hear it’s working now
In theory it could be that your hard drive or ssd is compromised. You might want to check them and see if you have a working backup and file versioning.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.