I am building condition where if my SQL Query Results are blank then I want it to post a Message to Microsoft teams. If the query is not null then it will create a few files to be dropped to an FTP and a Sharepoint site. When the Query Is empty I need a message posted to Microsoft Teams. When I input a query that produces blank results. I get a failure in the flow. Can anyone shed some light on how I can best do this
Solved! Go to Solution.
Hi @Anonymous,
Could you provide detailed configuration of your Table?
I noticed that although you are input a query that produces blank results, the output of Query Results still contains Values, so the result of Condition is True.
But because there is no matching value to create CSV table, it leads to such an error.
I think that in your Condition, you may have to specify which fields have no query results, so that it could be more accurate.
Please try to specify the judgment in the Condition to the column level. For example, if the column xxx query results are empty, the result will be False.
Best Regards,
Barry
Hi @Anonymous,
Could you provide detailed configuration of your Table?
I noticed that although you are input a query that produces blank results, the output of Query Results still contains Values, so the result of Condition is True.
But because there is no matching value to create CSV table, it leads to such an error.
I think that in your Condition, you may have to specify which fields have no query results, so that it could be more accurate.
Please try to specify the judgment in the Condition to the column level. For example, if the column xxx query results are empty, the result will be False.
Best Regards,
Barry
Hey, @Anonymous!
Thank you for posting on the Flow Community Forum! It appears as though @v-bacao-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!
Thank you for being an active member of the Flow Community!
-Gabriel
Flow Community Manager
Can you explain how to "specify the judgment in the Condition to the column level. For example, if the column xxx query results are empty, the result will be False."
I have a query that produces no results like this example, but I can't figure out how to check whether the column "title" is empty. There is no option in the condition to check whether a column of the result set is empty. I am only given the option to use as an input to the condition "ResultSets" or "Query Results".
User | Count |
---|---|
22 | |
15 | |
14 | |
10 | |
9 |
User | Count |
---|---|
43 | |
28 | |
25 | |
24 | |
23 |