Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Flow Condition Error Invalid Template

I am getting an error on a condition, and I dont understand it.

Please help me. First image the error and second image how I have it in the flow.


Flow Compose.PNGFlow Condition.PNG

Community Support Team
Community Support Team

Re: Flow Condition Error Invalid Template

Hi CLetona,


I have seen your similar issue on another thread.


The thread link is:


In the similar thread, I suggested you submit an idea about using function to count how many items have got from the “get items” action.


I assume that you want to check if a column is empty or not, if yes, you could consider to use empty function. About empty function, please check it at here.



Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Level: Powered On

Re: Flow Condition Error Invalid Template

No, I am not checking if the column is empty, I am trying to get a count some how.

I guess I am mixing the Power Apps functions and MS Flow functions. If MS Flow only uses  what it is in then we are in trouble. Very limited..



Super User
Super User

Re: Flow Condition Error Invalid Template

In "Compose" action for functions you need to start and finish with "

Copy this and put in your compose: "@Value(CountIf(body('Get items'),['DiscountIssued'] <1))"





Gustavo Moraes


Did I answer your question? Mark my post as a solution!

Gustavo Moraes, o astronauta brasileiro do Flow!

Helpful resources


New Ranks and Rank Icons in April

Read the announcement for more information!


Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Kudoed Authors
Users online (8,825)