Error while installing package in uipath studio

Hii folks,

When i am trying to install UiPath.SAP.BAPI.Activities get the following error.
image

My uipath studio version = 2019.3.0

1 Like

you need to install the 32bit (x86) .NET 4.0 Variant of the SAP Connector for Microsoft .NET 3.0 (NCo 3.0) which is a prerequisite for this activity pack. This connector also requires the Microsoft C++ Runtime DLL s version 10.0 (this is contained in the Microsoft Visual C++ 2010 Redistributable Package). Your SAP Administrator should be able to provide the installer.

The Studio log shows this error

11:56:20.1477 => [ERROR] [UiPath.Studio.Shared.Logging.OutputLogger] [39] Cannot load assembly: C:\Users\himan.nuget\packages\uipath.sap.bapi.activities/1.2.0\lib/net461/UiPath.SAP.BAPI.dll : System.IO.FileNotFoundException: Could not load file or assembly ‘sapnco, Version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23’ or one of its dependencies. The system cannot find the file specified.

Don’t get wrong but most of the problems are solved by a simple restart … i am sure you have done this if not please try restarting your computer.

If this doesn’t help please download the package again.

Note: I am assuming here that you have the 32bit (x86) .NET 4.0 Variant of the SAP Connector for Microsoft .NET 3.0 (NCo 3.0) and the Microsoft C++ Runtime DLL s version 10.0 (this is contained in the Microsoft Visual C++ 2010 Redistributable Package) installed in your computer.

I already Have 2013 version of visual c++ Redistributable version 12.0

how about this?

https://support.sap.com/en/product/connectors/msnet.html

I am not able to download the SAP connector from here. they asking for some credential

Your SAP Admin should be able to give you the credentials.

For others who are facing the same error System.IO.FileNotFoundException:
Probably the SAP Connector hasn’t been installed correctly or isn’t detected.

Check %SystemRoot%\Microsoft.NET\assembly\GAC_32\ for two folders:

  • sapnco
  • sapnco_utils

If they exist, then copy the containing 2 DLL files to following folder:
%UserProfile%\.nuget\packages\uipath.sap.bapi.activities\2.2.1\lib\net461

Reinstall UiPath.SAP.BAPI.Activities through UiPath Studio.

If this still doesn’t work, then temporarily enable assembly bind failure logging:


Check following file for the detailed error message:
[LogPath]\Default\UiPath.Studio.exe\sapnco*.HTM

2 Likes

Thanks Bro. you save my day.