microsoftgraph/msgraph-training-powerautomate

body to be of type of string but is of type object

Closed this issue · 5 comments

Followed the article to create the custom connector, received this error "The API 'ms-20graph-20batch-20connector-**********' returned an invalid response for workflow operation 'Batch_POST-groups' of type 'OpenApiConnection'. Error details: 'The API operation 'Batch' requires the property 'body' to be of type 'String' but is of type 'Object'.'"

Verified and ran through the steps multiple times, same error. Also, newly added connector at https://preview.flow.microsoft.com/en-us/connectors/ throws 404 error.

@msekkappan I just went through this tutorial in a fresh Office 365 tenant and got through it successfully. There are a few UX changes to the Flow site, specifically to how you create a custom connector.

I've not seen that error so I can't point to anything specific. It may be an issue with your custom connector, or it could be the flow itself. If you look at the run history for your flow and expand the Batch POST-groups item, does it show an output?

image

@jasonjoh
The run history shows this message
Capture

It is possible that the custom connector has issues, I am unable to browse back to the connector after creation. It throws 404 error, I am able to reproduce the error. I tried several times, same issue.

I also noticed your URL has preview in it, it could be some failure or incompatibility with a preview version of Flow. I'm not versed enough with Flow to troubleshoot it. You may want to open a ticket through the Microsoft 365 admin center if you can't figure it out.

I successfully created it in my fresh test tenant, I have tenant administrator privilege in this tenant.

Ah. Yes admin access is a prerequisite. Thanks for following up.