Unable to create blank project "Could not be opened: Invalid character in the given encoding. Line 1, position 1.."

Hello,

I am new to UiPath and using community version to get familiarized with it. Till (11th Dec 2019) yesterday i was able to create blank projects, however suddenly i am receiving an error and unable to create the blank projects. I am able to open and run my previously built projects but not create new one now.

I always used same naming format for all my projects “RPA_Developer_2018.3_Lesson5_Task2”

I uninstalled preview version and installed stable version but still thee issue persists.

I’ll be glad if some some could help me in resolving this issue.

image

Project:

{
“name”: “RPA_Developer_2018.3_Lesson5_Task2”,
“description”: “Blank Process”,
“main”: “Main.xaml”,
“dependencies”: {
“UiPath.Excel.Activities”: “[2.7.1-ce]”,
“UiPath.Mail.Activities”: “[1.7.1-ce]”,
“UiPath.System.Activities”: “[19.10.0-ce]”,
“UiPath.UIAutomation.Activities”: “[19.10.0-ce]”
},
“webServices”: ,
“schemaVersion”: “4.0”,
“studioVersion”: “19.10.0.0”,
“projectVersion”: “1.0.0”,
“runtimeOptions”: {
“autoDispose”: false,
“isPausable”: true,
“requiresUserInteraction”: true,
“supportsPersistence”: false,
“excludedLoggedData”: [
“Private:*”,
password
],
“executionType”: “Workflow”
},
“designOptions”: {
“projectProfile”: “Developement”,
“outputType”: “Process”,
“libraryOptions”: {
“includeOriginalXaml”: false,
“privateWorkflows”:
}
},
“expressionLanguage”: “VisualBasic”
}

Error log:

19.10.2+Branch.master.Sha.259f90ae98fad42c3542963e70782dbe96e04579

The process cannot access the file ‘C:\Users\pavan\Desktop\UiPath\UiPath Academy\RPA_Developer_2018.3_Lesson5_Task21\project.json’ because it is being used by another process.

Open Document Error: UiPath.Studio.Contracts.RecoverableException —> System.IO.IOException: The process cannot access the file ‘C:\Users\pavan\Desktop\UiPath\UiPath Academy\RPA_Developer_2018.3_Lesson5_Task21\project.json’ because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader…ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at System.IO.File.ReadAllText(String path)
at System.IO.Abstractions.FileWrapper.ReadAllText(String path)
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.Core.CommonServices.OpenCloseCommandsService.d__26.MoveNext()
— End of inner exception stack trace —
at UiPath.Studio.Core.CommonServices.OpenCloseCommandsService.d__26.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.CommonServices.OpenCloseCommandsService.d__19.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.ShellApplication.StudioShellApplication.d__17.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.ShellApplication.StudioShellApplication.<>c__DisplayClass16_0.<b__0>d.MoveNext()
— 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

Hi @Pavan_kumar_Goud,

Provide one fresh folder path under location and try once…!

Thanks!

Hi @kadiravan_kalidoss,

i tried but its not working.

@Pavan_kumar_Goud

Could you please delete project.json file from project folder and then try once.

@lakshman
I tried deleting complete folder but its not working.

@Pavan_kumar_Goud

Have you tried deleting project.json file ?

yes, i deleted.