SAP BAPI - Object reference not set to an instance

Hi All,

This is my first workflow in SAP BAPI. I have configured all the server details in BAPI application scope and Invoke SAP BAPI as well. I have given my BAPI name and passed the arguments of type datarow and string variable with some sample values. While running the workflow I am getting object reference error. Kindly help me to resolve this issue. Send me some sample workflow if possible.

Thanks in Advance,
Deepika Y

Hi All,

Can anyone help me to fix the below issue while executing the BAPI function.

RemoteException wrapping System.NullReferenceException: Object reference not set to an instance of an object.
at UiPath.SAP.BAPI.Activities.SapApplicationScope.CloseConnection(NativeActivityContext context)
at UiPath.SAP.BAPI.Activities.SapApplicationScope.OnFaulted(NativeActivityFaultContext faultContext,
Exception propagatedException,
ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext,
Exception propagatedException,
ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)

I have used only 2 activities.

  1. SAP Application scope
    2.Invoke SAP BAPI

Thanks in Advance,
Deepika