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 / Power Automate Python ...
Power Automate
Unanswered

Power Automate Python Script Showing incorrect output

(0) ShareShare
ReportReport
Posted on by

So I've written a python script which shows the last modified date of a file.
I need to compare the date with current day date and if it's equal then perform some action.

Note: I'm working on Power Automate Desktop version

I tried running powershell command by doing
python_path = *python path in C disk*
script_path = *path of the script on the system*

then ran this via powershell script as 
%python_path% %script_path%

this only shows me 1/1/1970 12:00:00:00 AM for some reason which I don't understand, running script on windows terminal shows correct output

I tried converting my python3 code to python2 and copy pasted it in the python script runner and the output is blank.

Categories:
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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard