web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Building a flow using ...
Power Automate
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.

Categories:
  • trice602 Profile Picture
    16,679 Super User 2026 Season 2 on at

    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.

     

     

  • trice602 Profile Picture
    16,679 Super User 2026 Season 2 on at

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

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard