Error The 'Sapgui Component' could not be instantiated

Error when use SAP Logon Activity on Windows server 2012, while on Windows 10 no issue.

image

Internal SAP error occured: HRESULT: 0x8004045D
Message: IDispatch error #605
Description: The ‘Sapgui Component’ could not be instantiated.

RemoteException wrapping System.Runtime.InteropServices.COMException: Internal SAP error occured:
HRESULT: 0x8004045D
Message: IDispatch error #605
Description: The ‘Sapgui Component’ could not be instantiated.
at UiPath.Core.Activities.ObsoleteTaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)

HI @slashgao

The most probably issue is with your SAP WinGUI installation.
The error is very bad, like “I am not able to find Sapgui”

I would recommend to Uninstall and Install SAP WinGUI again (allowing also SAP Scripting component to be installed.)

Best regards, Lev

1 Like

The issue resolved by reinstall SAP application.

Thanks.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.