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 Apps / Power Apps Flows remov...
Power Apps
Unanswered

Power Apps Flows remove empty array item from collection coming at end

(1) ShareShare
ReportReport
Posted on by 10

Hi, ,

 

I have a flow in which i read data from excel sheet  split  item rows and creates an array containing row items from (excel sheet). Will insert this array iterativley in sql table  further. 

 

Issue is parsed array contains an empty row item at the end each time... Suppose I have 6 items rows in excel sheet , parsed splitted array contains those 6 items plus an empty row at the end.

 

Actual Excel Items:

 Actual excel Items.png

 

Parsed Flow row items in array: 

Parsed Array.png

 

Any idea how to the empty item from the parsed array  .. 

 

Regards

 

 

 
Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @atif1455 

     

    Try this kind of Flow to Filter out blanks by using a Filter Array to filter on expression:

     

    empty(item()) is equal to false

     

    FilterOutBlanksDefinitionFlow.png

    When I tested this it works well.

     

    FilterOutBlanksWorksWell.png

     

    See if above helps.

  • nich3play3r Profile Picture
    249 on at

    In case anyone else comes across this post like I did, this code can be extended to refer to a particular column in an array:

    @equals(empty(item()?['Email']), false)

     

    In my case, I have valid values for all rows in columns 1 and 2 of my array, but column 3 (Email, above) has some empty row values, which I want to drop from execution.

  • markota89 Profile Picture
    3 on at

    Just an update from 2024 - this is still working perfectly! Thanks, I was struggling with that for too long 🙂

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard