Hi everybody.
After upgrading my studio to 24.4.3 (Enterprise) and upgrading the packages of a library and a process that use this library as referecence, the following error is occuring when compiling the process to upload it to orchestrator:
Blockquote
Unexpected error has occurred during the library compilation process:
Unable to create activity builder for Process\CheckUserExists.xaml. Reason was ‘Set property ‘API_Coupa.Users.Retrieve_User.out_JsonReturnedError’ threw an exception. Object of type ‘System.Activities.OutArgument1[Newtonsoft.Json.Linq.JObject]' cannot be converted to type 'System.Activities.OutArgument1[Newtonsoft.Json.Linq.JObject]’.’.
Both the library and the project use the same UiPath.System version (23.4.2) the error still occurs on 23.4.3. I didn’t test with versions 23.5-preview or 23.6 preview.
The output argument out_JsonReturnedError on the activity Retrieve_User being called on CheckUserExists.xaml is correctly assigned to a variable of type Newtonsoft.Json.Linq.JObject, so I dont think I have a casting error here.
No errors occurs when pushing the buttons Analyze File/Project or Validate File/Project also.
Yep, Same error
I created a new argument on the library, replacing the older one, compiled, and installed the new package version on the process. Same error.
Could you let us know what are the dependencies used in the Process and also the Library ?
Basically, trying to check if there are dependencies which have Newtonsoft.Json dependencies having different versions on different packages installed.
They partially fixed it, I also had a ticket open with UiPath support, it was closed as it now is ‘possible’ to compile in 23.4.3 but you need to repeatedly hit publish and after 3 or 5 times it completes. I didnt realize this when the ticket was closed as it seemed to compile immediately on simpler test projects. The issue indeed still persists however.