SAP LOGON Error

Hi Team,

I’m trying to automate SAP login using UiPath SAP Logon activity, but I’m consistently getting the following error:

“SAP Logon: External component has thrown an exception.
System exception at initialization: External component has thrown an exception.
Source: SAP Logon”

@Sruthi_Edulamudi

can you try opening the exceptions details from locals panel that can show more details soemtimes

also is SAP enabled for scripting?

cheers

@Anil_G Hi !

System.Runtime.InteropServices.SEHException: External component has thrown an exception. at UiPath.Core.Activities.ObsoleteTaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

@Sruthi_Edulamudi

is all permissions provided for your account?
Try below option which was given by LLM

On both client and server, scripting must be enabled.

On SAP Client (SAP Logon):
  1. Open SAP GUI.
  2. Go to OptionsAccessibility & ScriptingScripting.
  3. Make sure:
  • :white_check_mark: Enable scripting
  • :white_check_mark: Notify when a script attaches to SAP GUI (optional)
  • :white_check_mark: Notify when a script opens a connection (optional)
On SAP Server:

Ask your SAP Basis team to confirm that server-side scripting is enabled in the SAP profile (rdisp/gui_auto_login, sapgui/user_scripting parameters).

@yedukondaluaregala Hi

its already enabled but still same issue

Hi Sruthi,

Can you check the SAP GUI Version compatibility as UiPath officially supports specific SAP GUI versions.

If you’re using SAP GUI 8.x, make sure you’re on the latest patch and it’s not too far ahead of UiPath Studio 23.10 (or 24.10 when upgraded).

2024.10.1

https://docs.uipath.com/studio/standalone/2024.10/user-guide/release-notes-2024-10-1?fallbackReason=invalidTopic&isFallback=true&fallbackCount=1#section-sap-gui-support

=================================

Alternate solution:

  • Use “Open Application” or “Start Process” activities to launch `SAP Logon.exe.
  • Then use type into and click activities for the required steps.

I hope it helps.

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