Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

Requires String But Is Float, How To Convert To String?

(0) ShareShare
ReportReport
Posted on by 4

Wondering if anyone else has come across this issue and found a solution.

 

I'm trying to set up a flow that looks at a Smartsheet and when rows are updated, it updates a table in SQL Server. I'm using the Smartsheet connector and below is how the flow looks. 

 

Slowpoke1_0-1688138957913.png

 

I'm getting the following error at the "Get a sheet data" step:

 

"ResponseSwaggerSchemaValidationFailure. The API 'smartsheet' returned an invalid response for workflow operation 'Get_a_sheet_data_(dynamic_schema)' of type 'OpenApiConnection'. Error details: 'The API operation 'GetSheetData' requires the property 'body/value/0/Amount' to be of type 'String' but is of type 'Float'.'"

 

The column in question contains all whole numbers, no blanks or nulls. When I test with a sheet that's all text everything works so it's the numbers causing this error. Would appreciate any suggestions.

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on at
    Re: Requires String But Is Float, How To Convert To String?

    I don’t think that you need to convert anything. Unfortunately I don’t know Smartsheet and how it works but it seems that a schema validation failed. For some reason it thinks that the amount should be a string. Do you know where to set the schema? Have you tried to only select a view columns (and not amount) to test the api call. Does that work?


    In the error message it is saying that Amount needs to be a string. Why do you convert I’d into string?

  • Slowpoke1 Profile Picture
    4 on at
    Re: Requires String But Is Float, How To Convert To String?

    I must be doing something wrong still. In my original flow, on step 2, I clicked on the folder icon and specified the sheet I wanted to bring in. This is the point where the flow fails because of the float.

     

    I updated step 2 to be like below, instead of choosing the sheet from the folder icon I wrapped string() around the dynamic content "ID" (I've also tried name and body). When I run the flow with just these 2 steps, it runs successfully. 

     

    Slowpoke1_1-1688567337447.png

     

    But in the SQL Update Row step, the columns from the Smartsheet no longer show up to map to a column in the SQL table. Entering the column names manually step 2 doesn't work either. The only things that populate are the metadata. (Screenshot attached).

  • Matthy79 Profile Picture
    4,178 Super User 2024 Season 1 on at
    Re: Requires String But Is Float, How To Convert To String?

    Inside the brackets you should fill in your float value (dynamic content).

  • Slowpoke1 Profile Picture
    4 on at
    Re: Requires String But Is Float, How To Convert To String?

    Thanks for the suggestion. I did see the string() formula but I'm not sure where I would use that.

     

    This is how my flow looks, how can I wrap the string() around the values from the sheet?

     

    Slowpoke1_1-1688165274053.png

     

     

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Requires String But Is Float, How To Convert To String?

    Hi @Slowpoke1 

     

    Pls try converting the value from float to string type using string() formula. For that you need to write with the formula as shown below:

    ManishSolanki_0-1688148073313.png

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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

Featured topics