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 / Powerautomate with tas...
Power Automate
Unanswered

Powerautomate with task scheduler

(0) ShareShare
ReportReport
Posted on by

I been trying to run some automated task through task scheduler, but I been running into a issue.

 

Whenever I try to run PAD through task scheduler and I have the option "Run whether user is logged on or not" the task will simply not run, the status of the task in task scheduler will stay on running forever till I manually end it.

The task does run if if I choose "Run only when user is logged on"

I also tried running it on highest privileges.

 

This is what I have for actions:

Dernes_0-1691399431859.png

 

And for what PAD is suppose to do is simply open a FTP connection, upload a file then close ftp connection

 

Now I am not sure if this is an Task scheduler issue or task scheduler combined with PAD issue.

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

    How exactly are you authenticating against the FTP - are you using Windows auth? Where is the file stored? Is it in some network directory or the user documents? It might be that the flow itself requires the user to be logged in to either create the FTP connection or access the file, if it is only available from the context of the user.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Community Power Platform Member Profile Picture
    on at

    We do not use windows auth to authenticate with the FTP, we use the credentials that were given us, those are also provided in the action "Open FTP Connection".
    The file is stored on a network location, I checked if the service account that is running the task has access to this location and it should have access to it.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Which service account do you mean? NT Service\UIFlowService?

  • Community Power Platform Member Profile Picture
    on at

    its a service account we use to run task like this, Its a service account that is on our AD and has the The Log on as a service user rights

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Power Automate runs under NT Service\UIFlowService. If the user is not logged on, this is the service that runs the flow. If this service account does not have access to the file, the flow will not have access to it either.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Community Power Platform Member Profile Picture
    on at

    Alright I think I understand what you are saying, now I am not sure if this is a smart thing to do, but what if I change the Log On As account to the service account we use?

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I'm not sure if it would be allowed to run without logging in, as I've never tried this myself, but that's an option you could definitely test.

  • Community Power Platform Member Profile Picture
    on at

    So I been testing, changing the service account does nothing, I did test with a different account that has admin rights, this one does start the flow and it works but the task will stay on running forever.

    Running out of ideas to test

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard