The Field Dependencies Must Be A String Or Array Type With A Maximum Length Of '10000'

How to overcome the error "The field Dependencies must be a string or array type with a maximum length of '10000'?

Issue Description

When trying to upload a library to Orchestrator (from nuget.org) like Microsoft.Windows.Compatibility.5.0.0.nupkg, the following message occurs: "The field Dependencies must be a string or array type with a maximum length of '10000'."

Root Cause

The reason for the error is the Dependencies section in Microsoft.Windows.Compatibility.nuspec file contains more than 10000 characters. Including the latest version of UiPath Orchestrator, this is the current limit of the Dependencies field (column).

For example:

Resolution

  • Do not try to add this type of Library in Orchestrator
  • If this package executes a process that depends on it, place manually or programmatically the .nupkg file and its nupkg sub-dependencies in the following folder on the robot machine C:\Program Files\UiPath\Studio\Packages
  • If the above step is not desired to be performed, make sure that in the Robot machine under C:\Program Files\UiPath\Studio\NuGet.config added in the packageSources section the .

Note: Make sure that in the Robot machine, the access to api.nuget.org hostname for port 443 is not restricted.

Example:

<?xml version="1.0" encoding="utf-8"?>

In the case of the Robot machine environment, there is no access to external package source feeds,

  1. Create/use a non-mapped network path (e.g. \\server\Packages) and
  2. Add that impacted nupkg library and its nupkg sub-dependencies there, and
  3. Use that location path as a source in your Robots while configuring it in C:\Program Files\UiPath\Studio\NuGet.config file.

Note: Make sure that for that non-mapped network path, for User Mode Robots being added the Full Control permission for the Robot user name(s), and for Service Mode Robots being added the Full Control permission for the Robot machine name(s).

Example:

<?xml version="1.0" encoding="utf-8"?>

More details here at Robot - Custom Package Folders And Network Paths.

1 Like