I am having an issue publishing my automation to studio. The bot can manually be ran from studio. I am getting the following error message:
Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:
The namespace ‘UiPath_Bot_Name’ already contains a definition for ‘Process’
Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.Excel.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.Excel.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
There are a bunch more of these “assuming assembly reference” error messages. They are all formatted the same. Just cut them out for the sake of readability.
I am looking at the namespaces in the data manager tab, but am unsure of how to resolve the error. Any help would be appreciated.
First try closing the project rename project.json and reopen…Now go to project validation and validate the project…click on remove unused dependencies and do that…then again clsoe and redo renaming and opening it…looks like conflicts most of them should be handled
I followed your steps. I deleted the project.json and reopened the project. I had to re-install a few packages that are dependencies. Then I removed the unused ones. Unfortunately I had the same error when attempting to publish to orchestrator.
I am using Studio Version 2022.10.5 and the packages are:
UiPath.Excel.Activities
UiPath.System.Activities
UiPath.WebAPI.Activities
UiPath.Credentials.Activities
UiPath.UiAutomation.Activities
UiPath.Mail.Activities
Per company policy, I am not permitted to share our process itself. Apologies for the inconvenience.