I made a process in Studio and it can successfully run on my development computer. Yet, when I deployed it into server and try to run it from Orch/Robot I have the following error:
System exception at initialization: The invocation of the constructor on type 'UiPath.Core.Activities.SAP.Login' that matches the specified binding constraints threw an exception. at Source: Invoke SAP_Login workflow
For the first time I am using inbuilt SAP actions (they have not been used in any other project by anyone). I am using following packages:
All of them are also located on the server in .nuget\packages
I tried to change the UIAutomation package to lower version like 21.4.4 and 20.10.11 but it not helped.
This might be a silly question but is your Orchestrator and Robot on the Robot server in the same version as your Studio? Perhaps thereâs a difference between the versions in your environment causing this misbehaviour with this set of activities.
Well, the only thing that occurs to me is that all the UiPath packages in your project should be equal or below 2020.10.4, because thatâs what your Orchestrator can handle without a doubt and has all depency packages for.
Other than that, I canât thing about anything more, I havenât worked with SAP activities as of yet myself.
I solved the problem.
Firstly I used exception.ToString to identify what really was the problem:
System.Xaml.XamlObjectWriterException: The invocation of the constructor on type âUiPath.Core.Activities.SAP.Logonâ that matches the specified binding constraints threw an exception. â> System.IO.FileNotFoundException: Could not load file or assembly 'UiPath.Interop
Then I copied from my dev machine all files from C:\Users\USER\.nuget\packages\UiPath to prod machine. I did the same for .nuget\packages\UiPath.platform just to be sure.