Hi Team,
I am trying to automate the activity for SAP ECC and SAP HANA. using PAD. I am using Launch SAP action. I tried both the Connection mode: Server description and Server connection string with Manual Login and I get below error:
Server description Error:
Object reference not set to an instance of an object.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Action failed. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Flow.RPA.Desktop.Modules.SAP.Actions.SapLogin.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.SAP.Actions.SapLogin.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
Server connection string Error:
The 'Sapgui Component' could not be instantiated.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Action failed. ---> System.Runtime.InteropServices.COMException: The 'Sapgui Component' could not be instantiated.
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Interop.SAPFEWSELib._Dsapfewse.OpenConnectionByConnectionString(String ConnectString, Object Sync, Object Raise)
at Microsoft.Flow.RPA.Desktop.Modules.SAP.Actions.SapLogin.CreateConnectionToSapServer(ConnectionMode connectionMode)
at Microsoft.Flow.RPA.Desktop.Modules.SAP.Actions.SapLogin.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.SAP.Actions.SapLogin.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
If anybody had similar issue then please do help me here.
Thanks,
ANB