# Found Invalid Data While Decoding

**URL:** <https://forum.uipath.com/t/found-invalid-data-while-decoding/128129>\
**Category:** Help\
**Tags:** studio\
**Created:** [June 25, 2019, 3:36pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129 "2019-06-25T15:36:41Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![farhanliaqat](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@farhanliaqat](https://forum.uipath.com/u/farhanliaqat)\
**Post date:** [June 25, 2019, 3:36pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/1 "2019-06-25T15:36:41Z")

</div>

Hi,

I am getting this error. I have tried uninstall and install restart the computer i keep getting this error.

19.4.3+Branch.support/v2019.4.Sha.a8f4efb75012dc834aa4be501a7086e9372ef1b3

The project ‘C:\Users\LiaqFar\Documents\UiPath\OceanCreateRun\project.json’ could not be opened: Found invalid data while decoding…

Cannot open item: UiPath.Studio.Contracts.RecoverableException: The project ‘C:\Users\LiaqFar\Documents\UiPath\OceanCreateRun\project.json’ could not be opened: Found invalid data while decoding… —\> System.IO.InvalidDataException: Found invalid data while decoding.  
at NuGet.Packaging.NupkgMetadataFileFormat.LoadJson(TextReader reader)  
at NuGet.Packaging.NupkgMetadataFileFormat.Read(TextReader reader, ILogger log, String path)  
at NuGet.Packaging.NupkgMetadataFileFormat.Read(Stream stream, ILogger log, String path)  
at NuGet.Packaging.NupkgMetadataFileFormat.Read(String filePath, ILogger log)  
at NuGet.Protocol.LocalPackageFileCache.\<\>c\_\_DisplayClass8\_0.b\_\_1()  
at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue()  
at System.Lazy`1.get_Value() at NuGet.Commands.LockFileBuilder.CreateLockFile(LockFile previousLockFile, PackageSpec project, IEnumerable`1 targetGraphs, IReadOnlyList`1 localRepositories, RemoteWalkContext context) at NuGet.Commands.RestoreCommand.BuildAssetsFile(LockFile existingLockFile, PackageSpec project, IEnumerable`1 graphs, IReadOnlyList`1 localRepositories, RemoteWalkContext contextForProject) at NuGet.Commands.RestoreCommand.<ExecuteAsync>d__32.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at UiPath.NuGet.PackageManager.<InstallCore>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.PackageExplorer.Core.Services.PackageInstaller.<InstallWithRootPackageAssemblies>d__3.MoveNext() in D:\a\1\s\Studio\UiPath.PackageExplorer.Core\Services\PackageInstaller.cs:line 31 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.<RestoreInternal>d__25.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\Packaging\PackageOperationBase.cs:line 93 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.<>c __DisplayClass24_0.<<Restore>b__ 0>d.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\Packaging\PackageOperationBase.cs:line 78 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.<Restore>d__24.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\Packaging\PackageOperationBase.cs:line 78 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.Packaging.PackageOperationRestore.<Execute>d__2.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\Packaging\PackageOperationRestore.cs:line 45 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.Packaging.PackageServiceBase.<RestoreProjectAsync>d__33.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\Packaging\PackageServiceBase.cs:line 175 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Plugin.Workflow.Project.BaseWorkflowProjectFactory.<InitializeNewProjectModel>d__53.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\Factory\BaseWorkflowProjectFactory.cs:line 442 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Plugin.Workflow.Project.BaseWorkflowProjectFactory.<OpenAsyncInternal>d__38.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\Factory\BaseWorkflowProjectFactory.cs:line 220 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Plugin.Workflow.Project.BaseWorkflowProjectFactory.<OpenAsync>d__37.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\Factory\BaseWorkflowProjectFactory.cs:line 198 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.PersistableServiceBase`3.d\_\_19.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 0  
— End of inner exception stack trace —  
at UiPath.Studio.Core.Services.PersistableServiceBase`3.<OnOpenAsync>d__19.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 219 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.CommonServices.ProjectServiceBase.<OnOpenAsync>d__38.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\ProjectServiceBase.cs:line 244 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.PersistableServiceBase`3.d\_\_10.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 0  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d\_\_18.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\OpenCloseCommandsService.cs:line 150  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d\_\_17.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\OpenCloseCommandsService.cs:line 131  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d\_\_21.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\OpenCloseCommandsService.cs:line 283  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Studio.Shell.ViewModels.StartPageViewModel.d\_\_26.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\ViewModels\StartPageViewModel.cs:line 125  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Studio.Shared.MVVM.Commands.TaskCommand`3.d\_\_35.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shared\MVVM\Commands\TaskCommand.cs:line 281  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.\<\>c.b\_\_6\_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

Thanks,  
Farhan

---

<div class="post-metadata">

**Author:** ![Pablito](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pablito/32/385495_2.png) [@Pablito](https://forum.uipath.com/u/Pablito)\
**Post date:** [June 25, 2019, 5:02pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/2 "2019-06-25T17:02:48Z")

</div>

Hi @farhanliaqat,  
Make “json” file backup and remove it from project. Then open it from main.xaml and import every needed packages used in the project. The new json file should be automatically generated. Hope this will help 🙂

---

<div class="post-metadata">

**Author:** ![farhanliaqat](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@farhanliaqat](https://forum.uipath.com/u/farhanliaqat)\
**Post date:** [June 25, 2019, 5:53pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/3 "2019-06-25T17:53:24Z")

</div>

Hi,

No it gives me found invalid data while decoding. It is a new project nothing is there.

19.4.3+Branch.support/v2019.4.Sha.a8f4efb75012dc834aa4be501a7086e9372ef1b3

Found invalid data while decoding.

Open Document Error: UiPath.Studio.Contracts.RecoverableException —\> UiPath.Studio.Contracts.RecoverableException: The project ‘C:\Users\LiaqFar\Documents\UiPath\CreateRun\project.json’ could not be opened: Found invalid data while decoding… —\> System.IO.InvalidDataException: Found invalid data while decoding.  
at NuGet.Packaging.NupkgMetadataFileFormat.LoadJson(TextReader reader)  
at NuGet.Packaging.NupkgMetadataFileFormat.Read(TextReader reader, ILogger log, String path)  
at NuGet.Packaging.NupkgMetadataFileFormat.Read(Stream stream, ILogger log, String path)  
at NuGet.Packaging.NupkgMetadataFileFormat.Read(String filePath, ILogger log)  
at NuGet.Protocol.LocalPackageFileCache.\<\>c\_\_DisplayClass8\_0.b\_\_1()  
at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue()  
at System.Lazy`1.get_Value() at NuGet.Commands.LockFileBuilder.CreateLockFile(LockFile previousLockFile, PackageSpec project, IEnumerable`1 targetGraphs, IReadOnlyList`1 localRepositories, RemoteWalkContext context) at NuGet.Commands.RestoreCommand.BuildAssetsFile(LockFile existingLockFile, PackageSpec project, IEnumerable`1 graphs, IReadOnlyList`1 localRepositories, RemoteWalkContext contextForProject) at NuGet.Commands.RestoreCommand.<ExecuteAsync>d__32.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at UiPath.NuGet.PackageManager.<InstallCore>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.PackageExplorer.Core.Services.PackageInstaller.<InstallWithRootPackageAssemblies>d__3.MoveNext() in D:\a\1\s\Studio\UiPath.PackageExplorer.Core\Services\PackageInstaller.cs:line 31 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.<RestoreInternal>d__25.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\Packaging\PackageOperationBase.cs:line 93 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.<>c __DisplayClass24_0.<<Restore>b__ 0>d.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\Packaging\PackageOperationBase.cs:line 78 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.<Restore>d__24.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\Packaging\PackageOperationBase.cs:line 78 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.Packaging.PackageOperationRestore.<Execute>d__2.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\Packaging\PackageOperationRestore.cs:line 45 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.Packaging.PackageServiceBase.<RestoreProjectAsync>d__33.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\Packaging\PackageServiceBase.cs:line 175 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Plugin.Workflow.Project.BaseWorkflowProjectFactory.<InitializeNewProjectModel>d__53.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\Factory\BaseWorkflowProjectFactory.cs:line 442 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Plugin.Workflow.Project.BaseWorkflowProjectFactory.<OpenAsyncInternal>d__38.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\Factory\BaseWorkflowProjectFactory.cs:line 220 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Plugin.Workflow.Project.BaseWorkflowProjectFactory.<OpenAsync>d__37.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\Factory\BaseWorkflowProjectFactory.cs:line 198 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.PersistableServiceBase`3.d\_\_19.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 0  
— End of inner exception stack trace —  
at UiPath.Studio.Core.Services.PersistableServiceBase`3.<OnOpenAsync>d__19.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 219 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.CommonServices.ProjectServiceBase.<OnOpenAsync>d__38.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\ProjectServiceBase.cs:line 244 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Studio.Core.Services.PersistableServiceBase`3.d\_\_10.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\PersistableServiceBase.cs:line 0  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d\_\_20.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\OpenCloseCommandsService.cs:line 225  
— End of inner exception stack trace —  
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d\_\_20.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\OpenCloseCommandsService.cs:line 235  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d\_\_14.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\OpenCloseCommandsService.cs:line 88  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Studio.Shell.ViewModels.MainWindowViewModel.d\_\_206.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\ViewModels\MainWindowViewModelCommands.cs:line 182, HResult -2146233088

---

<div class="post-metadata">

**Author:** ![farhanliaqat](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@farhanliaqat](https://forum.uipath.com/u/farhanliaqat)\
**Post date:** [June 25, 2019, 5:55pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/4 "2019-06-25T17:55:03Z")

</div>

This is the content of Project.Json

{  
“name”: “CreateRun”,  
“description”: “Blank Process”,  
“main”: “Main.xaml”,  
“dependencies”: {  
“UiPath.Excel.Activities”: “[2.5.3]”,  
“UiPath.Mail.Activities”: “[1.4.0]”,  
“UiPath.System.Activities”: “[19.4.0]”,  
“UiPath.UIAutomation.Activities”: “[19.4.1]”  
},  
“schemaVersion”: “3.2”,  
“studioVersion”: “19.4.3.0”,  
“projectVersion”: “1.0.0”,  
“runtimeOptions”: {  
“autoDispose”: false,  
“isPausable”: true,  
“excludedLoggedData”: [  
“Private:\*”,  
“_password_”  
]  
},  
“projectType”: “Workflow”,  
“libraryOptions”: {  
“includeOriginalXaml”: false,  
“privateWorkflows”: [\*]  
},  
“webServices”:   
}

---

<div class="post-metadata">

**Author:** ![farhanliaqat](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@farhanliaqat](https://forum.uipath.com/u/farhanliaqat)\
**Post date:** [June 27, 2019, 1:51pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/5 "2019-06-27T13:51:14Z")

</div>

Hi,

Any help on this topic?

Thanks,  
Farhan

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [June 27, 2019, 2:10pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/6 "2019-06-27T14:10:24Z")

</div>

Hi @farhanliaqat

I had a quick search and it seems to be related to either nuget packages and/or netframework:

> **[Visual Studio Feedback](https://developercommunity.visualstudio.com/content/problem/557810/error-occurred-while-restoring-nuget-packages-foun.html)**
>
> Visual Studio Feedback

I would suggest first to try and clear these two folders:

```auto
%userprofile%\AppData\Local\UiPath\.cache
%userprofile%\.nuget\packages

```

Feel free to backup both folders beforehand.

---

<div class="post-metadata">

**Author:** ![farhanliaqat](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@farhanliaqat](https://forum.uipath.com/u/farhanliaqat)\
**Post date:** [June 27, 2019, 2:31pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/7 "2019-06-27T14:31:10Z")

</div>

> [@loginerror](#):
>
> %userprofile%.nuget\packages

Hi,

This worked like charm thanks.

---

<div class="post-metadata">

**Author:** ![subhasmit.swain](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/subhasmit.swain/32/263676_2.png) [@subhasmit.swain](https://forum.uipath.com/u/subhasmit.swain)\
**Post date:** [April 29, 2022, 7:00am UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/8 "2022-04-29T07:00:27Z")

</div>

Hi there, even after going through all the assists I’m getting error.  
22.4.0+Branch.master.Sha.0d4d7d3b0782bfa991b5e27402aa6a5cc826af0f

Found invalid data while decoding.

Open Document Error: UiPath.Studio.Contracts.RecoverableException  
—\> UiPath.Studio.Contracts.RecoverableException: The project ‘C:\Users/\*\*\*\*\*\*\*/\Documents\UiPath\BlankProcess12\project.json’ could not be opened: 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.Packaging.NupkgMetadataFileFormat.Read(String filePath, ILogger log)  
at NuGet.Protocol.LocalPackageFileCache.\<\>c\_\_DisplayClass8\_0.b\_\_1()  
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)  
at System.Lazy`1.CreateValue() at NuGet.Commands.LockFileBuilder.CreateLockFile(LockFile previousLockFile, PackageSpec project, IEnumerable`1 targetGraphs, IReadOnlyList`1 localRepositories, RemoteWalkContext context, LockFileBuilderCache lockFileBuilderCache) at NuGet.Commands.RestoreCommand.BuildAssetsFile(LockFile existingLockFile, PackageSpec project, IEnumerable`1 graphs, IReadOnlyList`1 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 __DisplayClass39_0.<<Restore>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.PersistableServiceBase`3.OnOpenAsyncInternal(String path, IFactory`2 resolvedFactory, IOpenOptions options) --- End of inner exception stack trace --- at UiPath.Studio.Core.Services.PersistableServiceBase`3.OnOpenAsyncInternal(String path, IFactory`2 resolvedFactory, IOpenOptions options) at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OpenAsyncTaskExecute(String path, IFactory`2 resolvedFactory, IOpenOptions options)  
at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OpenAsyncTaskExecute(String path, IFactory`2 resolvedFactory, IOpenOptions options) at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OnOpenAsync(String path, IFactory`2 resolvedFactory, IOpenOptions options)  
at UiPath.Studio.Core.Services.PersistableServiceBase`3.OpenAsync(OpenInformation openInfo) at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.OpenDocumentAsync(OpenInformation openInfo) --- End of inner exception stack trace --- at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.OpenDocumentAsync(OpenInformation openInfo) at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.OpenFileExecuteAsync(String initialDirectory, IOpenOptions options) at UiPath.Studio.Shell.ViewModels.MainWindowViewModel.<>c __DisplayClass250_0.<<OpenAsync>b__ 0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.Studio.Shell.ViewModels.StartPageViewModel.ExecuteCommandAsync(Func`1 commandExecute)  
at UiPath.Studio.Shell.ViewModels.MainWindowViewModel.OpenAsync(Object argument), HResult -2146233088

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [May 4, 2022, 1:07pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/9 "2022-05-04T13:07:44Z")

</div>

Hi @subhasmit.swain

Could you please share some more details about your environment, like your Windows version?

Does the same happen with newly created projects?

---

<div class="post-metadata">

**Author:** ![rc2080](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rc2080/32/181051_2.png) [@rc2080](https://forum.uipath.com/u/rc2080)\
**Post date:** [May 10, 2022, 1:12pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/10 "2022-05-10T13:12:24Z")

</div>

Thanks. Didn’t even realize I was still using an old beta.

---

<div class="post-metadata">

**Author:** ![Sumit\_Kumar7](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sumit_kumar7/32/321943_2.png) [@Sumit\_Kumar7](https://forum.uipath.com/u/Sumit_Kumar7)\
**Post date:** [June 22, 2022, 1:06pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/11 "2022-06-22T13:06:52Z")

</div>

22.4.3+Branch.master.Sha.926b4e643842c0bd04601053628fabcad850b6c3

The project ‘C:\Users\the pathak’s\Documents\UiPath\RoboticEnterpriseFramework5\project.json’ could not be opened: Found invalid data while decoding…

Cannot open item: UiPath.Studio.Contracts.RecoverableException: The project ‘C:\Users\the pathak’s\Documents\UiPath\RoboticEnterpriseFramework5\project.json’ could not be opened: 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.Packaging.NupkgMetadataFileFormat.Read(String filePath, ILogger log)  
at NuGet.Protocol.LocalPackageFileCache.\<\>c\_\_DisplayClass8\_0.b\_\_1()  
at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)  
at System.Lazy`1.CreateValue() at NuGet.Commands.LockFileBuilder.CreateLockFile(LockFile previousLockFile, PackageSpec project, IEnumerable`1 targetGraphs, IReadOnlyList`1 localRepositories, RemoteWalkContext context, LockFileBuilderCache lockFileBuilderCache) at NuGet.Commands.RestoreCommand.BuildAssetsFile(LockFile existingLockFile, PackageSpec project, IEnumerable`1 graphs, IReadOnlyList`1 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 __DisplayClass39_0.<<Restore>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.PersistableServiceBase`3.OnOpenAsyncInternal(String path, IFactory`2 resolvedFactory, IOpenOptions options) --- End of inner exception stack trace --- at UiPath.Studio.Core.Services.PersistableServiceBase`3.OnOpenAsyncInternal(String path, IFactory`2 resolvedFactory, IOpenOptions options) at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OpenAsyncTaskExecute(String path, IFactory`2 resolvedFactory, IOpenOptions options)  
at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OpenAsyncTaskExecute(String path, IFactory`2 resolvedFactory, IOpenOptions options) at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OnOpenAsync(String path, IFactory`2 resolvedFactory, IOpenOptions options)  
at UiPath.Studio.Core.Services.PersistableServiceBase`3.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.Templates.ViewModels.TemplateDetailsViewModel.UseTemplateCommandExecute() at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand`3.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

---

<div class="post-metadata">

**Author:** ![Lynx](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lynx/32/278382_2.png) [@Lynx](https://forum.uipath.com/u/Lynx)\
**Post date:** [February 26, 2023, 2:47am UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/12 "2023-02-26T02:47:55Z")

</div>

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, Func`3 read) at NuGet.Protocol.LocalPackageFileCache.<>c __DisplayClass9_0.b__ 1() at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)  
at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue()  
at NuGet.Commands.LockFileBuilder.CreateLockFile(LockFile previousLockFile, PackageSpec project, IEnumerable`1 targetGraphs, IReadOnlyList`1 localRepositories, RemoteWalkContext context, LockFileBuilderCache lockFileBuilderCache)  
at NuGet.Commands.RestoreCommand.BuildAssetsFile(LockFile existingLockFile, PackageSpec project, IEnumerable`1 graphs, IReadOnlyList`1 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, List`1 cancellationTokens, Func`2 func, String message, Func`2 exceptionHandler)

---

<div class="post-metadata">

**Author:** ![Naeem\_Nazar1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/naeem_nazar1/32/510399_2.png) [@Naeem\_Nazar1](https://forum.uipath.com/u/Naeem_Nazar1)\
**Post date:** [May 15, 2024, 5:05pm UTC](https://forum.uipath.com/t/found-invalid-data-while-decoding/128129/13 "2024-05-15T17:05:45Z")

</div>

Great Maciej, It works.
