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 / Deleting all but an ex...
Power Automate
Unanswered

Deleting all but an example row from excel spreadsheet

(0) ShareShare
ReportReport
Posted on by 4

Hi all

 

I'm relatively new and have looked through numerous threads but cannot seem to solve my problem. I have a flow to take a copy of an excel spreadsheet saved into sharepoint, and then after that I want to delete all the rows except an example row at the top. I have been able to delete all the rows (including the example row) but cannot seem to find a way to keep that example row. 

 

I've outlined my most recent attempt below but happy for any other solution that works. 

 

This is my most recent attempt using this Solved: How to delete rows in a table column with blank ce... - Power Platform Community (microsoft.com)

I created a new column called 'Automation' in the table and entered some text in the example row but not in any other row, however I get this error - WorkflowOperationParametersRuntimeMissingValue

The 'inputs.parameters' of workflow operation 'Delete_a_row' of type 'OpenApiConnection' is not valid. Error details: The resolved string values for the following parameters are invalid, they may not be null or empty: 'id'"

 

AJA21_0-1718939256530.png

 

Details

AJA21_1-1718939401008.png

AJA21_4-1718940071119.png

 

formulas are: empty('Automation') is equal to 

bool('false')

true = automation column 'not empty' false = automation column empty

If true - no action

If false- delete a row

 

 

AJA21_3-1718939535668.png

 

I'm happy to try something completely different, I've tried "length" at "0", I've tried conditions for "contains" very specific text from the example row, but I keep getting errors like the above. 

 

Any help or even entirely new flow welcome.

 

Thanks in advance!!

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

    Hi @AJA21 ,

    Please check this test:

    Excel Table:

    vyetonggumsft_2-1718944085840.png

    Flow Run History:

    vyetonggumsft_0-1718943834664.png

    Flow Configuration:

    vyetonggumsft_1-1718944023810.png

    empty(items('Apply_to_each')?['Column1'])
    empty(items('Apply_to_each')?['Column2'])
    true

    The Result:

    vyetonggumsft_3-1718944117197.png

    Best Regards,

    Sunshine Gu

     

  • AJA21 Profile Picture
    4 on at

    Hi Sunshine Gu

     

    I tried this but got "ActionBranchingConditionNotSatisfied

    The execution of template action 'Delete_a_row' skipped: the branching condition for this action is not satisfied."
     
    A couple of questions I didn't add a second condition eg Column 1 and Column 2 as I only have one reference column, is this somehow important to the functionality? Also i could not create a fx for 'true' only bool('true') so I used that and then also tried just the word true, both gave me the same error above. 
     
    Thanks
    AJA
  • AJA21 Profile Picture
    4 on at

    Some screen shots in case this helps work out where I went wrong...

     

    AJA21_0-1718947398182.png

    AJA21_1-1718947442112.png

    Formula: 

    empty(items('Apply_to_each')?['Automation'])
     
    AJA21_2-1718947560599.png

     

     

     

  • NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @AJA21 !

     

    @v-yetonggu-msft mentioned to use the expression 'true' which you can get under 'Expression'. Select that and see if that works.

    NathanAlvares24_0-1718963776493.png

     

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard