cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kmk
Helper V
Helper V

how to check Execute a SQL query connector output is empty or not.. ? since it returns always false

Hi Mates,

how to check is empty in not from connector "Execute SQL query" output...?

In Shortly: i am querying to get a value is exist or not, query is below.

SELECT ID FROM tblDataMurali WHERE (ID ='123456')

In-Fact that is is not exist in Table. Connector(Execute a SQL Query) executing fine, but now i want to perform few action in SQL table based on Condition, for this i am just checking QueryResult is Equal to empty('') 

flowempty.PNGflowshow.PNG

 

Every time it executes false, instead of true

Since value not exists then condition has to true, but it goes with false how come ..? how to check here ..? any help please

 

1 ACCEPTED SOLUTION

Accepted Solutions
rsaikrishna
Community Champion
Community Champion

@kmk 

 

What does the compose action shows when you run the flow?

 

In the condition, you should check for:

 

"Output of Compose" is equals to "true"  -  This will return true.

 

Give a try and update this post.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

 

 

View solution in original post

4 REPLIES 4
rsaikrishna
Community Champion
Community Champion

@kmk 

 

Your question was answered in the following posts:

https://powerusers.microsoft.com/t5/General-Power-Automate/Execute-a-SQL-Query-and-Catch-a-Empty-Ret...

https://powerusers.microsoft.com/t5/General-Power-Automate/Add-Condition-Null-SQL-Query-Results/td-p...

 

Please review and post any questions.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

Hi @rsaikrishna 

As per below i tried to with compose,

In-Fact SQL command returns blanks , this is fine as expected, but after i am just checking with condition result set if blank then true or false, but here it goes false condition always.

how to check here empty or not ..? please see the screen shots.

now2.PNGnow1.PNG

I am check with any thing wrong in Condition ..?

rsaikrishna
Community Champion
Community Champion

@kmk 

 

What does the compose action shows when you run the flow?

 

In the condition, you should check for:

 

"Output of Compose" is equals to "true"  -  This will return true.

 

Give a try and update this post.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

 

 

Hi krishna,

 

Thank you some how i can check now with your solution. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,869)