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 / Powershell Script not ...
Power Automate
Answered

Powershell Script not working in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Community!

 

I'm trying to automate uploading Power BI reports to our report server (we use the on premises version of Power BI rather than the cloud) I have 2 scripts that run one after another and work outside of PAD but when I add them in via this method the report is not uploaded:

 

PAD.PNG

 This is what the second script looks like:

 

Script Example.PNG

What am i doing wrong?

 

Many thanks for any help!


Amy

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Is that Folder Location "/" the wrong way?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @MichaelAnnis the script works outside of PAD so I'm not sure why I would need to change the slash in the script for PAD to make it work. I'm also not receiving any error messages when running the flow. 

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Are they both not working, or just the second one?  I wonder if it's a timing issue.

     

    If the first one isn't working either, to test, temporarily disable the second one.

     

    If that works, or if it is just the second one that is failing, I would get some type of Wait command to run the second.  

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @MichaelAnnis the first script allows the second to run (it's a function) so I tried running the first script outside of PAD and then running the second inside PAD and that doesn't work either. No matter what combination I try it fails to upload the report. 

  • kierian Profile Picture
    Microsoft Employee on at

    try this hope its help.

    How to use PowerShell in Power Automate Desktop - YouTube

    Have a good day.

  • Verified answer
    yoko2020 Profile Picture
    495 on at

    @Anonymous 

    Are there any error inside these 2 variables ?

     

    %ScriptError%
    %ScriptError2%

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, thanks...this is actually the video I used to make the flow.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you, I am so new to PAD I didn't realise how to look at the message inside the variables. I combined the script into one as it wasn't recognising one of the commands and it now works. Thank you!!

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard