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 Automate
Unanswered

Insufficient memory

(0) ShareShare
ReportReport
Posted on by 100

Hi Community,

I run a desktop flow with loop and running all the day(7X24), it runs around 18-24 hours, it will meet 'Insufficient memory' issue, I need to click continue then stop and start desktop flow again. please help check below screen and the issue detail as attached then advise, thanks!

 

 

lion_0-1693443124553.png

 

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

    My best guess is you have a log file that just keeps growing and growing because the flow never turns off to clear it out.

     

    Find this log file and every once in a while in your loop, delete it or clear it out.

     

    Unfortunately, I have no idea where this log file would be.  I honestly don't know where to look beyond:
    C:\Program Files (x86)\Power Automate Desktop

     

    Good luck!

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I would suggest you clear as many variables as you can during runtime, so you don't store a lot of information in them all the time. This consumes a lot of memory. Also, if you use Chrome in your flow, it might make sense to switch to Edge. Chrome is a monster when it comes to eating up memory.

     

    If you have any less than 8GB of RAM, you should also get more installed, if possible. 8GB is the minimum. For a flow that should run infinitely, you would actually need more - I'm guessing at least 32GB.

     

    And yet, you should still not expect it to run infinitely. It's not designed to be run this way, and it will consume loads and loads of resources. I assume the reason you are doing this is so that you don't need a paid Premium license, but really, at $15/month it's not really that expensive. I can't think of a process that wouldn't save you this much, but would still be worth automating.

    -------------------------------------------------------------------------
    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.

  • lion Profile Picture
    100 on at

    Hi Agnius,

    thanks for the advise! please check my  below answer and question, thanks!

    1. clear as many variables as you can during runtime - how to this?

    2. we don't use UI interaction for this flow, we use the flow download file from SharePoint then insert into DB

    3. the RMA is 64 G

    4. we have Premium license, why I didn't use schedule Cloud to invoke Desktop flow is we use MFA to login the desktop flow running server, one step is use 'Duo Mobile'. someone need accept from 'Duo Mobile' when login.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    To clear variables - simply have a step in your flow where you use Set variable to set as many of your runtime variables to blank values. Also use Clear list to clear list variables. Have as few of them as possible in general, and then also try to clear those you can.

     

    If you have a Premium license, why don't you just use Windows Task Scheduler to schedule your flows?

    -------------------------------------------------------------------------

    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.

     

  • lion Profile Picture
    100 on at

    Windows Task Scheduler to schedule your flows - how to do this? could you please have some guide?

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Try watching this tutorial: https://youtu.be/pFZSajbQsxc?si=TeDlJfEon5-QW3R7

    -------------------------------------------------------------------------

    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.

     

  • lion Profile Picture
    100 on at

    "If a triggered flow requires input variables, the console will ask you to enter the appropriate values." how to make use default variables and not pop-up input variables dialog?

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    If you need to use default values, simply set them in your flow and not use input variables at all.

    -------------------------------------------------------------------------

    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.

     

  • lion Profile Picture
    100 on at

    I still need the variables in some scenarios. is it possible add some parameter in below script to make use default variables?

    "C:\Program Files (x86)\Power Automate Desktop\PAD.Console.Host.exe"

    ms-powerautomate:/console/flow/run?environmentid=xxxxx&workflowid=xxx&source=Shortcut

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Not as far as I know. If you don't want to hardcode them in PAD, put them in a text file and make the flow read the file.

    -------------------------------------------------------------------------

    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.

     

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