Hi team,
We are getting below error while invoking the SAP BAPI activities on IE4 environment and other environments it’s working fine.
[RfcCommunicationException]Fetch BAPI arguments.
Message:The only destination SapDefaultConnectionName available failed when retrieving metadata from IE4 – see log for details
StackTrace: at SAP.Middleware.Connector.RfcRepository.findAlternateDestination(Int32& destIndex, Int32& alternativeDestinationsCount, Exception ex)
at SAP.Middleware.Connector.RfcRepository.Execute(RfcFunction function)
at SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadataNew(String name)
at SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadata(String name)
at SAP.Middleware.Connector.RfcRepository.GetFunctionMetadata(String name)
at SAP.Middleware.Connector.RfcRepository.CreateFunction(String name)
at UiPath.SAP.BAPI.ConnectionService.SapConnectionService.SapConnector.CreateFunction(String bapiName)
at UiPath.SAP.BAPI.ConnectionService.SapConnectionService.SapConnectionService.GetBapiArgumentList(String bapiName)
Error: System.TimeoutException: [RfcCommunicationException]Fetch BAPI arguments.
Message:The only destination SapDefaultConnectionName available failed when retrieving metadata from IE4 – see log for details
StackTrace: at SAP.Middleware.Connector.RfcRepository.findAlternateDestination(Int32& destIndex, Int32& alternativeDestinationsCount, Exception ex)
at SAP.Middleware.Connector.RfcRepository.Execute(RfcFunction function)
at SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadataNew(String name)
at SAP.Middleware.Connector.RfcRepository.LookupFunctionMetadata(String name)
at SAP.Middleware.Connector.RfcRepository.GetFunctionMetadata(String name)
at SAP.Middleware.Connector.RfcRepository.CreateFunction(String name)
at UiPath.SAP.BAPI.ConnectionService.SapConnectionService.SapConnector.CreateFunction(String bapiName)
at UiPath.SAP.BAPI.ConnectionService.SapConnectionService.SapConnectionService.GetBapiArgumentList(String bapiName)
at UiPath.SAP.BAPI.Utilities.BackgroundWorkerUtility.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.SAP.BAPI.Activities.Design.ViewModels.MandatoryParametersPageViewModel.d__52.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 -2146233083