I’m currently taking a course in UiPath Academy, it is ‘Build Your First Process with Studio’ from RPA Developer Foundation Learning Path. And I’m still on the section ‘Build the Workflow - Part 2’. From this course, I have to build a robot that can save 4 outlook attachments (.xlsx) to a specified folder and then use the Excel Application Scope in the For Each activity to get a client code from the xlsx file. But when the robot executes the Excel Application Scope, I got an error like this:
“Excel Application Scope for each Invoice sheet: Failed opening the Excel file file-location\Invoices\Invoice 4.xlsx. Possible reasons: the file is corrupt, the file is already used by another process or you don’t have permissions to open the file.”
I have made it clear that the file doesn’t open when the robot runs and neither corrupt. Anyone can help?
Try to add some delay before to the Excel application scope and use kill process as a prerequisite to close all the excel files as a first step of execution.
Yes, I have checked the task manager and even in the Details tab I couldnt find the Excel task. My Excel package is also the latest version. So I tried to uninstall the Excel package, then install it again, and it works now Thank you!