Skip to main content

Notifications

Power Automate - Connector Development
Unanswered

The API operation requires the property 'body' to be of type 'String' but is of type 'Array'

(0) ShareShare
ReportReport
Posted on by 13

Hello all,

 

I've been back and forth through various forum posts but unfortunately have come up short. I have created a Custom Connector from an OpenAPI definition file and am able to successfully test all of the operations within it. However when attempting to move from testing to a workflow I am receiving the following error:

 

 

ResponseSwaggerSchemaValidationFailure. The API 'enthuse-5ffb24a8b87c0e2c89-5f5b6611f075d10563' returned an invalid response for workflow operation 'Retrieves_a_list_of_supporter_records' of type 'OpenApiConnection'. Error details: 'The API operation 'getSupporterBySearch' requires the property 'body/supporterPojoList' to be of type 'String' but is of type 'Array'.'

 

 

I've attempted a content-type override policy as described in this thread with no luck. Here the question went unanswered. Searching for "requires the property to be of type 'String' but is of type 'Array'." here in the forums reveals endless similar posts with no answer. So I'm hoping this one might be different!

 

The header returned by the custom connector testing shows the following:

 

 

{
 "cf-cache-status": "DYNAMIC",
 "cf-ray": "8238c4a3f8b86325-LHR",
 "content-encoding": "gzip",
 "content-length": "479",
 "content-type": "application/json",
 "date": "Thu, 09 Nov 2023 20:22:30 GMT",
 "vary": "Origin,Access-Control-Request-Method,Access-Control-Request-Headers",
}

 

 

Can anyone see what the problem might be?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics