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 / Repeat previous step u...
Power Automate
Unanswered

Repeat previous step using do until

(0) ShareShare
ReportReport
Posted on by 8

Hello,

I'm trying to get a flow to insert a row into a table, but it won't do it if the spreadsheet was recently opened. What I want to do is for the flow to attempt to insert the row but if the spreadsheet is locked, wait a few minutes and then try again. I've tried to use the Do Until to make this work but I haven't been able to get the syntax right.

Here is a graphic representation of what I'm trying to do:

https://preview.ibb.co/mJO1fH/Flowrepeat.png

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    on at

    Hi @ jasa88,

     

    Do you want to create a flow to insert a row in the excel, and if the excel is locked, the flow would wait for a few minutes and would insert the row to the excel again until the row is inserted in the excel.

     

    I have made a test on my side, and try to use "Do until" to realize your needs, but I couldn't manage to realize your needs currently, I would try again in the later, if I could accomplish your needs in the flow, I would reply here.

     

     

     

    Regards,
    Alice Zhang

  • jasa88 Profile Picture
    8 on at

    Hi Alice,

    Yes that's exactly what I'm trying to do. I tried to use a do until and set the condition to be when row_id is equal to row_id (in other words, once the row has been inserted into the spreadsheet and is assigned a row_id), insert the row, but if it fails, wait 5 minutes and loop again. The problem is that it keeps saying that the flow was successful after waiting 5 minutes and it doesn't loop around.

  • Dub66 Profile Picture
    7 on at

    Did you ever solve this? 

  • jasa88 Profile Picture
    8 on at
    Still no solution I’m afraid.
  • Dub66 Profile Picture
    7 on at

    Hi Jasa, I gave up on writing to Excel and switched to storing in sharepoint list instead.

     

    I did find a great post that helped me with "Do Until"  https://powerusers.microsoft.com/t5/Building-Flows/do-until/td-p/95974

    Clearing the count made my Do Until work for me. 

      

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