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 / Launch SAP Action failed
Power Automate
Answered

Launch SAP Action failed

(0) ShareShare
ReportReport
Posted on by 39

Hi All,

 

I can't get the "Launch SAP" or "Attach SAP" Actions to run. On The "Attach" Action i get an "Attach to running SAP" error and on the "Launch SAP" i get an "Action failed" error. 

This is the error that i get on "Launch SAP"

Correlation Id: b613da2f-83d4-4b8e-85bd-d7b7a16fadfb

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).

 

Does anyone know how to fix this? Thanks in advance!

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

    Hi @GluedTogether ,

     

    Is your SAP version is higher than or equal to 7.50?

    Can you please share the screenshot.

     

    Regards,

    Vishnu Reddy

  • GluedTogether Profile Picture
    39 on at

    We have S/4 Hana and i dont know the exact version but we update pretty regurarly. 

    GluedTogether_0-1715070944886.png

     

  • VishnuReddy1997 Profile Picture
    2,656 Super User 2026 Season 1 on at

    Hi @GluedTogether ,

     

    Please check  the version. PAD generally supports versions 7.50 or later.

    Please share the as below.

    VishnuReddy1997_0-1715071126488.png

     

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


    Thanks & Regards

    Vishnu Reddy

     

  • GluedTogether Profile Picture
    39 on at

    This is what my SAP Team gave me as a Version: 2.00.077.1713529394 I hope this helps. 

    GluedTogether_0-1715073130895.png

     

  • eetuRobo Profile Picture
    4,524 Super User 2026 Season 1 on at

    When you tried Attach to running SAP -action did you have SAP open?
    Have you tried launching the SAP with Run application -action? 
    https://learn.microsoft.com/en-us/power-automate/guidance/rpa-sap-playbook/creating-sap-desktop-flow-vbscript 

    eetuRobo_0-1715073174494.png


    Then if you use Attach SAP when the SAP is open does it work?

  • VishnuReddy1997 Profile Picture
    2,656 Super User 2026 Season 1 on at

    Hi @GluedTogether ,

     

    This version appears to be significantly older than the minimum supported range (7.50).

    Try launching SAP with Run Application action as shown in below image.

     

    VishnuReddy1997_0-1715073648964.png

     

    Also try enabling GUI scripting in SAP as shown in below image.

     

    VishnuReddy1997_1-1715073745040.png

     

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


    Thanks & Regards

    Vishnu Reddy

  • GluedTogether Profile Picture
    39 on at

    @VishnuReddy1997 

    @eetuRobo 

    We have the 2022 OnPremise Solution i was able to confirm it: 

    GluedTogether_0-1715074089106.png

    We also have SAP Logon 800 if that helps any.

    When i tried the Attach Action i had SAP fully open and i was logged in. GUI Scripting was already enabled. 

    The "Run Application" Method starts the SAP Logon App but does nothing afterwards. No Error message either.

  • eetuRobo Profile Picture
    4,524 Super User 2026 Season 1 on at

    @GluedTogether wrote:

    The "Run Application" Method starts the SAP Logon App but does nothing afterwards. No Error message either.


    Then that sounds like the login credentials are incorrect since it didn't get to login. Make sure that SAPSystemId, Client, user and password are correct.

    In the SAP version I use SAPSystemId is three letters and you can find it in the bottom right corner when logged in

    eetuRobo_2-1715079344569.png


    Also in the logon screen:

    eetuRobo_0-1715079232898.png

    eetuRobo_1-1715079338841.png


    (images are just from google so thats why different environments)

  • GluedTogether Profile Picture
    39 on at

    @eetuRobo 

    GluedTogether_0-1715079302730.png

    Client, password and User are all like i would type them within the SAP Logon (client saved as a number variable, pw and user as a text). The SystemID is just the 3 Letter Code thats shown on the logon startup app under the SID Column right? 

    GluedTogether_1-1715079463127.png

     

  • eetuRobo Profile Picture
    4,524 Super User 2026 Season 1 on at

    Yes that should be the SystemID. Hmm I'm not sure then what's the issue.

    Some people seem to have had problems with newer PAD versions when trying to use SAP.
    See: https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Unhandled-Error-Object-Reference-Not-set-to-an-Instance-of-an/td-p/2576010
    https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Erro-System-NullReferenceException/m-p/2599399#M36696 

    So maybe you could try downgrading (or if you don't have the newest version then try updating PAD).
    downloads for different PAD versions: https://github.com/jfevia/Power-Automate-Desktop/releases 

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 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard