Hi Guys, I am having a reoccurring issue with this error. It keeps appearing after it has already completed the activity. I have updated Excel packages and it is still happening.
I’ve got 3 copy and pastes in a row, I have put a try catch in the first one and that works but I would rather figure why this is happening than use try-catches throughout.
You might be using a single Excel Process Scope activity for both Use Excel File activities. It is recommended to use a separate Excel Process Scope for each Use Excel File activity to avoid this exception.
Hi I have added another Excel process scope and still no luck. It is completing the activity but then failing prior to moving onto next activity so I cant understand why I am getting the error if it is completing it first. Thank you though.
Hi, No not creating new sheets, Sheet names already created. Excel file, Sheet and range documented in activity - all match.
The issue is that it is completing the activity and then erroring after it has already done what it should have done, which is why I cant understand why its not just moving onto next activity.
This happens due to Excel timing and COM sync issues. Even though the Copy/Paste activity completes, Excel is still processing when the next one starts, which causes the error. Add a short Delay between consecutive copy/paste actions, verify the ranges are valid and not overlapping, or replace multiple copy/paste steps with a single Read Range and Write Range. This is not a package issue but an Excel synchronization problem.
Could this still be the issue if it is completing the task though. The activity works as it should and copies and pastes the data and only fails after it has completed it?