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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help with PermissionEr...
Power Automate
Unanswered

Help with PermissionError: [WinError 5] Access is denied

(0) ShareShare
ReportReport
Posted on by

Hello! I'm trying to use Power Automate to run a Python 3.9 script via PowerShell. I've defined a variable to store the path to Python on my computer and another for the path to the script I want to execute.

 

The script's purpose is to merge .xlsx files, create folders, and move these files to the corresponding folders. However, when running the script, I encounter a 'PermissionError: [WinError 5] Access denied 'C:\\Program Files\\WindowsApps\\Microsoft.PowerAutomateDesktop_11.2404.195.0_x64__8wekyb3d8bbwe\\2024'', specifically on the line of code that attempts to create the folders.

 

I've ensured that Power Automate is running as an administrator, that the folder allows access and modification for any user, and that my firewall isn't interfering with the system.

 

Is there any way to grant permissions to Power Automate to resolve this issue?

 

The workflow I've set up is as follows:

  1. Define the variable for the Python path.
  2. Define the variable for the script path.
  3. Execute the script via PowerShell.
  4. Display an error message if any occurs."

 

 

I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard