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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

mul() finction

(0) ShareShare
ReportReport
Posted on by 8

Hi world,

 

When i use mul(int(outputs('compose')),'xx') it works but when i try to use mul(int(outputs('compose')),int(outputs('compose2'))) i am getting this error.

Error:

InvalidTemplate. Unable to process template language expressions in action 'Compose' inputs at line '1' and column '16988': 'The template language function 'mul' expects its first parameter to be an integer or a decimal number. The provided value is of type 'String'. Please see https://aka.ms/logicexpressions#mul for usage details.'.

 

Can some help me with this issue and explain it to me?

 

 

 

 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey Mate @it_dude 

     

    You should not get an error. I did a quick test and my flow succeeded.

     

    CFernandes_0-1610963331063.png

     

    Expression used. 

     

    mul(int(outputs('Compose')),int(outputs('Compose_2')))
     
    Can you give the above a try.
     
     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • it_dude Profile Picture
    8 on at

    Thanks for your fast response @CFernandes 

    This is my flow.

     

     

    pic2.PNG

     

     

    CurrencyUSD:

    mul(int(outputs('priceusd')),8.47)
    Compose:
    Get`s a number from a sharepoint list.
    Compose:
    mul(int(outputs( 'CurrencyUSD' )),int(outputs( 'compose22' )))
     

     

    pic1.PNG

     

     

    Error:

    InvalidTemplate. Unable to process template language expressions in action 'Compose' inputs at line '1' and column '16987': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'.

  • Verified answer
    CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hello @it_dude ,

     

    Can you try float().

     

    mul(float(outputs('Compose_2')),8.4)
  • it_dude Profile Picture
    8 on at

    Change "int" with "float" did the work. Thanks @CFernandes  !!!

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @it_dude 

     

    Wohoo. I am glad that the problem has been resolved. 

  • DzakyS Profile Picture
    17 on at
    mul(int(outputs('Compose')),int(outputs('Compose_2')))
     
    for this, what i must change for ( float ) where i can replace (float ) on my expresiion ?
     
    thanks for your help

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard