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 / How to judge whether t...
Power Automate
Answered

How to judge whether the variable named datatablematches is empty

(0) ShareShare
ReportReport
Posted on by 4

The PAD flow and running results are shown in the picture. There is no data   matched ExcelData1 in table, so the table named DataTableMathcer2 is empty. I set a series of variables to check whether the table 'DataTableMathcer2' is empty. But they don't work.

 

Ask for your help, thanks a lot!

PAD flow and resultsPAD flow and results

 

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Use a conditional action like an If like this:

    Agnius_0-1703218776160.png

     

    You can either check if %DataTableMatches.IsEmpty% equals to %True% or if %DataTableMatches.RowsCount% equals to 0. Both will indicate the table is empty.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • UshaJyothiKasibhotla Profile Picture
    225 Moderator on at

    Use if condition

    then give first operand as datatable variable

    and second operand as %""%

    As shown below

    UshaJyothi20_0-1703219100887.png

    Hope this helps,

    Usha.

  • tigerhuzi Profile Picture
    2 on at

    Thank for your reply, but they both don't work. Which %DataTableMatches.RowsCount% equals to 0 means NewVar4, and DataTableMatches.IsEmpty% equals to %True% means NewVar5.

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    You should not use Set variable for your conditions. Use an action called If to do a conditional statement. When you do that, you can then make your flow take appropriate action inside the conditional statement when the condition is true.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 282 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 149 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard