Unable to publish automation, but can manually run from studio. Assembly compilation error: The namespace already contains a definition for 'Process'

Hello,

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.

@Bonk

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

Hope this helps

cheers

Thank you for the help.

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.

@Bonk

Is it possible to attach that process here?

What are versions of studio and the packages

Cheers

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.

Hi all,

I was able to resolve the issue by moving my process.xaml file into my Process folder, as opposed to it being in the main folder for the project.

6 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.