cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hancha
Helper I
Helper I

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

Hello,
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:


 "...property body should be String but it is Object."

thanks a lot

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

2 REPLIES 2
pre
Microsoft
Microsoft

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.


Or

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]

 

Thanks

Hi @pre ,

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

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (56,055)