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

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard