Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

error stopping flow when html table is blank

i want to stop my flow if the HTML table is blank.


i'm currently checking the length of the table and if thats 0 then it should stop, however it's not stopping. 

when i test it clearly shows the variable for length = 0 but the condition test length is not equal to 0 is still passing as true and it's proceeding.  i have tried using string and integer. both times the same. very odd. 


any ideas how i can stop the flow if the HTML table is effective empty?




Frequent Visitor

Re: error stopping flow when html table is blank

Hi Stephen,


I solved this in one of my flows using the following condition:empty html.PNG

I added the condition before creating the HTML Table. In my case is an output of select, then check with: "@empty(body('Select_2'))", if YES then stops, if Not, I continue creating the HTML Table.


Hope this helps you.






Community Support
Community Support

Re: error stopping flow when html table is blank

Hi @StephenM,


I did a test on my side and found that both length() and empty() functions are available.

This is my test, Filter Query is set in Get items, so no item can be obtained here.

Configure the output of Get items in Select, then configure it in the Create Html table, and use length() and empty() functions to observe the results:


Here's the result of the run, including using the length() and empty() functions, as below:


Please take a try.


Best Regards,


Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advocate IV
Advocate IV

Re: error stopping flow when html table is blank

Great Idea with length 🙂 @v-bacao-msft 

Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,357)