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 / Set intVariable Error ...
Power Automate
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?

 

Categories:
I have the same question (0)
  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    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'])

     

  • Verified answer
    golfnutt82 Profile Picture
    1,360 on at

    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.

  • golfnutt82 Profile Picture
    1,360 on at

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

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard