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 / Flow Failing at Step 16
Power Automate
Answered

Flow Failing at Step 16

(0) ShareShare
ReportReport
Posted on by 14
I attached the steps in my flow. Im getting this on the 16th step of my flow before the 17th step which is supposed to send the email. The flow is comparing two sharepoint sites and getting items to send an email to my supervisor of those who have not logged an entry into a weekly workload tracker and then its comparing against a master list. InvalidTemplate. Unable to process template language expressions for action 'Condition_AnyMissing' at line '0' and column '0': 'The template language function 'length' expects its parameter to be an array or a string. The provided value is of type 'Object'. Please see https://aka.ms/logicexpressions#length for usage details.'. 
Steps 10-16.png
Steps 1-9.png
I have the same question (0)
  • Suggested answer
    eetuRobo Profile Picture
    4,565 Super User 2026 Season 1 on at
    As it says in the error the "Condition AnyMissing" is trying to use length() -expression on an object (and length can be only used on an array or string).
    So in this example if that compose returns an object it will give same error. So make sure its not an object but an array. 


    If you can show the output of the object so we can figure out what you need to reference to check the length.
  • DM-24021454-0 Profile Picture
    14 on at
    Thank you so much for your help for the output I am trying to get name and email of those that have not logged a response to my tracker in the last 7 days. I am new to this and trying to figure this out so I appreciate your patience. Hope I grabbed what you needed.
    Output.png
    Output 2.png
  • DM-24021454-0 Profile Picture
    14 on at
    Here is the expression I have there..... 
    length(outputs('Filter_MissingEmails'))
  • Suggested answer
    eetuRobo Profile Picture
    4,565 Super User 2026 Season 1 on at
    So your expression: length(outputs('Filter_MissingEmails'))
    And your error is saying that you are trying to use length() -expression on an object.

    Your screenshots are not showing the "Filter_MissingEmails" -action which I assume is a compose action. So your "Filter_MissingEmails" most likely returns an object and not empty arrays like your screenshot shows your other actions returning.

    For example of an error:

    or empty object like this:


    Maybe your condition should actually check the length of the HTML_MissingEmployeesTable?  


    So change the length expression to be: length(body('HTML_MissingEmployeesTable'))
  • DM-24021454-0 Profile Picture
    14 on at
    I did change the expression to length(body('HTML_MissingEmployeesTable')) but still failed. I attached some more raw data and the steps in order I have so maybe that can help a bit. In the filter missing emails I am getting email addresses returned, so its not blank. The red is returned email addresses that I blocked out for privacy. Thanks for the help!
    Step 7-9.png
    Raw Data.png
    Step 16-17.png
  • Verified answer
    eetuRobo Profile Picture
    4,565 Super User 2026 Season 1 on at
    I did change the expression to length(body('HTML_MissingEmployeesTable')) but still failed. 
     But it failed further down in the next action



    Now the "Condition" actually succeeded to go forward. So the length() -expression did not give error like before. Now the "Send an email" -action is giving the same error. So you are using length expression in that action on an object value which will error since length() can only check the length of an array or string.

    So I assume that your "Email MissingEmployees" has the same  length(outputs('Filter_MissingEmails')) which gave you an error on the condition.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard