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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Network...
Power Automate
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:
I have the same question (0)
  • GeoffRen Profile Picture
    Microsoft Employee on at

    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?

  • Jus10 Profile Picture
    2 on at

    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 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard