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 / Apply to each Compose ...
Power Automate
Unanswered

Apply to each Compose single output creates array and condition fails

(0) ShareShare
ReportReport
Posted on by 2

I am building an Auto Increment Flow for a list, using a second list to draw the number from.  This was following the instructions here

 

https://techcommunity.microsoft.com/t5/sharepoint/auto-increment-number-field-in-a-sharepoint-list/m-p/1141477

 

The flow looks correct but builds a Apply to each when the compose element is added.  The compose takes the input and outputs the same, but treats the output as an array.

 

Can you assist in a solution to keep this a string.

 

Mehodge_0-1623763135894.png

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,383 Most Valuable Professional on at

    If you re-read the post carefully you will see that the Apply to Each is expected.  The error you are getting is because you are comparing a string to an integer.  It looks like the integer is coming from the SharePoint list.  Make sure that both the value coming from the list and what you are comparing it to are the same type.

  • Mehodge Profile Picture
    2 on at

    Thank you for your quick response PStork1.  I attempted to change the list item to a string but this removed the dynamic content.  I have since recreated the flow.  I get a different error starting the function 'less' expects all of its parameters to be either integer or decimal numbers.  Found invalid array.

     

    Is it i am using incorrect field types? Or the wrong Power Automate features?

     

    As far as i can see the Apply to each is creating the array from 

    Mehodge_0-1623765891268.png

    Mehodge_1-1623765922800.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
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard