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 / Power Automate running...
Power Automate
Answered

Power Automate running program glitch

(0) ShareShare
ReportReport
Posted on by 9

I wrote a program in Python, generated an .exe for it. Double clicking the .exe causes the program to run perfectly. It opens a pdf form in the same directory, processes the data from the form, and outputs a CSV with the consumed data.

 

When using Power Automate Desktop to run the same .exe the file runs, but then fails with an error: see below. 

 

Is there something about the power Automate process that prevents the .exe from grabbing the pdf?

Michael_McCone_0-1688759907234.png

Michael_McCone_3-1688761870525.png

 

Michael_McCone_2-1688761840847.png

 

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Do you provide any inputs to your Python script when you run it manually? You might need to provide those, when running it via the Run application action, too.

    Also, is 10 seconds enough for it to complete?

     

  • Michael_McCone Profile Picture
    9 on at
    with open('Rae2.pdf', 'rb') as fp:
        parser = PDFParser(fp)
     
    This is the part of the program that appears to be failing. So the program is looking for Rae2.pdf. If Power Automate is copying the program and running it from a different location then I could see needing to indicate to PA what file to use. Is that what is happening?
  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You should probably specify the full path to the file in the script, as your script might be running from a different directory when launched from PAD than when it's launched from your .exe file manually.

    -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution.

    If you like my response, please give it a Thumbs Up.

     

    If you are interested in Power Automate, you might want to follow me on LinkedIn at https://www.linkedin.com/in/agnius-bartninkas/

     

  • Michael_McCone Profile Picture
    9 on at

    You nailed it sir. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard