web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / API Operation expectin...
Power Automate
Answered

API Operation expecting data of type number but if of type string

(0) ShareShare
ReportReport
Posted on by 5

Hello

I created a custom connector to an api and I'm getting the following error when executing the related action in a "Flow" : 

 

ResponseSwaggerSchemaValidationFailure. The API returned an invalid response for workflow operation 'Get-time_entries' of type 'OpenApiConnection'. Error details: 'The API operation 'Get-time_entries' requires the property 'body/data/0/rate_regular' to be of type 'Number' but is of type 'String'.'

 

I've changed the type from number to string and vice-versa in the Swagger Editor, but I'm getting the same error every time in flow. I don't get an error when I test the connector in PowerApps but I get warning messages about the data type of the above field.

 

Can you please guide me on the next steps.

Categories:
  • Verified answer
    ChrisPiasecki Profile Picture
    6,428 Most Valuable Professional on at

    Hi @Dedmik,

     

    Your existing connections and actions might be still referring to the old OpenAPI definition. Can you try either removing then re-adding a connection and/or remove/re-add any steps using the connector in a flow and retest.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • dedmik79 Profile Picture
    5 on at

    Thank you very much. I thought that saving the connector was supposed to override the previous one. Your tricked worked right away

  • ChrisPiasecki Profile Picture
    6,428 Most Valuable Professional on at

    No problem. Currently there is no easy way to refresh the metadata/connections. You'll run into similar issues if you change any metadata (e.g. Changing a column or adding a new one) within a SharePoint list after you've already added steps. Having to recreate all the steps can be a bit painful, so try to ensure any metadata in your data sources is all good to go before going too far. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Are there any other solutions? I am getting the same error. I removed the connection and readded it back but still getting the same error. 

     

    'The API operation 'CreateNewList' requires the property 'body/lists/0/emailOwnerOnChange' to be of type 'Integer' but is of type 'String'.'

     

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    requires the property 'body' to be of type 'Object' but is of type 'String'.'

    {type: string, description: itemId}

    Addition connection did not fix my issue

  • JonnieJarko Profile Picture
    5 on at

    I am in the exact same boat and it seems to happen with some dates that I have in my flow.  Is there a workaround as I cannot get the survey to initiate the trigger in the flow thus the data is not being transferred over from survey123 to an excel document. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard