When you try to install UiPathTeam.SharePoint.Activities package in UiPath Studio, you might come across an error. This usually occurs when dependencies are not present in the package folder of UiPath.

Initial Error – The following package(s) can not be installed: UiPathTeam.SharePoint.Activities 1.5.2.

When you open the log, you can see the actual error, why the above package cannot be installed.
Error Log:
13:10:00.5933 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [10] NU1101: Unable to find package Microsoft.SharePoint2016.CSOM. No packages exist with this id in source(s): C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\, C:\Users\jdbots\AppData\Local\UiPath\app-20.10.4\.\Packages, Connect, https://gallery.uipath.com/api/v2, https://www.myget.org/F/workflow/, https://www.myget.org/F/workflow/, Local, Microsoft Visual Studio Offline Packages, Official
13:10:00.5943 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [10] NU1101: Unable to find package SharePointPnPCore2016. No packages exist with this id in source(s): C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\, C:\Users\jdbots\AppData\Local\UiPath\app-20.10.4\.\Packages, Connect, https://gallery.uipath.com/api/v2, https://www.myget.org/F/workflow/, https://www.myget.org/F/workflow/, Local, Microsoft Visual Studio Offline Packages, Official
13:10:04.3247 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [11] Cannot load assembly: C:\Users\jdbots\.nuget\packages\uipathteam.sharepoint.activities/1.5.2\lib/net452/UiPathTeam.SharePoint.Activities.dll : System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SharePoint.Client, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.SharePoint.Client, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainer.AddAssemblyInternal(Assembly assembly, String path)
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainer.<>c__DisplayClass9_0.<ProcessAssemblies>b__0(Tuple`2 range)
Fix
Go to Manage Package -> Settings -> Make sure nuget.org is checked.

If you don’t find nuget.org in user-defined package sources. Add a new source with the name nuget.org and source as https://api.nuget.org/v3/index.json. You can give any name but the source should be the same.

Now, you will notice that various other packages from nuget.org are listed in All Packages. Go ahead and install your required package again.
You must be logged in to post a comment.