We need to copy the file from shared location to local path. Excel looks fine and manually opening but while running via UiPath in production we are getting the error "Excel cannot open the file ‘abc.xlsx’ because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.
In test machine, it’s working fine but in Prod machine it’s throwing above mentioned error.
Try using kill activity and kill excel instances before copy paste
And check the path is given properly with extension for new and current location
If possible share property setting screen shot how u r passing values @sandhiyakp15
Thanks. 1. manually we checked the file, no issues
2.I have created the separate sequence in test machine, it’s running fine and copy pasting the file from same shared location with same input file as in Production.
3. Even config excel file from the same shared path is getting copy pasted.
4. Only Input file alone getting exception that too only in Production machine.
I have kept a log message between copy file and open file but while throwing the above exception, I didn’t see that log message. So it means, issue in copy file activity only right.
Include kill process and keep excel with continue on error as True
Try to create a copy of the file OR Create a new file in the same location and do copy activity. This is to segregate the issue. If new file is working fine - we can focus on the file which you want to fix