Cannot access closed pipe issue- Uipath

I am getting cannot access closed pipe issue randomly.

For example , when i am opening the Xaml or running the file in uipath

@divya.rajendiran There is one more thread already created for this question. Refer below link hope this will resolve your query.

Hello @divya.rajendiran

If you are facing this while performing some particular action or activity. Suggesting to update\downgrade the package version to a stable one.

Then try to execute again.

@divya.rajendiran

  • Are you getting this error for only this file or other xamls as well
  • Also, can you share the screenshot of the activities that you use in this xaml

i am getting this for mostly all the Xamls. Suddenly when opening the files or even while executing the Xamls

this is my package version.

@deepak.rai6 i checked that as well Deepak. That didnt resolve my issue :frowning:

Hello @divya.rajendiran

Did you tried creating a new project and verified whether you are getting the same issue for other projects also??? If no, plz have a try and update here.

For the current project can you take a backup and delete the project.json file and then try to reopen again in studio.

@Rahul_Unnikrishnan yes, i did it. I am getting that error for all the projects :frowning:

Still i am struggling to resolve the issue. is there anything with package version ???

@divya.rajendiran as it is affecting all the projects I don’t think it’s a package issue. Can you try installing a new copy of uipath?

Also, is UiPath installed to any folders which are having any access restrictions?

Cannot open item: UiPath.Studio.Contracts.RecoverableException: The item ‘C:\Users\450104\Downloads\CDD Events Edge BP7 code (2)\CDD Events Edge BP7 code\Lib\CDD_Automation_Edge\Write MaxrowNumber And ColumnWidth.xaml’ could not be opened: Cannot access a closed pipe…
—> RemoteException wrapping System.ObjectDisposedException: Cannot access a closed pipe.
at System.IO.__Error.PipeNotOpen()
at System.IO.Pipes.PipeStream.CheckWriteOperations()
at System.IO.Pipes.PipeStream.BeginWrite(Byte buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
at System.IO.Stream.<>c.b__53_0(Stream stream, ReadWriteParameters args, AsyncCallback callback, Object state)
at System.Threading.Tasks.TaskFactory1.FromAsyncTrim[TInstance,TArgs](TInstance thisRef, TArgs args, Func5 beginMethod, Func3 endMethod) at System.IO.Stream.BeginEndWriteAsync(Byte[] buffer, Int32 offset, Int32 count) at System.IO.Stream.WriteAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken) at UiPath.CoreIpc.IOHelpers.<WriteMessage>d__8.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.CoreIpc.Connection.<SendMessage>d__36.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 Nito.AsyncEx.TaskExtensions.<DoWaitAsync>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.CoreIpc.Connection.<RemoteCall>d__31.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at UiPath.CoreIpc.ServiceClient1.<>c__DisplayClass21_11.<<Invoke>b__1>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.CoreIpc.Helpers.<Timeout>d__91.MoveNext()
— End of stack trace from previous location where exception was thrown —
at UiPath.CoreIpc.ServiceClient1.<>c__DisplayClass21_11.b__2(Exception ex)
at UiPath.CoreIpc.Helpers.d__91.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.Mocking.Services.ActivityMockingService.IsMock(String filePath) at UiPath.Studio.Plugin.Workflow.WorkflowHandling.OverrideReadOnlyStateBehavior.Execute(IDesignerOwner designerOwner, Object contextObject) at UiPath.Studio.Plugin.Workflow.WorkflowHandling.CustomDesignerBehaviorExtensions.ExecuteAll[TContextObject](IEnumerable1 behaviors, IDesignerOwner designerOwner, TContextObject context)
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.Load(String fileName)
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<>c__DisplayClass6_0.<b__0>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<>c__DisplayClass6_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.MVVM.Services.DispatcherService.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.Plugin.Workflow.Services.DesignerFileProjectEndpoint.d__6.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.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>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.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>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.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>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.CoreIpc.Helpers.d__91.MoveNext() --- End of inner exception stack trace --- at UiPath.Studio.Core.Services.PersistableServiceBase3.OnOpenAsyncInternal(String path, IFactory2 resolvedFactory, IOpenOptions options) at UiPath.Studio.Core.Services.PersistableServiceBase3.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options) at UiPath.Studio.Shell.Services.DocumentService.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Core.Services.PersistableServiceBase3.OpenAsync(OpenInformation openInfo) at UiPath.Studio.App.Desktop.ProjectItems.Behaviors.FileProjectItemBehavior.ExecuteOpenAsync(IFileSystemProjectItemViewModel item) at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
at System.Threading.Tasks.Task.<>c.b__128_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

is there any possible solution for this error. I am using Studio 22.4.4 and while opening any xaml i am getting the below sample error.

I have tried creating different project in different location, tried updating the package. Still it is giving same error.

image

Cannot access a closed pipe - v 2022.4 - Help / Studio - UiPath Community Forum

Getting the error “Cannot access a closed pipe” - Help / Studio - UiPath Community Forum

Similar threads same issue, any thoughts?