Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Set intVariable Error or is it Set fltVariable Error

(0) ShareShare
ReportReport
Posted on by 1,360

No matter which way I set my variable to hold an integer/number value from my SharePoint list I get the following error.
it is not set up as float in my list, its set up as a number field.

The variable 'intReorderThresholdQty' of type 'Integer' cannot be initialized or updated with value of type 'Float'. The variable 'intReorderThresholdQty' only supports values of types 'Integer'.

golfnutt82_0-1677865440557.png

golfnutt82_1-1677865648543.png

BAM it hits the wall

golfnutt82_2-1677865777669.png

"cannot be initialized or updated with value of type 'Float'! Its an integer not float!

Any workaround or fix for this?

 

  • golfnutt82 Profile Picture
    1,360 on at
    Re: Set intVariable Error or is it Set fltVariable Error

    Thanks for your input.
    Definately will keep yours in mind for any future workflows causing this.
    Very puzzling.

  • Verified answer
    golfnutt82 Profile Picture
    1,360 on at
    Re: Set intVariable Error or is it Set fltVariable Error

    Yah, the work around was deleting the original variables and rebuilding them as a float type.
    Delete the set variables and create new variables using float.

  • Verified answer
    wskinnermctc Profile Picture
    6,517 Super User 2025 Season 1 on at
    Re: Set intVariable Error or is it Set fltVariable Error

    Can you try either one of the expressions and see if it changes anything? 

     

    body('Filter_array_Get_OSI_Values')?[0]?['field_4']

    or

    first(body('Filter_array_Get_OSI_Values'))?['field_4']

    or

     

    int(first(body('Filter_array_Get_OSI_Values'))?['field_4'])

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1