Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Building a flow using an expression for date and getting this error

(1) ShareShare
ReportReport
Posted on by 2

Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template function 'lengthbody' is not defined or not valid.'.

 

PowerWork13_0-1694138255691.png

The flow saves without errors and Flow checker has no errors, but when I run the test I get the error as pasted above. The expression I'm using is lengthbody('Select_-_7_Days_Collect_Values')

Relatively new to Power Automate so bear with me 🙂 any pointers greatly appreciated.

  • trice602 Profile Picture
    13,817 Super User 2025 Season 1 on at
    Re: Building a flow using an expression for date and getting this error

    Also note:  I am not typing in anything other than length() -- the format including body is included with the dynamic content.

     

     

  • trice602 Profile Picture
    13,817 Super User 2025 Season 1 on at
    Re: Building a flow using an expression for date and getting this error

    Hi @PowerWork13 ,

     

    This is from a different example I was using but through a conditional action in here to show you the expression for length()

     

    trice602_0-1694139385761.png

     

     

    So here, I am entering an expression length() and then selecting my dynamic content inside the brackets and it looks like this:

     

    trice602_1-1694139476381.png

     

    Then saving.  Please try. Save. Resubmit your last test run and let me know.

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1