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 / Power apps float error...
Power Automate
Unanswered

Power apps float error when setting a variable to column that is an integer

(0) ShareShare
ReportReport
Posted on by 79

I have a column that is set as an integer.

billbattny_0-1643978543166.png

In my flow I try to set a variable, also set as an integer, to the column value.  I keep throwing an error "BadRequest. The variable 'TotalHoursVar' of type 'integer' cannot be inialized or updated with a value of type 'Float'.  The variable 'TotalHoursVar' only supports values of types 'Integer'."

billbattny_1-1643978641587.png

I tried using compose on the column first (as shown below) and setting the variable to the compose output but I get the same error with or without the compose step.

billbattny_3-1643978824001.pngbillbattny_4-1643978854425.png

Why is the flow seeing an integer column as a float? 

 

Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    It seems that you will need to use the int() function :

    ekarim2020_0-1644154772623.png

     

    2022-02-06_13-44-34.gif


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

    Ellis

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