SAP RfcCommunicationException Fetch BAPI arguments

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

Hello Swapnil,
what is the difference between your SAP system with the SID IE4 and the others?
Did you check the application log SLG1 as described in the error message? What message is displayed there?
Help us to help you.
Best regards
Stefan

Hi stefan,
Thank you for replying.
we have performed SAP S/4HANA upgrade in IE4 from 2020 to 2021 (From SAP S/4HANA 2020), orchestrator log is : “System IE4 is no supported” for that failed run, before it was working for invoking the SAP BAPI activities and we are passing the data table as In argument. Also we didn’t find any error on sap SLG1 logs. Can you please suggest on this?

1 Like

Hi stefan,
Thank you for replying.
we have performed SAP S/4HANA upgrade in IE4 from 2020 to 2021 (From SAP S/4HANA 2020), orchestrator log is : “System IE4 is no supported” for that failed run, before it was working for invoking the SAP BAPI activities and we are passing the data table as In argument. Also we didn’t find any error on sap SLG1 logs. Can you please suggest on this? Is it related to sapnco dependencies?

1 Like