Not able to start/create process/project in UI path 2021.4.1 . getting error as Data at the root level is invalid. Line 1, position 1

19:16:26.6697 => [WARN] [UiPath.Studio] [1] Office version: O365
19:16:26.6697 => [WARN] [UiPath.Studio] [1] Office build version: 16.0.13127.21216
19:16:35.0844 => [WARN] [UiPath.Studio.App.Logging.OutputLogger] [32] NU1603: UiPath.Mail.Activities 1.10.4 depends on Newtonsoft.Json (>= 11.0.1) but Newtonsoft.Json 11.0.1 was not found. An approximate best match of Newtonsoft.Json 11.0.2 was resolved.
19:16:35.0845 => [WARN] [UiPath.Studio.App.Logging.OutputLogger] [32] NU1603: System.IO.Pipelines 4.7.1 depends on System.Buffers (>= 4.5.0) but System.Buffers 4.5.0 was not found. An approximate best match of System.Buffers 4.5.1 was resolved.
19:16:35.0846 => [WARN] [UiPath.Studio.App.Logging.OutputLogger] [32] NU1603: Microsoft.Extensions.Primitives 3.1.6 depends on System.Memory (>= 4.5.2) but System.Memory 4.5.2 was not found. An approximate best match of System.Memory 4.5.4 was resolved.
19:16:35.0846 => [WARN] [UiPath.Studio.App.Logging.OutputLogger] [32] NU1603: System.IO.Pipelines 4.7.1 depends on System.Memory (>= 4.5.3) but System.Memory 4.5.3 was not found. An approximate best match of System.Memory 4.5.4 was resolved.
19:16:35.2832 => [ERROR] [UiPath.Studio] [1] OpenAsyncInternal: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at NuGet.Packaging.Core.NuspecCoreReaderBase.LoadXml(Stream stream, Boolean leaveStreamOpen)
at NuGet.Packaging.Core.NuspecCoreReaderBase…ctor(Stream stream, Boolean leaveStreamOpen)
at NuGet.Packaging.NuspecReader…ctor(Stream stream, IFrameworkNameProvider frameworkProvider, Boolean leaveStreamOpen)
at NuGet.Packaging.NuspecReader…ctor(Stream stream)
at NuGet.Protocol.LocalPackageFileCache.GetNuspec(String manifestPath, String expandedPath)
at NuGet.Protocol.LocalPackageFileCache.<>c__DisplayClass6_1.b__1()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue()
at NuGet.Commands.LockFileUtils.CreateLockFileTargetLibrary(LibraryDependency libraryDependency, LockFileLibrary library, LocalPackageInfo package, RestoreTargetGraph targetGraph, LibraryIncludeFlags dependencyType, NuGetFramework targetFrameworkOverride, IEnumerable1 dependencies, LockFileBuilderCache cache) at NuGet.Commands.LockFileBuilder.CreateLockFile(LockFile previousLockFile, PackageSpec project, IEnumerable1 targetGraphs, IReadOnlyList1 localRepositories, RemoteWalkContext context) 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.PackageOperationBase.RestoreInternal(PackageOperationContext packageOperation, CancellationToken cancellationToken) at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.<>c__DisplayClass23_0.<<Restore>b__0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.Studio.Core.Services.Packaging.PackageOperationRestore.Execute(CancellationToken cancellationToken) at UiPath.Studio.Core.Services.Packaging.PackageService.RestoreProjectAsync(IProject project, 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), HResult -2146232000 19:16:35.3716 => [ERROR] [UiPath.Studio] [1] Cannot open item: UiPath.Studio.Contracts.RecoverableException: The project 'C:\Users\chinnm2\OneDrive - Dell Technologies\Documents\UiPath\BlankProcess3\project.json' could not be opened: Data at the root level is invalid. Line 1, position 1.. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) at NuGet.Packaging.Core.NuspecCoreReaderBase.LoadXml(Stream stream, Boolean leaveStreamOpen) at NuGet.Packaging.Core.NuspecCoreReaderBase..ctor(Stream stream, Boolean leaveStreamOpen) at NuGet.Packaging.NuspecReader..ctor(Stream stream, IFrameworkNameProvider frameworkProvider, Boolean leaveStreamOpen) at NuGet.Packaging.NuspecReader..ctor(Stream stream) at NuGet.Protocol.LocalPackageFileCache.GetNuspec(String manifestPath, String expandedPath) at NuGet.Protocol.LocalPackageFileCache.<>c__DisplayClass6_1.<GetOrAddNuspec>b__1() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
— End of stack trace from previous location —
at System.Lazy1.CreateValue() at NuGet.Commands.LockFileUtils.CreateLockFileTargetLibrary(LibraryDependency libraryDependency, LockFileLibrary library, LocalPackageInfo package, RestoreTargetGraph targetGraph, LibraryIncludeFlags dependencyType, NuGetFramework targetFrameworkOverride, IEnumerable1 dependencies, LockFileBuilderCache cache)
at NuGet.Commands.LockFileBuilder.CreateLockFile(LockFile previousLockFile, PackageSpec project, IEnumerable1 targetGraphs, IReadOnlyList1 localRepositories, RemoteWalkContext context)
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.PackageOperationBase.RestoreInternal(PackageOperationContext packageOperation, CancellationToken cancellationToken)
at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.<>c__DisplayClass23_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Studio.Core.Services.Packaging.PackageOperationRestore.Execute(CancellationToken cancellationToken)
at UiPath.Studio.Core.Services.Packaging.PackageService.RestoreProjectAsync(IProject project, 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.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options)
— End of inner exception stack trace —
at UiPath.Studio.Core.Services.PersistableServiceBase3.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Core.CommonServices.ProjectServiceBase.OnOpenAsync(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__DisplayClass51_0.<<OnNewProjectCommand>b__0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.Studio.Shell.ViewModels.StartPageViewModel.ExecuteCommand(Func1 commandExecute)
at UiPath.Studio.Shell.ViewModels.StartPageViewModel.OnNewProjectCommand(String project)
at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand`3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
at System.Threading.Tasks.Task.<>c.b__140_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

Hi @Mahendra_Reddy , you can try reset the settings by clicking Home → Settings → Reset Settings. After that close UiPath and start again. Might work. You can also try restarting you pc. These simple steps helped me while having these kind of issues.

Happy Automation!
Regards,
Robin

Thanks Robin for your prompt response.

i have followed the steps provided by you, still i am getting same error.

Can someone help me with this ?

Regards,
Mahendra.

11:51:16.1332 => [WARN] [UiPath.Studio.App.Logging.OutputLogger] [31] NU1603: UiPath.Mail.Activities 1.10.4 depends on Newtonsoft.Json (>= 11.0.1) but Newtonsoft.Json 11.0.1 was not found. An approximate best match of Newtonsoft.Json 11.0.2 was resolved.
11:51:16.1661 => [ERROR] [UiPath.Studio] [1] System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at NuGet.Packaging.Core.NuspecCoreReaderBase.LoadXml(Stream stream, Boolean leaveStreamOpen)
at NuGet.Packaging.Core.NuspecCoreReaderBase…ctor(Stream stream, Boolean leaveStreamOpen)
at NuGet.Packaging.NuspecReader…ctor(Stream stream)
at NuGet.Protocol.LocalPackageFileCache.GetNuspec(String manifestPath, String expandedPath)
at NuGet.Protocol.LocalPackageFileCache.<>c__DisplayClass6_1.b__1()
at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue()
at NuGet.Commands.LockFileUtils.CreateLockFileTargetLibrary(LibraryDependency libraryDependency, LockFileLibrary library, LocalPackageInfo package, RestoreTargetGraph targetGraph, LibraryIncludeFlags dependencyType, NuGetFramework targetFrameworkOverride, IEnumerable1 dependencies, LockFileBuilderCache cache) at NuGet.Commands.LockFileBuilder.CreateLockFile(LockFile previousLockFile, PackageSpec project, IEnumerable1 targetGraphs, IReadOnlyList1 localRepositories, RemoteWalkContext context) 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.PackageOperationBase.RestoreInternal(PackageOperationContext packageOperation, CancellationToken cancellationToken) at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.<>c__DisplayClass23_0.<<Restore>b__0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.AttemptInstall(CancellationToken cancellationToken) at UiPath.Studio.Core.Services.Packaging.PackageOperationUpdate.TryExecute(CancellationToken cancellationToken) at UiPath.Studio.Shell.Services.ProjectContextService.<>c__DisplayClass10_1.<<InstallPackages>b__3>d.MoveNext() --- End of stack trace from previous location --- at UiPath.Studio.Shell.Services.ProjectContextService.<>c__DisplayClass10_0.<<InstallPackages>b__0>d.MoveNext(), HResult -2146232000 11:51:16.1661 => [ERROR] [UiPath.Studio] [1] Error: System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options) at NuGet.Packaging.Core.NuspecCoreReaderBase.LoadXml(Stream stream, Boolean leaveStreamOpen) at NuGet.Packaging.Core.NuspecCoreReaderBase..ctor(Stream stream, Boolean leaveStreamOpen) at NuGet.Packaging.NuspecReader..ctor(Stream stream) at NuGet.Protocol.LocalPackageFileCache.GetNuspec(String manifestPath, String expandedPath) at NuGet.Protocol.LocalPackageFileCache.<>c__DisplayClass6_1.<GetOrAddNuspec>b__1() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode)
— End of stack trace from previous location —
at System.Lazy1.CreateValue() at NuGet.Commands.LockFileUtils.CreateLockFileTargetLibrary(LibraryDependency libraryDependency, LockFileLibrary library, LocalPackageInfo package, RestoreTargetGraph targetGraph, LibraryIncludeFlags dependencyType, NuGetFramework targetFrameworkOverride, IEnumerable1 dependencies, LockFileBuilderCache cache)
at NuGet.Commands.LockFileBuilder.CreateLockFile(LockFile previousLockFile, PackageSpec project, IEnumerable1 targetGraphs, IReadOnlyList1 localRepositories, RemoteWalkContext context)
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.PackageOperationBase.RestoreInternal(PackageOperationContext packageOperation, CancellationToken cancellationToken)
at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.<>c__DisplayClass23_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Studio.Core.Services.Packaging.PackageOperationBase.AttemptInstall(CancellationToken cancellationToken)
at UiPath.Studio.Core.Services.Packaging.PackageOperationUpdate.TryExecute(CancellationToken cancellationToken)
at UiPath.Studio.Shell.Services.ProjectContextService.<>c__DisplayClass10_1.<b__3>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Studio.Shell.Services.ProjectContextService.<>c__DisplayClass10_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Studio.App.Desktop.Windows.WindowCommandsExtensions.ExecuteWithCommandsDisabledAsync[T](ICommandManager commandManager, Func`1 func)
at UiPath.PackageExplorer.UI.ViewModels.PackageExplorerViewModel.Install(), HResult -2146232000

Hi @Mahendra_Reddy

Does the issue happen when you try to open an older project or also when you are creating a new one?

Also, just as a test, could you try opening a project from your Desktop?

its happening when i create new project after installing UIpath studio.
even i tried to launch from desktop, error is same.

Thank you. It is possible that the issue was caused by corrupted installation. For that you could try to reinstall by following this guide How to fix your Studio installation / Licensing issues

But before you do, could you maybe search your Windows Start menu for the Diagnostic tool from UiPath and send me over the output via a private message @loginerror? We would like to investigate it a bit more to make sure no sneaky bugs make it to future releases.

Hi @Mahendra_Reddy , we also noticed the new projects you are trying to create are under a One Drive synced folder. Could you please let us know if changing the project path when creating it allows you to create projects? It might be that there aren’t enough permissions on the One Drive account.
For example, in my case I am using a ‘D:\Test’ path:
image

Also, as @loginerror mentioned, it would really help us if you could send a Diagnostics Tool report. Thank you so much!

1 Like

Hi @loginerror / @coramia

Issue is resolved after following guide How to fix your Studio installation / Licensing issues
(How to fix your Studio installation / Licensing issues)

Thanks for your help.

Regards,
Mahendra.

1 Like

Hi @Mahendra_Reddy

Our team investigated the issue and the fix will be released in one of the coming versions.