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 Platform Community / Forums / Power Automate / int function not working
Power Automate
Unanswered

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
    15,402 Super User 2025 Season 2 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
    15,402 Super User 2025 Season 2 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard