web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SAP VBScript failing w...
Power Automate
Answered

SAP VBScript failing with latest version of PAD

(0) ShareShare
ReportReport
Posted on by 11

Updated PAD to 2.43.204.24107 and am now getting failures in my sap gui scripts. It fails on the first line "set sapguiauto = GetObject("SAPGUI")" (with or without set)

 

anyone else experiencing this issue, and no how to resolve?

I have the same question (0)
  • VishnuReddy1997 Profile Picture
    2,656 Super User 2026 Season 1 on at

    Hi @Handro ,

     

    If you believe that the  issue started after upgrading, please consider downgrading to either version 2.42.002 or version 2.41.X, both of which are more stable compared to the new version, 2.42.3.

     

    Alternatively, Please raise a ticket to Microsoft Support.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Vishnu Reddy

     

  • Archy Profile Picture
    83 on at

    Can u try this:

    If Not IsObject(application) Then
     Set SapGuiAuto = GetObject("SAPGUI")
     Set application = SapGuiAuto.GetScriptingEngine
    End If
    If Not IsObject(connection) Then
     Set connection = application.Children(0)
    End If
    If Not IsObject(session) Then
     Set session = connection.Children(0)
    End If
    If IsObject(WScript) Then
     WScript.ConnectObject session, "on"
     WScript.ConnectObject application, "on"
    End If
    session.findById("wnd[0]").maximize
    your Actions eg open transaction or Click

    Please provide an error if any.  Tnx.

    Hope it works. 

  • Verified answer
    Handro Profile Picture
    11 on at

    Looks like this resolved iteself after system restarts and pad reinstall. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 581

#3
Haque Profile Picture

Haque 545

Last 30 days Overall leaderboard