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 / Remove Empty rows from...
Power Automate
Unanswered

Remove Empty rows from Data Table in PAD

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I would like to remove the empty rows from the Data table in PAD.

 

Could you please help me how can I achieve this?

 

Thank you.

I have the same question (0)
  • opit Profile Picture
    162 on at

    @faheemsd55 

    Here is my data table:

    opit_0-1705259469479.png

     

    Here is code:

    opit_1-1705259489595.png

     

    And here is good video:

    https://www.youtube.com/watch?v=kO5frAXcJeI 

     

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @faheemsd55 

     

    Another approach using Linq query to filter out empty rows 🙂

     

    See below

     

    Assume i have a datatable like below

    Nived_Nambiar_0-1705333604550.png

     

    Now use Run .Net script action to run .net script which runs linq query 

     

    Nived_Nambiar_0-1705333708884.png

     

    1. Select language as vb.net

    2. in reference, select the folder which has required dll packages

    Refer this article to get an idea on how to specify references: https://www.linkedin.com/pulse/how-run-net-script-action-empowers-data-table-power-automate-bysani/

     

    3. in parameters section, try this as shown below

    Nived_Nambiar_1-1705333810646.png

     

    4. In script section , write below script:

    dt2= dt1.AsEnumerable().Where(Function(row) Not String.Join("",row.ItemArray()).Equals("")).CopyToDataTable()

     

    Output result would be :

    Nived_Nambiar_2-1705333870246.png

     

     

    Hope it helps !

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 241 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 179

#3
Haque Profile Picture

Haque 159

Last 30 days Overall leaderboard