cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alan-Hossack
New Member

Remove duplicates in Excel Table or Delete all rows in Excel table.

Hi,

 

I have a flow set up to combine the data from tables in 6 separate excel workbooks into one 'master' table in another workbook.

 

I have no issues getting the data in or adding it to the table, but I need to do one of the following to the 'master' table:

 

  1. Remove all rows/data from table (at the start of Flow); or
  2. Remove all duplicates from table (at the end of Flow)

Has anyone done something similar or have some pointers on what & how I could accomplish this?

 

Thanks!

 

- Alan

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @Alan-Hossack ,

 

Remove all rows/data from table at the start of Flow could be easily achieved using the following configuration.

 

Please check the image for a reference.

 

Note: If you have more than 256 rows, you need to set Top Count to its maximum value.

1.PNG

 

 

Best regards,

Mabel          

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yamao-msft
Community Support
Community Support

Hi @Alan-Hossack ,

 

Remove all rows/data from table at the start of Flow could be easily achieved using the following configuration.

 

Please check the image for a reference.

 

Note: If you have more than 256 rows, you need to set Top Count to its maximum value.

1.PNG

 

 

Best regards,

Mabel          

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi

 

this doesnt work for me, i still get an error cannot find id

 

 


@v-yamao-msft wrote:

Hi @Alan-Hossack ,

 

Remove all rows/data from table at the start of Flow could be easily achieved using the following configuration.

 

Please check the image for a reference.

 

Note: If you have more than 256 rows, you need to set Top Count to its maximum value.

1.PNG

 

 

Best regards,

Mabel          

 



Capture.JPG

 

 

One problem Iran into was that the Flow would error if the table had a filter applied to it. Clearing the filter fixed the issue though.

Anonymous
Not applicable

thanks for that, i checked and it was so i cleared the filters but i am still getting the same message:

 

 
"statusCode": 404,
"message": "Resource not found"
 

I found this to be SUPER confusing, but here is the pain I went through, hopefully it will help someone else.  I noticed in the "Apply to Each" step, there is a field where you select the output from the previous operation.  There are 2 options (I have no idea why):  List of Items (List of Items), and value (List of Items).  When I pick the first one, it fails with the error:  The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@body('List_rows_present_in_a_table')' is of type 'Object'. The result must be a valid array.

 

However, when I pick value (List of Items), it works.  OK Microsoft, why do you put something in there that doesn't work?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,184)