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 - Gettin...
Power Automate
Answered

Apply To Each - Getting error

(0) ShareShare
ReportReport
Posted on by 182

Apply To Each -Getting the following error

 

Unable to process template language expressions for action 'Condition' at line '1' and column '11057': 'The template language function 'lessOrEquals' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'.

 

Apply to each -1.png

 

I tried another compose - int(outputs('Compose')). Then the error is not coming. But the condition never comes true.

 

 

 

 

Apply to each -2.png

Categories:
  • Verified answer
    ccc333ab Profile Picture
    1,144 on at

    You would need to convert duration to an integer (like you tried) but not sure how you tried to do that. See below: 

    ccc333ab_0-1623940247161.png

    ccc333ab_1-1623940293605.png

    (Make sure you create the expression as an expression, not in the dynamic content box). 

     

    The output works as expected. 

    Duration of 11: 

    ccc333ab_2-1623940388284.png

     

    Duration of 1: 

    ccc333ab_3-1623940420620.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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard