Error trying to import package into Orchestrator - invalid package details

Hi @postwick,

As per the logs, this can be accessed from your On-Premises Orchestrator server. You will have to filter it a bit, windows loves to log everything.

Try uploading and look for error symbols in event viewer.
image

1 Like

On the Orchestrator host, open Event Viewer > Windows Logs > Application. You can then Filter Current Log for Source=IdentityService, Orchestrator, Orchestrator.BusinessException, WebhookService

What is being logged and where it is sent it managed by the NLog targets and plugins configured in the UiPath.Orchestrator.dll.config

By default the following is sent to the Event Logs

      <target xsi:type="EventLog" name="eventLog" layout="${message}${onexception:${exception:format=tostring:maxInnerExceptionLevel=5:innerFormat=tostring}}" source="Orchestrator" log="Application" />
      <target xsi:type="EventLog" name="businessExceptionEventLog" layout="${message}${onexception:${exception:format=tostring:maxInnerExceptionLevel=5:innerFormat=tostring}}" source="Orchestrator.BusinessException" log="Application" />
      <target xsi:type="EventLog" name="eventLogQuartz" layout="[Quartz] ${message} ${onexception: ${exception:format=tostring:maxInnerExceptionLevel=5:innerFormat=tostring}}" source="Orchestrator" log="Application" />
...
      <logger name="BusinessException.*" minlevel="Info" writeTo="businessExceptionEventLog" final="true" />
      <logger name="Quartz.*" minlevel="Warn" writeTo="eventLogQuartz" final="true" />
      <logger name="*" minlevel="Info" writeTo="eventLog" />
1 Like

Here are the two errors generated that are visible in Event Viewer.

An error occurred reading package archive stream: 
  Unsupported targetFramework value 'net5.0-windows7.0'.System.IO.InvalidDataException: 
    Unsupported targetFramework value 'net5.0-windows7.0'. 
  at void NuGet.Packaging.ManifestReader.ReadMetadataValue(ManifestMetadata manifestMetadata, XElement element, HashSet<string> allElements) 
  at ManifestMetadata NuGet.Packaging.ManifestReader.ReadMetadata(XElement xElement) 
  at Manifest NuGet.Packaging.ManifestReader.ReadManifest(XDocument document) 
  at Manifest NuGet.Packaging.Manifest.ReadFrom(Stream stream, Func<string, string> propertyProvider, bool validateSchema) 
  at Manifest NuGet.Packaging.Manifest.ReadFrom(Stream stream, bool validateSchema) 
  at void UiPath.Orchestrator.NuGet3.Server.PackageArchiveReaderExtensions.PopulateFromManifestMetadata(Stream nuspecStream, UiPackageDefinition entity) 
  at UiPackageDefinition UiPath.Orchestrator.NuGet3.Server.PackageArchiveReaderExtensions.ReadPackageDefinition(PackageArchiveReader reader, InternalFeedInfo feed) 
  at void UiPath.Orchestrator.NuGet3.Server.InternalNuGetPublisher+<>c__DisplayClass10_0+<<ReadPackageArchiveAsync>g__ReadPackageArchiveCoreAsync|0>d.MoveNext()

And…

UiPath.Orchestrator.Core.Exceptions.BadRequestException: Error code - 1654, Message - 'Invalid package details!'
---> UiPath.Orchestrator.NuGet3.Server.FeedException: Uploaded content is not a valid NuGet archive: Unsupported targetFramework value 'net5.0-windows7.0'. 
---> System.IO.InvalidDataException: Unsupported targetFramework value 'net5.0-windows7.0'. 
  at void NuGet.Packaging.ManifestReader.ReadMetadataValue(ManifestMetadata manifestMetadata, XElement element, HashSet<string> allElements) 
  at ManifestMetadata NuGet.Packaging.ManifestReader.ReadMetadata(XElement xElement) 
  at Manifest NuGet.Packaging.ManifestReader.ReadManifest(XDocument document) 
  at Manifest NuGet.Packaging.Manifest.ReadFrom(Stream stream, Func<string, string> propertyProvider, bool validateSchema) 
  at Manifest NuGet.Packaging.Manifest.ReadFrom(Stream stream, bool validateSchema) 
  at void UiPath.Orchestrator.NuGet3.Server.PackageArchiveReaderExtensions.PopulateFromManifestMetadata(Stream nuspecStream, UiPackageDefinition entity) 
  at UiPackageDefinition UiPath.Orchestrator.NuGet3.Server.PackageArchiveReaderExtensions.ReadPackageDefinition(PackageArchiveReader reader, InternalFeedInfo feed) 
  at void UiPath.Orchestrator.NuGet3.Server.InternalNuGetPublisher+<>c__DisplayClass10_0+<<ReadPackageArchiveAsync>g__ReadPackageArchiveCoreAsync|0>d.MoveNext() --- End of inner exception stack trace --- 
  at void UiPath.Orchestrator.NuGet3.Server.InternalNuGetPublisher+<>c__DisplayClass10_0+<<ReadPackageArchiveAsync>g__ReadPackageArchiveCoreAsync|0>d.MoveNext() 
  at async Task<IPackageMetadata> UiPath.Orchestrator.NuGet3.Server.InternalNuGetPublisher.PushAsync(Stream packageStream, CancellationToken token) 
  at async Task<Package> UiPath.Orchestrator.NuGet3.Packages.NuGet3ClientWrapper.UploadAsync(IPackageFile packageFile, CancellationToken token)
  --- End of inner exception stack trace --- 
  at async Task<Package> UiPath.Orchestrator.NuGet3.Packages.NuGet3ClientWrapper.UploadAsync(IPackageFile packageFile, CancellationToken token) 
  at async Task<PackageKey> UiPath.Orchestrator.Packages.PackagesManager.UploadPackageAsync(Stream input, Nullable<Guid> feedId) 
  at async Task<PackageKey> UiPath.Orchestrator.Application.Services.PackagesService<TDto>.UploadPackageAsync(Nullable<Guid> feedId, string fileName, Stream fileStream) 
  at async Task<PackageKey> UiPath.Orchestrator.Application.Services.LibraryPackagesService.UploadPackageAsync(Nullable<Guid> feedId, string fileName, Stream fileStream) 
  at async Task<TResult> Abp.Domain.Uow.UnitOfWorkInterceptor.InternalInterceptAsynchronous<TResult>(IInvocation invocation) 
  at async Task<TResult> Abp.Runtime.Validation.Interception.ValidationInterceptor.InternalInterceptAsynchronous<TResult>(IInvocation invocation) 
  at async Task<IActionResult> UiPath.Orchestrator.Web.Api.OData.Controllers.LibrariesController.UploadPackage() 
  at async ValueTask<IActionResult> Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor+TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, object controller, object[] arguments) 
  at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()+Logged(?) 
  at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()+Awaited(?) 
  at void Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) 
  at Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted) 
  at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()+Awaited(?) 
  at async Task Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextExceptionFilterAsync()+Awaited(?) UiPath.Orchestrator.NuGet3.Server.FeedException: Uploaded content is not a valid NuGet archive: Unsupported targetFramework value 'net5.0-windows7.0'. 
  ---> System.IO.InvalidDataException: Unsupported targetFramework value 'net5.0-windows7.0'. 
  at void NuGet.Packaging.ManifestReader.ReadMetadataValue(ManifestMetadata manifestMetadata, XElement element, HashSet<string> allElements) 
  at ManifestMetadata NuGet.Packaging.ManifestReader.ReadMetadata(XElement xElement) 
  at Manifest NuGet.Packaging.ManifestReader.ReadManifest(XDocument document) 
  at Manifest NuGet.Packaging.Manifest.ReadFrom(Stream stream, Func<string, string> propertyProvider, bool validateSchema) 
  at Manifest NuGet.Packaging.Manifest.ReadFrom(Stream stream, bool validateSchema) 
  at void UiPath.Orchestrator.NuGet3.Server.PackageArchiveReaderExtensions.PopulateFromManifestMetadata(Stream nuspecStream, UiPackageDefinition entity) 
  at UiPackageDefinition UiPath.Orchestrator.NuGet3.Server.PackageArchiveReaderExtensions.ReadPackageDefinition(PackageArchiveReader reader, InternalFeedInfo feed) 
  at void UiPath.Orchestrator.NuGet3.Server.InternalNuGetPublisher+<>c__DisplayClass10_0+<<ReadPackageArchiveAsync>g__ReadPackageArchiveCoreAsync|0>d.MoveNext() 
  --- End of inner exception stack trace --- 
  at void UiPath.Orchestrator.NuGet3.Server.InternalNuGetPublisher+<>c__DisplayClass10_0+<<ReadPackageArchiveAsync>g__ReadPackageArchiveCoreAsync|0>d.MoveNext() 
  at async Task<IPackageMetadata> UiPath.Orchestrator.NuGet3.Server.InternalNuGetPublisher.PushAsync(Stream packageStream, CancellationToken token) 
  at async Task<Package> UiPath.Orchestrator.NuGet3.Packages.NuGet3ClientWrapper.UploadAsync(IPackageFile packageFile, CancellationToken token) System.IO.InvalidDataException: Unsupported targetFramework value 'net5.0-windows7.0'. 
  at void NuGet.Packaging.ManifestReader.ReadMetadataValue(ManifestMetadata manifestMetadata, XElement element, HashSet<string> allElements) 
  at ManifestMetadata NuGet.Packaging.ManifestReader.ReadMetadata(XElement xElement) 
  at Manifest NuGet.Packaging.ManifestReader.ReadManifest(XDocument document) 
  at Manifest NuGet.Packaging.Manifest.ReadFrom(Stream stream, Func<string, string> propertyProvider, bool validateSchema) 
  at Manifest NuGet.Packaging.Manifest.ReadFrom(Stream stream, bool validateSchema) 
  at void UiPath.Orchestrator.NuGet3.Server.PackageArchiveReaderExtensions.PopulateFromManifestMetadata(Stream nuspecStream, UiPackageDefinition entity) 
  at UiPackageDefinition UiPath.Orchestrator.NuGet3.Server.PackageArchiveReaderExtensions.ReadPackageDefinition(PackageArchiveReader reader, InternalFeedInfo feed) 
  at void UiPath.Orchestrator.NuGet3.Server.InternalNuGetPublisher+<>c__DisplayClass10_0+<<ReadPackageArchiveAsync>g__ReadPackageArchiveCoreAsync|0>d.MoveNext()

Would installing .net 5 on our Orchestrator server fix the issue? Would .net 5 also need to be installed on any machines running the automations, either unattended or attended?

This is where it gets a bit grey for me as I haven’t dove into .NET a whole lot.

I’ve removed my Orchestrator 20.10.8 and replaced it with 20.10.4 as a fresh install.

image

UiPath.Terminal.Activities 2.0.1 exists in the Host Library and I had no issue uploading 2.3.0

image

So that leaves me a bit perplex as I haven’t explicitly installed .NET [core] 5 as you can see below.

2010.10 requires

  • PowerShell v4
  • .NET Framework >= 4.7.2
  • IIS v8
  • ASP.NET Core IIS Module >=3.1.x

On my host I’m running Windows 2019 so PS5 and .Net Framework v4 are defaults, I have

  • Both PS 5.1 and PS Core 7 $PSVersionTable.PSVersion
  • .NET Frameworkd build 528049 (Get-ItemProperty 'HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full').Release
  • Microsoft.AspNetCore.App and Microsoft.NETCore.App 3.1.19 dotnet --info

.NET 5 probably got installed on your system when you installed Orchestrator 2020.10.8

If that was the case I would expect to see it listed when I run dotnet --info to list the SDKs and runtimes and listed in the shared environment. If it was bundled with 20.10.8, I would expect it to fail as the bundled .NET would not be there after uninstalling the parent package.

PS C:\Users\name> dotnet --list-sdks
PS C:\Users\name> dotnet --list-runtimes
Microsoft.AspNetCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
PS C:\Users\name> dotnet --info
  It was not possible to find any installed .NET Core SDKs
  Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
      https://aka.ms/dotnet-download

Host (useful for support):
  Version: 3.1.19
  Commit:  aae002469c

.NET Core SDKs installed:
  No SDKs were found.

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download
PS C:\Program Files (x86)\dotnet> .\dotnet.exe --info
  It was not possible to find any installed .NET Core SDKs
  Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
      https://aka.ms/dotnet-download

Host (useful for support):
  Version: 3.1.19
  Commit:  aae002469c

.NET Core SDKs installed:
  No SDKs were found.

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.1.19 [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.19 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

I could spin up a new VM and give it a whirl, but that will probably have to wait for another day.

Just so you know, it’s not a big issue for us that we need a resolution. The 2.1.0 Terminal Activities works fine. If you want to troubleshoot for internal purposes I will provide whatever info I can.

hah, for sure… this is more of a curiosity for me. I tend to stick more to the Infrastructure and Orchestrator side and the more I learn that better off I’ll be when I run into my own issues.

1 Like

Just had a thought. Are you on a server?

Seeing this in the error…

net5.0-windows7.0

…makes me wonder if the error is because we are running a server so it obviously doesn’t have Windows 7 on it.

Yes, we are using Windows Server 2019.

My understanding is that net5.0-windows is exposing Windows specific functionality like Windows Forms, WPF, WinRT, etc. and the 7.0 on net5.0-windows7.0 is equivalent to net5.0-windows and targeting the capabilities that were available at the time Windows 7 was released.