NU1102: Unable To Find Package X With Version Y

How to resolve the error "NU1102: Unable to find package X with version Y" that occurs when trying to run a process from Orchestrator?

After updating Orchestrator from 2020.4 to 2020.10.5 version, it might be possible to receive the error “NU1102: Unable to find package X with version Y”, when trying to trigger a process to run from Orchestrator.
Also, it can happen that the process packages disappear from the UiPath Assistant/ Robot tray.

Collect the Event Viewer traces from the Orchestrator server and Robot machine, and search for one of the following error:

  • Authentication failedMicrosoft.IdentityModel.Tokens.SecurityTokenInvalidSigningKeyException: IDX10249: X509SecurityKey validation failed. The associated certificate has expired. ValidTo (UTC): '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]', Current time (UTC): '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.
  • Authentication failedMicrosoft.IdentityModel.Tokens.SecurityTokenInvalidAudienceException: IDX10214: Audience validation failed. Audiences: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'. Did not match: validationParameters.ValidAudience: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]' or validationParameters.ValidAudiences: '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.
  • NU1102: Unable to find package X with version Y

Follow the below steps,
  1. Check the appsettings.Production.json file from Orchestrator/Identity folder, the SigningCredentialSettings > Thumbprint > Name, if it is not different from the Thumbprint/Certificate Hash of the Certificate, which should be the same
  2. If it is different, update the appsettings.Production.json with the Thumprint, save the file, and restart the IIS website (in a free window when no process is running).
Certificate Details
1.jpg



Appsettings.Production.json
2.jpg




Another possible cause:
It is very common that a package cannot be resolved from an external NuGet feed because the Robot sits behind a proxy that the Robot has not been configured to connect to. To get a more verbose log, enable diagnostic logs and check as a more detailed error should be displayed, in this case:
  • Authentication failedMicrosoft.IdentityModel.Tokens.SecurityTokenInvalidSigningKeyException: IDX10249: X509SecurityKey validation failed. The associated certificate has expired. ValidTo (UTC): '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]', Current time (UTC): '[PII is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'.
1 Like