UiPath.CoreIpc.RemoteException: Found invalid data while decoding

Good night friends;

I have a problem to be able to run the bots in a virtual machine, the following error appears, any recommendations?

I have the same problems, I followed the recommendations in this thread, but I still can’t run the bot in a virtual machine

  • Info: Found invalid data while decoding.

UiPath.CoreIpc.RemoteException: Found invalid data while decoding. at NuGet.Packaging.NupkgMetadataFileFormat.Read(TextReader reader, ILogger log, String path)
at NuGet.Packaging.NupkgMetadataFileFormat.Read(Stream stream, ILogger log, String path)
at NuGet.Common.FileUtility.SafeRead[T](String filePath, Func3 read) at NuGet.Protocol.LocalPackageFileCache.<>c__DisplayClass9_0.b__1() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue()
at NuGet.Commands.LockFileBuilder.CreateLockFile(LockFile previousLockFile, PackageSpec project, IEnumerable1 targetGraphs, IReadOnlyList1 localRepositories, RemoteWalkContext context, LockFileBuilderCache lockFileBuilderCache)
at NuGet.Commands.RestoreCommand.BuildAssetsFile(LockFile existingLockFile, PackageSpec project, IEnumerable1 graphs, IReadOnlyList1 localRepositories, RemoteWalkContext contextForProject)
at NuGet.Commands.RestoreCommand.ExecuteAsync(CancellationToken token)
at UiPath.NuGet.PackageManager.InstallCore(InstallPackageCommand installCommand)
at UiPath.NuGet.PackageManager.InstallPackages(InstallPackageCommand installCommand)
at UiPath.Robot.Core.ProjectInstaller.InstallCore(InstallProjectCommand installCommand)
at UiPath.Service.Core.NetWindowsProjectInstaller.InstallCore(InstallProjectCommand installCommand)
at UiPath.Robot.Core.ProjectInstaller.<>c__DisplayClass7_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Robot.Core.ProjectInstaller.Install(InstallProjectCommand installCommand)
at UiPath.Service.Core.PackageService.InstallProcess(PublishedProcess process, ImpersonableIdentity identity, IRobot robot, CancellationToken ct)
at UiPath.Service.Job.InstallPackage(ImpersonableIdentity identity, CancellationToken ct)
at UiPath.Service.Job.PrepareForExecution(ImpersonableIdentity identity, CancellationToken ct)
at UiPath.Service.Job.UiPath.Service.Core.IExecutorEvents.ExecutorAvailable(ImpersonableIdentity identity, CancellationToken ct)
at UiPath.Service.Impl.ExecutorProxy.OnExecutorAvailableAsync(Object sender, AvailableEventArgs args)
at UiPath.Service.Core.ExecutorService.Available(AvailableMessage availableMessage)
at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func`2 exceptionHandler)

Hey @Lynx

So is it running in local machine then ?


Hi @Lynx

The error message you provided seems to be related to NuGet, which is a package manager used by UiPath to manage dependencies. Here are a few suggestions that might help you troubleshoot the issue:

  1. Check the version of NuGet you are using and make sure it is compatible with the version of UiPath you are using. You can check the UiPath documentation for the compatibility matrix.
  2. Try clearing the NuGet cache on the virtual machine by deleting the %USERPROFILE%\.nuget\packages folder. This will force NuGet to download the packages again, which might solve any issues related to corrupted or outdated packages.
  3. Check if there are any proxy settings or firewalls blocking the connection to the NuGet repository. Make sure that the virtual machine can access the internet and that the necessary ports are open.
  4. If none of the above suggestions work, try reinstalling UiPath and/or NuGet on the virtual machine.

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