Failed To Retrieve Metadata From Source "https://XXXXXXX/nuget/XXXXXXXX"

How to get local packages when prompted to the error "Failed to retrieve metadata from source https://"?

Issue Description

Sometimes the Robot might be unable to retrieve local packages due to an error like this:

"Failed to retrieve metadata from source "https://XXXXXXX/nuget/XXXXXXXX"....."

You can also expect to see this within Studio/Assistant when attempting to connect with the Orchestrator or running a process. This would look something like the below:


Root Cause

The problem occurs because in the database the Host libraries have the value "0" set for the "IsPublic" column in the "dbo.PackageFeeds" table.

Resolution

This can be solved after changing in the database the "IsPublic" value for the host from "0" to "1" via the below query:

update dbo.PackageFeeds set IsPublic=1 where TenantId IS NULL