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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error in Power Automat...
Power Automate
Unanswered

Error in Power Automate Flow When Using Custom Connector -requires the property 'body' to be of type 'String' but is of type 'Object'

(0) ShareShare
ReportReport
Posted on by 11

I have created a Custom Connector that has a single "GetIssues" action.  The action tests fine within the Custom Connector creator.

 

When I try to use the action in a very simple flow I get the following error: 

 

The API 'opticsjira' returned an invalid response for workflow operation 'GetIssues' of type 'OpenApiConnection'. Error details: 'The API operation 'GetIssues' requires the property 'body' to be of type 'String' but is of type 'Object'.'

 

The swagger for the custom connector looks like this:

NOTE:  I also tried with produces set to 'application/json', but I got the same error.

 

swagger: '2.0'
info: {version: 1.0.0, title: Optics JIRA, description: 'An API to connect to Optics
    JIRA, providing the ability to a list of issues returned by a given filter.'}
host: xxx-jira.xxx.com
basePath: /
schemes: [https]
consumes: []
produces: [text/plain]
    paths:
        /rest/api/2/search:
    get:
        summary: GetIssues
        description: Get JIRA Issues with a specific JQL
        operationId: GetIssues
        parameters:
            - {name: jql, default: project=PSSTOOLS, in: query, type: string, required: true,
                description: The JQL string to search for the issues you want to get}
        responses:
            '200':
                description: '200'
                schema: {type: string}
definitions: {}
parameters: {}
responses: {}
securityDefinitions:
basic_auth: {type: basic}
security:
    - basic_auth: []
tags: []

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @krobertson7153 

     

    Do you still need help in this?

     

    Thanks

  • Verified answer
    krobertson7153 Profile Picture
    11 on at

    Thanks for getting back to me.  I finally got it to work.  I think what finally worked was putting {} into my "body" in my postman definition which I uploaded to create the connector.  I think if I left it blank it treated it as "null" which is an object?  Not sure though, but it is working now.

     

    This action did not require a body but I guess it is necessary to pass an empty body anyway.

  • kreid Profile Picture
    8 on at

    Hi, can you explain what you mean by your "body". I've uploaded my swagger json definition into the connector, but I don't see a "body" property. Can you show your definition an as example?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard