cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sajith
Helper III
Helper III

Apply To Each - Getting error

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

1 ACCEPTED SOLUTION

Accepted Solutions
ccc333ab
Solution Sage
Solution Sage

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

 

View solution in original post

1 REPLY 1
ccc333ab
Solution Sage
Solution Sage

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

 

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,000)