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 / Copilot Studio / PVA Flow to detect emp...
Copilot Studio
Answered

PVA Flow to detect empty cell in excel is evaluating false

(0) ShareShare
ReportReport
Posted on by 189

I have an inventory flow that is initiated by my PVA Chatbot and returns values to the PVA Chatbot to check for inventory where there is currently no value in a specified column. The issue I'm having is that both ways I've tried to have the flow evaluate cell data has failed. I've tried to check condition of column "Contract_Num" is equal to "null" but condition evaluates to false for all 19 entries even though 2 of them should be returning true. I've also tried to check condition where column "Contract_Num" is equal to the expression "empty(items('Apply_to_each')?['ExcelField'])" but again all instances evaluate to false when 2 should be evaluating to true. Is there an explanation to this? Is there another way to achieve this that I haven't discovered? Please see screenshots for additional info.

Spreadsheet being referencedSpreadsheet being referenceddebug2.PNGdebug3.PNGdebug4.PNGdebug5.PNGdebug6.PNG

I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,711 Most Valuable Professional on at

    Instead of using a condition try using a filter array on the output of the list rows where that column is equal to null, or you may have to check against and empty string.  The length() of the filtered output is the number of rows with null values in that field.  The resulting array will be the rows with empty cells.

  • kgreen8790 Profile Picture
    189 on at

    Your solution is valid. I did end up achieving it by simply checking the condition against "contains" "string(0)" and this worked as well. Thank you for your swift response.

  • Pstork1 Profile Picture
    68,711 Most Valuable Professional on at

    There is an advantage to using filter array, because then you don't have to compare the value on every row. You can get a subset of rows that meet your condition without doing extra actions.

  • kgreen8790 Profile Picture
    189 on at

    Yes, that does seem to speed things up on the flow. I noticed when I append it to my string variable that gets returned to PVA it includes a lot of curly braces and square brackets that I don’t get when I do it using the other method. Any idea why it’s displaying these using filter array?

  • Verified answer
    Pstork1 Profile Picture
    68,711 Most Valuable Professional on at

    The output is still an array that needs to be processed to turn it into a formatted string for return.  The point is that its a smaller array that needs to be processed than the one you are processing now.  So it should still be a bit faster.

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 > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 251 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 201 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard