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 / Issues with Deleting R...
Power Automate
Unanswered

Issues with Deleting Rows in Excel Table Before Repopulating in Power Automate

(0) ShareShare
ReportReport
Posted on by 6

I am building a flow where I need to refresh a spreadsheet daily and populate it with the latest data from the source (Planner, for context).

 

Here is the flow I have set up:

  1. List rows present in a table.
  2. Apply to each: Delete each row in the table.
  3. Once all rows are deleted, I populate the Excel sheet with new data.

 

However, the rows are not being deleted consistently. To handle this, I initialized a variable to check if the table is empty. If it's not empty, the flow continues to delete rows until it is.

 

Despite trying various conditions and configurations, the flow never works as expected. There was a time when it worked, but it has stopped functioning correctly for weeks now.

 

Here is the structure of my flow:

  1. Initialize a variable to check if the table is empty.
  2. List rows present in a table.
  3. Apply to each: [value from the table]
  4. Do until:

   - List rows present in a table.

   - Condition: If the body is null, set `IsTableEmpty` to true; otherwise, set it to false.

 

I would appreciate any insights or suggestions on how to ensure the rows are deleted before the flow proceeds to the next step. Thank you!

 

1.       Set A variable to check if Table is empty

 

MarceloBastos_0-1716299689573.png

 

2.       List row present in a table

MarceloBastos_1-1716299689576.png

 

3.       Apply to each [value from the table]

MarceloBastos_2-1716299689578.png

 

4.       Do until

MarceloBastos_3-1716299689580.png

 

1.       List rows present in a table

2.       Condition [if body is null, set IsTableEmpty to true otherwise, false]

MarceloBastos_4-1716299689582.png

 

MarceloBastos_5-1716299689584.png

 

MarceloBastos_6-1716299689585.png

 

MarceloBastos_7-1716299689589.png

 

 

Categories:
I have the same question (0)

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
Haque Profile Picture

Haque 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard