Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Process Mining
Unanswered

Power Automate Network sync during Excel Office Script While Loop

(0) ShareShare
ReportReport
Posted on by 2

A script containing a while loop apears to have different functionality when ran through power automate. The code enters random numbers into a cell to refresh a random sampler function. The while loop will continue to edit the cells until the shuffler meets the conditions required to be true. I entered console.log() methods in the code to verify the condition is being met and it appears to be working. However, the output result does not meet conditions and the excel workbook only seem to update once.

 

The code run as expected in excel but when running the script through power automate there seems to be a syncing issue between the script and the data. Any ideas on how to fix this?

 

Categories:
  • Jus10 Profile Picture
    2 on at
    Re: Power Automate Network sync during Excel Office Script While Loop

    Hi, I updated my question after looking into it a little more and provided a screenshot.  Your help would be greatly appreciated! https://powerusers.microsoft.com/t5/Process-Advisor/Office-Script-Errors-With-Function-That-Has-While-Loop-and/m-p/2019936 

  • GeoffRen Profile Picture
    Microsoft Employee on at
    Re: Power Automate Network sync during Excel Office Script While Loop

    Can you post your script and an example of a workbook with the formulas that you're using so that we have a better idea of your scenario and are able to reproduce the issues ourselves?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Process Mining

Overall leaderboard