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 / int function not working
Power Automate
Answered

int function not working

(1) ShareShare
ReportReport
Posted on by 9

I am trying to change a value using numberformat to a percentage. I can confirm that the value being pulled from a table is a string as indicated by the double quotes:

 

mfritter_0-1692730534405.png

when trying to convert it gives the error "Unable to process template language expressions in action 'Compose_2' inputs at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'." I have tried this with a value entered through a form and a calculated value from the excel sheet. I have confirmed all my connectors are 'connected', I have tried to use a variable to ensure it it shown as a string then use the int conversion but everything fails. I believe the flow should work as I set up a manually triggered flow and that worked using the following:

 

mfritter_1-1692730816946.png

This results in a percentage when manually triggered using the value '5:

mfritter_2-1692730892267.png

 

Categories:
I have the same question (0)
  • Verified answer
    trice602 Profile Picture
    16,164 Super User 2026 Season 1 on at

    Hi @mfritter ,

     

    Please try float() .

     

    trice602_0-1692732107466.png

    float(variables('test1'))
     
  • mfritter Profile Picture
    9 on at

    Woohoo Tom, you are a star! made the change as suggested swapping out the INT for the float, value converted and email worked fine! 

    mfritter_0-1692733019539.png

     

  • trice602 Profile Picture
    16,164 Super User 2026 Season 1 on at

    Glad you are up and running!

     

     

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
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard