Publishing Library to Orchestrator error - Package cannot be published to the shared feed

Hello, I am receiving an error when trying to publish a library to Orchestrator.

I have tried publishing a blank library and it works without any issues. I am publishing to the Orchestrator Shared Libraries Feed.

Here are the error logs:

Publish of Invoice.Portal.Activities failed. Package cannot be published to the shared feed

Error: System.InvalidOperationException: Publish of Invoice.Portal.Activities failed. Package cannot be published to the shared feed
 ---> UiPath.Shared.Orchestrator.Models.OrchestratorHttpException: Package cannot be published to the shared feed
   at UiPath.Studio.Orchestrator.Common.Extensions.HttpResponseMessageExtensions.EnsureOrchestratorStatusCodeAsync(HttpResponseMessage response)
   at UiPath.Studio.Orchestrator.Common.Services.CloudApiClient.InternalRequestAsync[T](Uri uri, HttpMethod method, HttpContent content, Func`2 parseResponse, TimeSpan timeout, Dictionary`2 headers, CancellationToken ct)
   at UiPath.Studio.Orchestrator.Common.Services.CloudApiClient.RequestAsync(Uri uri, HttpMethod method, HttpContent content, TimeSpan timeout, Dictionary`2 headers, CancellationToken ct)
   at UiPath.Studio.Orchestrator.Feeds.Services.OrchestratorPackageUploader.UploadAsync(IEnumerable`1 packagePaths, FeedModel feedModel, Int32 timeoutInSeconds, CancellationToken ct)
   at UiPath.Studio.ProjectPackager.Publish.Services.ProjectPushService.Publish(BuildPackageResult package, IPublishSettings publishSettings, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at UiPath.Studio.ProjectPackager.Publish.Services.ProjectPushService.Publish(BuildPackageResult package, IPublishSettings publishSettings, CancellationToken cancellationToken)
   at UiPath.Studio.ProjectPackager.Publish.Services.PublishService.<>c__DisplayClass44_0.<<PublishAsync>b__0>d.MoveNext(), HResult -2146233079

Cause:

As you are using the Cloud Orchestrator, we are assuming that you have only the Host feed enabled in Orchestrator UI → Tenant → Settings → Deployment → Libraries. If you will try to publish to this Host feed, you will be using by default the UiPath Official feed https://pkgs.dev.azure.com/uipath/Public.Feeds/_packaging/UiPath-Official/nuget/v3/index.json
This official feed is allowing only to view the library packages and not to publish to it.

Solution:

Access Orchestrator UI as Administrator user
Access Orchestrator UI → Tenant → Settings → Deployment → Libraries → set these settings

Feeds: Both host and tenant feeds
Deployment: Internal
Security: Secure Deployment

Make sure that your user has the Allow to be Automation Publisher role at the tenant level in Tenant → Manage Access → Access Rules → Edit your user → add Allow to be Automation Publisher → Update

In Studio → Publish → Publish Options → select Orchestrator Tenant Libraries Feed

In my case, I received an error because I did not update the version number. There was no indication that this could cause an error! Thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.