What could possibly be triggering this error
i make sure the file wasnot in use while the scrip was running
any ideas??
New KS ebilling has thrown an exception
Source: Private: Read range
Message: The process cannot access the file ‘C:\Users\u0159248\Desktop\Ebilli KS\BK PREW E-Billing Batch 6.xlsx’ because it is being used by another process.
Exception Type: IOException
System.IO.IOException: The process cannot access the file ‘C:\Users\u0159248\Desktop\Ebilli KS\BK PREW E-Billing Batch 6.xlsx’ because it is being used by another process.
** at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)**
** at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)**
** at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)**
The problem is that you’re opening the same Excel File at the same time. If you need to read the excel file again, just use the same “Read Range” that you used above, so you do not have to open it again
That error means that column name “SoldTo” does not exist in the datatable.
You can solve this by checking the Excel file to make sure there are no typos or checking the “Add Headers” checkbox in the Read Range properties.