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 / CSV Export remove blanks
Power Automate
Answered

CSV Export remove blanks

(0) ShareShare
ReportReport
Posted on by

Howdy everyone! I have browsed around here to find a solution and I have found a few that kind of do what I need but they're not exactly working for me.

 

My intent is to take a table from an excel file and export it as a CSV so that the data can be imported into our ERP system. However when I try to import the file it errors out because there are blank values in the exported CSV. This flow works great until it gets to the filter connection of the flow.

 

My hope was to add a filter to my current CSV export Flow to prevent any blanks from being added to the CSV but it keeps timing out. This is what I currently have:

gcwilliams07_0-1608841884256.png

Any help that yall could provide would be amazing, thanks!

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

    Hi @Anonymous :

    Do you want to filter out items whose value in a certain field is empty?

    If so,just need to add a condition to the condition:

    1.JPG

    Fill in the field you want to filter in the blue circle I marked.

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    on at

    Thanks Bof for your suggestion, I tried that but get an 'get_file_content' failed error (see below):

    gcwilliams07_1-1608933857178.png

     

  • Verified answer
    tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @Anonymous ,

    I think you could filter the empty rows already in the 'List rows present in a table' action by adding a 'Filter Query' to filter only rows where some column is not empty (column is not equal to ''). That will give you only the not-empty rows and you can store all of them in the .csv file.

    Column ne ''

     image.png

    To your current solution, the flow you currently have will not behave as you expect (I suppose). You're using 'Apply to each' on each of the rows, and then based on condition you create a .csv file. That means that if you have e.g. 20 rows in the table, the flow would do all the actions inside 'Apply to each' 20 times, and create a .csv file each time a row is not empty, e.g. with 20 rows, 2 of them are empty, the flow would create 18 .csv files (and I'm not sure if you even filter the empty rows from the result when creating the .csv). 

  • Community Power Platform Member Profile Picture
    on at

    thank you! i was unaware of the filter on the "list tables" connector and after googling the documentation on it, I was able to get to successfully work! 

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard