Announcements
Hello,
When i execute Python script using "Run Python Script" Action in PAD i m getting syntax Error , But the script is working fine with Pycharm and visual studio. Can some one help on this.
Error: Parameter 'Python script to run': Syntax error.
Power Automate Desktop runs Python 2 scripts only for now, I'm guessing you wrote your script in Python 3+ and that is why you're getting a syntax error. Try converting your script to Python 2.
FYOI, in the advanced options when running Python activity in PAD, you can put on ScriptError, which will show at which line the errors occur.
Hi @OkanAT ,
Thanks for the quick response. I m running python 2 script only.
Error:(Sub flow: Main, Line: 11, Action name: Run Python script) But i didn't find any error in the error location
Perhaps you are using some libraries that are outdated or have to be imported in some way?
Could you show line 11?
Enclosed screen shot
enclosed few script images
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 484
11manish 282
David_MA 280 Super User 2026 Season 1