Save all documents failed

Hi @balupad14 @supermanPunch


Details of error:
Unable to start execution: Save all documents failed.
WorkflowDocument : C:\Users\mitulchoudhary\Documents\UiPath\Compliance dashboard execution\Safe_1.xaml => System.UnauthorizedAccessException: Access to the path ‘C:\Users\mitulchoudhary\Documents\UiPath\Compliance dashboard execution\Safe_1.xaml’ is denied.
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.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter…ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamWriter…ctor(String path, Boolean append, Encoding encoding)
at System.Activities.Presentation.WorkflowDesigner.Save(String fileName)
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.Save(String fileName)
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.<>c__DisplayClass15_0.b__1()
at UiPath.Studio.Shared.MVVM.Services.DispatcherExtensions.Invoke(Dispatcher dispatcher, Action action, Boolean onlyBeginInvokeWhenNoAccess)
at UiPath.Studio.Shared.MVVM.Services.DispatcherService.Invoke(Action action, Boolean onlyInvokeWhenNoAccess)
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileService.Save(String fileName, String workflowId)
at UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService.Save(String fileName, String workflowId)
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileServiceProxy.Save(String fileName, String workflowId)
at UiPath.Studio.Plugin.Workflow.Shared.Document.WorkflowDocumentFactoryBase.SaveAsync(IDocument item, SaveInformation info)
at UiPath.Studio.Core.Services.PersistableServiceBase3.<OnSaveAsync>d__20.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.DocumentService.<OnSaveAsync>d__48.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__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.Services.DocumentService.d__45.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.DocumentService.d__35.MoveNext()
, HResult -2146233088

Please help URGENT…!!

@mitul_choudhary So you are not able to save the workflow files ?

Perhaps Yes.

@mitul_choudhary Did you change the location of the project from it’s original position ?

Yes.

@mitul_choudhary You should maybe switch back to the original position and try to save the workflows. Also when you want to change the location of the files make sure you Close the Workflow Opened in Studio first and then Change it.

Same error coming on original location also.
Here’s the code:

@supermanPunch…???
@balupad14…??

@mitul_choudhary I can only think of Copying the Workflows from within the Studio to a Newly created workflow, if you have done too much of changes :sweat_smile: . Then Close the Workflow which gives out the error and Open it again and check if it has updated if not Copy the Workflows back from the newly created workflow. Then try to save it.

It is just like keeping a backup of the progress you have done and Checking the Error in that workflow.