I currently have an RPA procedure that writes to an excel 3 times - The job will work for say 5 rows but eventually will throw the error:
Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘System.Runtime.InteropServices.ComTypes.IConnectionPointContainer’
This happens at random and often when I restart the job again it will work.
Has anyone seen this before?
It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.
First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.
You can check out some of our resources directly, see below:
Always search first. It is the best way to quickly find your answer. Check out the icon for that.
Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.
Topic that contains most common solutions with example project files can be found here.
Read our official documentation where you can find a lot of information and instructions about each of our products:
Watch the videos on our official YouTube channel for more visual tutorials.
Meet us and our users on our Community Slack and ask your question there.
Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.
Thank you for helping us build our UiPath Community!
Cheers from your friendly
Hi @sean.ryan ,
Could you let us know if Excel or Workbook Activities are used ? And also if the Closing of the Workbooks is done ? Since there is a continuation of data being written to the same excel it might corrupt or the file might not be closed properly for the next write.
Maybe we could try the Closing of the Workbooks after each Write and check if that is able to resolve it.
Let us also know what are the versions of Studio and the Excel package version that is being used.
If you were able to resolve the error, do post the Solution and Close the topic.
It’s better to store the data in a datatable that’s populated by your loop, then after all the data is compiled just do one Write Range or Append Range.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.