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

Community site session details

Session Id : 4QpIdgPF3beDpcyUiaTYz2
Power Automate - General Discussion
Suggested answer

'The template language function 'length' expects its parameter to be an array or a string.

Like (0) ShareShare
ReportReport
Posted on 19 Feb 2025 14:50:29 by
Unable to process template language expressions for action 'Condition' 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 'Null'. Please see https://aka.ms/logicexpressions#length for usage details.'.
 
// greater(length(coalesce(outputs('Get_emails_(V3)')?['body/attachments'], array())), 0) is equal to true//

// length(outputs('Get_emails_(V3)')?['body/attachments']) is geater than 0 //
 
I have traied above formula iam not getting it throws error.
 
 
  • Suggested answer
    David_MA Profile Picture
    11,833 Super User 2025 Season 2 on 19 Feb 2025 at 21:18:37
    'The template language function 'length' expects its parameter to be an array or a string.
    Based on your post, it appears that you are trying to determine if the e-mail contains attachments. If so, change you condition to the value Has Attachments from the trigger is equal to true.
     
    If this is not what you are trying to do, please explain your goal.
     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete