Close Connection

Hello good morning, afternoon or evening.

I’m running my bot in debug mode and I’m getting the Close connection exception, I’m just looking at a value in SAP, so I don’t think I should get that error.

I have already checked all my code and reinstalled uipath but it keeps throwing the following error:

RemoteException wrapping System.AggregateException: One or more errors occurred. (Connection closed.) —> RemoteException wrapping System.IO.IOException: Connection closed.

at UiPath.CoreIpc.Connection.RemoteCall(Request request, Stream uploadStream, CancellationToken token)
at UiPath.CoreIpc.ServiceClient1.<>c__DisplayClass21_11.<b__1>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler) at UiPath.CoreIpc.ServiceClient1.<>c__DisplayClass21_11.<Invoke>b__2(Exception ex) at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler)
at UiPath.Executor.Debugger.Client.Services.RobotExecutorProxy.StartJobAsync(ExecutionStartOptionsSlim startOptions)
— End of inner exception stack trace —
at UiPath.CoreIpc.Connection.RemoteCall(Request request, Stream uploadStream, CancellationToken token)
at UiPath.CoreIpc.ServiceClient1.<>c__DisplayClass21_11.<b__1>d.MoveNext()
— End of stack trace from previous location —
at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler) at UiPath.CoreIpc.ServiceClient1.<>c__DisplayClass21_11.<Invoke>b__2(Exception ex) at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler)
at UiPath.Executor.Debugger.Client.Services.RobotExecutorProxy.StartJobAsync(ExecutionStartOptionsSlim startOptions)

I’m using win 11, I don’t know if that is a problem.

I guess the token used for establishing the connection is expiring …try to use a retry option in such cases and establish new connection and see if it is happening again

Hello @Gustavo_Hernandez

Could you please sahre the screenshot of the flow which you have created?
As per the error there is an issue between the connection of UiPath and SAP.

Hello

I don’t think it’s SAP issue since it didn’t happen, after it throws that error, the bot keeps running in debug mode (which is very strange that it does) yesterday I checked that I had this:

NU1101: Unable to find package Microsoft.Office.Interop.Excel. No packages exist with this id in source(s):

I searched for the package and placed it manually and so far it hasn’t failed.