Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

custom connector works in test but returns error when used in flow

In one of my older flows last year I tried using a custom connector to get a JSON file with no problems at that time.
Recently I´ve tried to use the same connector in a new cloudflow but I get an error.

During Test within connector details everything works fine and I get data as expected (obtaining JSON).

The problem is that if used in a cloud flow following error is shown:

 " body should be String but it is Object."

thanks a lot

Thanks a lot for your answer
Any help would be highly appreciated

Community Support
Community Support

Hi @Hancha ,


I think when putting {} into the "body" in your postman definition which you upload to create the connector might be the scenario hence you can check by leaving it blank which should it as "null" which is an object.


During import of the json response in custom connector, a json definition should have got created. The Swagger editor should show you the definition of the part which failed as follow or similar to it :


=> GlobalValues: {type: string, description: GlobalValues]


Try changing it to:

=> GlobalValues: {type: array, items{}, description: GlobalValues]



Hi @pre ,

I tried checking all the above but it did not solve the problem...

Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,569)