RPA Developer Lesson 13 practice 2 cannot be opened

Opening this lesson results in an error message: Error detecting project version.

Log: 19.7.0+Branch.master.Sha.8c253d13718eed5c7db27daef6facd1fe1b0d067

Error detecting project version

Error: System.NotSupportedException: Error detecting project version
at UiPath.Project.ProjectData.WorkflowDataUpgrade.GetLatestProjectData(String projectContent)
at UiPath.Project.WorkflowProjectRepository.<>c__DisplayClass11_0.b__0()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- 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.Project.WorkflowProjectRepository.<Read>d__11.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.Studio.Plugin.Workflow.Project.ProjectJsonReader.<ReadAsync>d__4.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.Studio.Core.Services.PersistableServiceBase3.d__21.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.Studio.Core.Services.PersistableServiceBase3.<ResolveFactory>d__11.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.Studio.Core.Services.PersistableServiceBase3.d__10.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.Studio.Shell.Services.OpenCloseCommandsService.d__18.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.Studio.Shell.Services.OpenCloseCommandsService.d__16.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.Studio.Shell.Services.OpenCloseCommandsService.d__14.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.Studio.Shell.ViewModels.MainWindowViewModel.d__190.MoveNext(), HResult -2146233067

Follow up on my own report, the JSON looks a bit suspicious when comparing it with dother projects

error project looks like

{
“description”: “Blank Project”,
“version”: “8.2.5903.34792”,
“main”: “Main.xaml”,
“id”: “Demo”,
“dependencies”: {},
“configurationOptions”: {},
“excludedData”: [
“Private:*”,
password
]
}

other projects look more like

{
“name”: “Lesson 12 Practice 2 - Consolidate - Answers”,
“description”: “Blank Process”,
“main”: “Correct errors.xaml”,
“dependencies”: {
“UiPath.UIAutomation.Activities”: “[18.3.6849.17212]”,
“UiPath.System.Activities”: “[18.3.6849.17190]”,
“UiPath.Excel.Activities”: “[2.3.6682.26635]”,
“UiPath.Mail.Activities”: “[1.1.6562.21018]”
},
“schemaVersion”: “3.2”,
“studioVersion”: “18.3.1.22”,
“projectVersion”: “1.0.0.0”,
“runtimeOptions”: {
“autoDispose”: false,
“excludedLoggedData”: [
“Private:*”,
password
]
},
“projectType”: “Workflow”,
“libraryOptions”: {
“includeOriginalXaml”: false,
“privateWorkflows”:
}
}

it appears this is a very old project that has not been updated for a long time

Hi @svdwal

This issue is easily fixed by:

  1. Computer restart
  2. If 1. didn’t work, a Studio clean installation

I had done a clean install a couple of hours before encountering this error.

But how can a clean install resolve this? the json appears to be from a much older version of UiPath Studio.

The Error detecting project version happens when you try to run the project created in 2019.7 on an earlier version of Studio. This typically is the case when Studio auto-update did not manage to restart the Robot service.
(it all comes from the xaml schema being updated to the new version in 2019.7)

Now, I get your point about the relevancy of this solution. However, it was important to see whether this would have any effect on the issue.

The actual solution here will most likely be to delete the project.json file and then running the XAML file. Studio should recreate the project.json with the new schema :slight_smile: (but please make sure the Robot service runs from the Studio 2019.7 folder, just in case it is in any way used to parse the project.json file)