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 / Condition of Flow failing
Power Automate
Unanswered

Condition of Flow failing

(0) ShareShare
ReportReport
Posted on by 3

I am attempting to move data from one SharePoint List to another SharePoint List and the condition piece keeps of the flow is failing and giving me this error:

 

Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'length' expects one parameter: an array or a string the length of which is returned. The function was invoked with '2' parameters. Please see https://aka.ms/logicexpressions#length for usage details.'.

 

Below is a snippet of the condition.  It may be the length(body('Get_items')?['value'],0) that I have on the left side as an expression.

T_LYNCH_0-1679416855989.png

 

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @T_LYNCH ,

    There is no need for 0 inside your formula. The length function requires only one parameters. 

    length(body('Get_items')?['value'])

    As I figure it out, you want to check if the action Get Items returned some info in 'value' parameters. For that you can use also:

    empty(body('Get_items')?['value']) equals true

     

    Hope it helps !

  • T_LYNCH Profile Picture
    3 on at

    @gabibalaban I am now getting a different error.  I think I've tested so many different methods and already have data in the list.  I will try again in the morning and let you know if that works.  Good news is that I got farther than ever before.  Thank you so much for your help!

     

    T_LYNCH_0-1679442751709.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard