Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Excel Online (Business) - Delete a Row from Excel Table if Value in Column is blank

Like (0) ShareShare
ReportReport
Posted on 15 Jan 2020 17:32:44 by 22

Hello,

 

I am trying to look at a named Excel table in a file on Sharepoint and delete all of the rows where the first column is blank.  I am using the following actions:  List rows present in a table; Filter Array; Apply to each and delete a row.  I am not sure how to get this sequence of actions to find all the rows where "Account" column is blank and delete that row from the Excel table.  I think I am not understanding what Key Column and Key Value mean?  This is what I have, and right now it is deleting no rows.  Thank you!

 

flow actions - filter array and delete a row.png

 

 

  • Verified answer
    v-bacao-msft Profile Picture
    on 20 Jan 2020 at 09:34:41
    Re: Excel Online (Business) - Delete a Row from Excel Table if Value in Column is blank

     

    Hi @Stalerik ,

     

    Sorry I didn't notice "Use an output from the SharePoint connector's triggers / actions (file's Id or Identifier property depending on which one is present for the particular Sharepoint's action or trigger).". thanks for your reminder.

     

    From the error you provided, this seems to be the expected result. If Account is selected as the key column, it needs to be a non-null field.

     

    Null cannot be used as a field value to delete the specified rows.

     

    You can add a new field, set the value to true/false, if Account is empty, then set the field value to false, and finally use this field as the key column to delete rows.

     

    Best Regards,

  • Stalerik Profile Picture
    22 on 16 Jan 2020 at 18:56:40
    Re: Excel Online (Business) - Delete a Row from Excel Table if Value in Column is blank

    @v-bacao-msft 

     

    I have also looked at the "known issues and limitations" and I see the following information:

     

    The File property expected by the connector's actions should be filled using one of the following options:

    • Pick a file from the file picker.
    • Use an output from the OneDrive for Business connector's triggers/actions (file's Id or File identifier property depending on which one is present for the particular OneDrive for Business's action or trigger).
    • Use an output from the SharePoint connector's triggers/actions (file's Id or Identifier property depending on which one is present for the particular Sharepoint's action or trigger).

    So it sounds like I can do more than "only select File from File browse".  I am using the SharePoint file ID as the filename so I assume that it should work based on the information above?  Can you please clarify your response if I am misunderstanding?  Thank you.

  • Stalerik Profile Picture
    22 on 16 Jan 2020 at 18:26:34
    Re: Excel Online (Business) - Delete a Row from Excel Table if Value in Column is blank

    @v-bacao-msft 

     

    The delete a row action seems to work correctly when using not(empty(item()>['Account'])) is equal to 'true' as it deletes all of the non-blank rows from the Excel table.  However it does not work when using not(empty(item()>['Account'])) is not equal to 'true' to delete all of the blank rows.  Can you please explain why this is different?  The dynamic references are the same for these two conditions.  Thank you.

  • v-bacao-msft Profile Picture
    on 16 Jan 2020 at 05:28:41
    Re: Excel Online (Business) - Delete a Row from Excel Table if Value in Column is blank

     

    Hi @Stalerik ,

     

    Flow currently does not support using Dynamic content / expression / manual input to configure File and Table fields. We can only select File from File browse and select a table from the drop-down list.

     

    The configuration in your screenshot is not supported, please check this link and get more details about known-issues-and-limitations:

    https://docs.microsoft.com/en-us/connectors/excelonlinebusiness/#known-issues-and-limitations

     

    Best Regards,

  • Stalerik Profile Picture
    22 on 15 Jan 2020 at 23:53:33
    Re: Excel Online (Business) - Delete a Row from Excel Table if Value in Column is blank

    @fchopo 

     

    Thank you for your reply.  I have reviewed the thread.  I've found it confusing since there are so many messages in it but I have made a little more progress.  The Filter Array appears to be working correctly.

     

    As configured in the attached image, I was able to see the output of the filter array to be correct.  I am using not(empty(item()>['Account'])) as the value in the left field -- to find if the value is not empty (= true).  When I use the condition "is equal to", the flow will create a Filter Array of only the non-blank rows in my table, and then move on to delete all of the non-blank rows, leaving only the blank rows.

     

    However assuming that I want the blank rows removed instead, I change the condition to "is not equal to" and then the Filter Array find all the blank rows, but the delete rows gives an Status Code 404 error with a Message of "Resource Not Found".  Do you know why this is happening and how to delete the rows where "Account" is blank?flow actions - delete a row from filter array.png

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on 15 Jan 2020 at 17:53:33
    Re: Excel Online (Business) - Delete a Row from Excel Table if Value in Column is blank

    Hi @Stalerik 

     

    Have a look at this thread with a similar issue: https://powerusers.microsoft.com/t5/Building-Flows/Delete-Rows-w-Excel-Business-connector/td-p/200928

    Apart from that, I would check if the Account field is empty using null expression

    Hope it helps.

    Ferran

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 97

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 82 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard