Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

 

  • trice602 Profile Picture
    13,760 Super User 2025 Season 1 on at
    Re: int function not working

    Glad you are up and running!

     

     

  • mfritter Profile Picture
    9 on at
    Re: int function not working

    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

     

  • Verified answer
    trice602 Profile Picture
    13,760 Super User 2025 Season 1 on at
    Re: int function not working

    Hi @mfritter ,

     

    Please try float() .

     

    trice602_0-1692732107466.png

    float(variables('test1'))
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow