System.IO.InvalidDataException: Found invalid data while decoding

22.10.3+Branch.master.Sha.def2351dc828ccfbcddb6e9e07c9cf71b5bf55da

Не удалось открыть проект “C:\Users\ooo55\Documents\UiPath\Новаяпустаязадача1\project.json”: Found invalid data while decoding…

Не удается открыть элемент: UiPath.Studio.Contracts.RecoverableException: Не удалось открыть проект “C:\Users\ooo55\Documents\UiPath\Новаяпустаязадача1\project.json”: Found invalid data while decoding…
—> System.IO.InvalidDataException: 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.<GetOrAddSha512>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.PackageExplorer.Core.Services.PackageInstaller.InstallWithRootPackageAssemblies(InstallPackageCommand installCommand)
at UiPath.Studio.Core.Services.Packaging.PackageOperationService.InstallWithRootPackageAssembliesAsync(InstallPackageCommand installPackageCommand)
at UiPath.Studio.Core.Services.Packaging.PackageOperationService.InstallPackage(InstallPackageCommand installPackageCommand)
at UiPath.Studio.Core.Services.Packaging.PackageOperationService.RestoreInternal(IPackageOperationBehavior packageOperationBehavior, IPackageOperationContext packageOperationContext, CancellationToken cancellationToken)
at UiPath.Studio.Core.Services.Packaging.PackageOperationService.<>c__DisplayClass37_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Studio.Core.Services.Packaging.PackageOperationRestoreService.Execute(IProject project, Boolean allowTargetFrameworkTemper, CancellationToken cancellationToken)
at UiPath.Studio.Core.Services.Packaging.PackageService.RestoreProjectAsync(IProject project, Boolean allowTargetFrameworkTemper, CancellationToken cancellationToken)
at UiPath.Studio.Plugin.Workflow.Shared.Project.BaseWorkflowProjectFactory.InitializeNewProjectModelInternal(String projectFilePath)
at UiPath.Studio.Plugin.Workflow.Shared.Project.BaseWorkflowProjectFactory.OpenAsyncInternal(String path, IOpenOptions options)
at UiPath.Studio.Plugin.Workflow.Shared.Project.BaseWorkflowProjectFactory.OpenAsync(String path, IOpenOptions options)
at UiPath.Studio.Plugin.Workflow.Shared.Project.BaseWorkflowProjectFactory.OpenAsync(String path, IOpenOptions options)
at UiPath.Studio.Core.Services.PersistableServiceBase3.OnOpenAsyncInternal(String path, IFactory2 resolvedFactory, IOpenOptions options)
— End of inner exception stack trace —
at UiPath.Studio.Core.Services.PersistableServiceBase3.OnOpenAsyncInternal(String path, IFactory2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OpenAsyncTaskExecute(String path, IFactory2 resolvedFactory, IOpenOptions options) at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OpenAsyncTaskExecute(String path, IFactory2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options) at UiPath.Studio.Core.Services.PersistableServiceBase3.OpenAsync(OpenInformation openInfo)
at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.OpenProjectAsync(OpenInformation openInfo, IProject newProject)
at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.OpenNewProjectAsync(IProject newProjectItem)
at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.CreateNewProjectAsync(IProjectTemplate template)
at UiPath.Studio.Shell.ViewModels.StartPageViewModel.<>c__DisplayClass66_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Studio.Shell.ViewModels.StartPageViewModel.ExecuteCommandAsync(Func1 commandExecute) at UiPath.Studio.Shell.ViewModels.StartPageViewModel.OnNewProjectCommand(String project) at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233088

Please note that the root cause of the issue should be the corrupted reference of dependencies and it might be solved by deleting the project.json file for that project, but first back it up (the necessary package will be downloaded and installed after deleting ). If the same issue occurs again, please use the workaround “delete all the files from %userprofile%.nuget folder and redownload the packages again” to solve the same.