Cannot able to open the XAML file

Hi Team,
The Workflow where i created the task is v2018.2.4(UI Path Studio).
Once I got the Studio updated and I tried to open my workflow in UI Path Studio v2018.3 but at that time I am getting an error as “An Internal error has occured. It is recommended to restart the UI Path Studio”. I am getting this error, even after restarting my System the same error is poping up.
Kindly suggest how to overcome this issue.

Regards,
Vijay

@Vijay_2694 Delete Json file from project folder and run

Try to restart your uiRobot then try to run the flow

Hey @Vijay_2694

Can you share Screenshot of the error?

Regards…!!
Aksh

@indra Even after deleting the Json file an the .Local folder i am getting the Same Error message

@aksh1yadav Please find the Screenshot below

Yes I have done that but still the same error is getting popped Up.

Hi @Vijay_2694

Could you click the “Copy to Clipboard” in the error message and paste here the content?
image

Hi @loginerror please find the content of the Error Message.

18.3.0+Branch.master.Sha.e9cf0bdab85f4bcf826ce750c59905c7ac073d5e

An internal error has occurred. It is recommended to restart UiPath Studio.

Open Document Error: UiPath.Studio.Contracts.RecoverableException —> UiPath.Studio.Contracts.RecoverableException: The project ‘C:\Users\vijay.bakthavatsalam\Documents\UiPath\Test\project.json’ could not be opened: Value cannot be null.
Parameter name: source. —> System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable1 source, Func2 selector)
at UiPath.Studio.Shell.Packaging.PackageOperationBase.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.Packaging.PackageOperationBase.<>c__DisplayClass18_0.<b__0>d.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.Packaging.PackageOperationBase.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.Packaging.PackageOperationRestore.d__1.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.Packaging.PackageService.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.Plugin.Workflow.Project.WorkflowProjectModelFactory.d__34.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.WorkflowProjectModelFactory.d__41.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.WorkflowProjectModelFactory.d__39.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.PersistableServiceBase2.<OnOpenAsync>d__22.MoveNext() --- End of inner exception stack trace --- at UiPath.Studio.Shell.Services.PersistableServiceBase2.d__22.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.ProjectService.d__39.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.PersistableServiceBase`2.d__15.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 inner exception stack trace —
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__13.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.ApplicationStartup.d__15.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.ApplicationStartup.<b__30_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

User reported here that antivirus was the culprit:

Could you whitelist the files in your antivirus software and see if it works?

view the antivirus logs

vijay.bakthavatsalam, just close your UiPath, Delete your ,JSON file in the same folder and double click on .xaml file and you will be all set.

HI @rkelchuri after I deleted the JSON file I tried to open the UI Path, it opened the .xaml file but some of the Activites are missing for that file. Eg: Database activity.while installling the Database package I am getting an error. Please find the Screenshot and the Content of the Clipbord below.

18.3.0+Branch.master.Sha.e9cf0bdab85f4bcf826ce750c59905c7ac073d5e

Value cannot be null.
Parameter name: source

Error: System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable1 source, Func2 selector)
at UiPath.Studio.Shell.Packaging.PackageOperationBase.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.Packaging.PackageOperationBase.<>c__DisplayClass18_0.<b__0>d.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.Packaging.PackageOperationBase.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.Packaging.PackageOperationUpdate.d__3.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.Packaging.PackageService.<>c__DisplayClass30_0.<b__0>d.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.Shared.Utilities.WindowCommandsExtensions.d__3`1.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.UI.ViewModels.PackageExplorerViewModel.d__134.MoveNext(), HResult -2147467261

Kindly help on this issue.

Regards,
Vijay

Please load those pacakages and try again…

try to create a blank project

Still same issue persistent then copy all your xaml files and paste into different folder and open it.
don’t copy JSON file…

Hi @Leonardo I can create the blank Project that wont be a problem but what happens to my existing code. If I migrate the Code from v2018.2.4 to v2018.3 then all my projects are throwing error. In that case how to overcome this issue and how to get my existing code.?

@rkelchuri Nope negative… Still same issue.

When you migrate code from 2.4 to 3 then all your xaml will give errors… you just need to delete JSON file and start adding all related pacakages from your pacakage manager.
also make sure your root folder name should not be “UiPath” .

I faced same issue and i corrected and migrated…

I had the same problem with the projects I disabled the antivirus (Mcafee) and then I managed to load them