Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Select step value now outputting string despite expression converting to float

(0) ShareShare
ReportReport
Posted on by 16

This flow has been working for months now; however, after updating it in the new year it's no longer working. Normally I'd expect it to be a mistake I made, but it's instead the behaviour of a Select step that I did not change that is causing the flow to error.

 

Previously, the Select step would output a float in the value of several of the key / value pairs by taking a string from the prior Parse JSON step and converting it to a float using the float() function. It now for some reason will only output a string. This is happening to every numeric value. Why is this step now only outputting strings?

 

The function in one of the values of the Select step that checks for null otherwise (should) convert to float:

aaaaaaaa2_0-1704276713158.png

 

Here's the expression in text form:

if(equals(replace(item()['Title'],'%22',''),''),null,float(replace(item()['Title'],'%22','')))

 

Select step input:

aaaaaaaa2_1-1704277023718.png

 

Select step output before breaking:

aaaaaaaa2_2-1704277160602.png

 

Select step output after breaking:

aaaaaaaa2_3-1704277273476.png

 

  • Verified answer
    aaaaaaaa2 Profile Picture
    16 on at
    Re: Select step value now outputting string despite expression converting to float

    Ah, I've solved it!

     

    If you edit the Select step in text mode, you'll find the value has been wrapped in double quotes! Removing these double quotes fixes the problem.

     

    I think this might be an issue with the Select statement in the V3 editor as I never had to do this previously. Apologies if I'm reporting a bug in the wrong place.

  • aaaaaaaa2 Profile Picture
    16 on at
    Re: Select step value now outputting string despite expression converting to float

    Simplest way to replicate problem.

     

    1. Create an Excel spreadsheet with a column of numbers, and create a table for the column.

    2. Upload the spreadsheet to SharePoint.

    3. Create a manually triggered flow.

    4. Add a List rows present in table step against that spreadsheet's table.

    5. Add a Parse JSON step against the output of previous step.

    6. Add a Select step against the output of previous step, with the single key value pair of the one column in the JSON output. Give it any key name and for the value, attempt to convert the single column JSON value to either an int or float using the respective functions.

     

    It won't work anymore. The output of the Select statement is always a string.

  • aaaaaaaa2 Profile Picture
    16 on at
    Re: Select step value now outputting string despite expression converting to float

    I've tried testing this with a freshly built flow that only goes up to the problem point and only Selecting that single Title column.

     

    The behaviour of the Select action has definitely changed recently. Doesn't appear to now be possible to convert string data types to int or float using an expression within the Select action values. Perhaps it's now hard setting the output data type to the input's? Seems like a bug.

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