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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Custom Connector Schem...
Power Automate
Answered

Custom Connector Schema Issue (I think)

(0) ShareShare
ReportReport
Posted on by 50

I'm getting the following error on a custom connector I've built: "The API 'palletways-20tracking' returned an invalid response for workflow operation 'GetTrack' of type 'OpenApiConnection'. Error details: 'The API operation 'GetTrack' requires the property 'body' to be of type 'Object' but is of type 'String'.'"

 

Now I've looked through various previous suggestions, but for the life of me cannot figure out where I'm going wrong. Deleting out the entire schema definition resolves the issue, but I kind of need that Schema! This is my Swagger:

 

swagger: '2.0'
info:
 version: '1.0'
 title: Palletways API
 description: Palletways Tracking by Consignment
 contact: {}
host: api.palletways.com
basePath: /getTrackingNotesByConNo
schemes: [https]
consumes: [application/json]
produces: [application/json]
paths:
 /{Consignment}:
 get:
 summary: GetTrack
 tags: [Misc]
 operationId: GetTrack
 deprecated: false
 produces: [application/json]
 parameters:
 - {name: apikey, in: query, required: true, type: string, description: '', default: XXX
 - {name: outputformat, in: query, required: true, type: string, description: '',
 default: JSON}
 - {name: Consignment, in: path, required: true, type: integer, format: int32,
 description: '', default: 232395}
 responses:
 '200':
 description: ''
 headers:
 '"cache-control"': {description: '"cache-control"', type: string}
 '"content-type"': {description: '"content-type"', type: string}
 '"date"': {description: '"date"', type: string}
 '"expires"': {description: '"expires"', type: string}
 '"pragma"': {description: '"pragma"', type: string}
 '"x-ms-apihub-cached-response"': {description: '"x-ms-apihub-cached-response"',
 type: string}
 schema:
 type: object
 properties:
 Status:
 type: object
 properties:
 Code: {type: string, description: Code}
 Description: {type: string, description: Description}
 Count: {type: integer, format: int32, description: Count}
 description: Status
 Detail:
 type: object
 properties:
 Data:
 type: object
 properties:
 TrackingID: {type: string, description: TrackingID}
 DateEntered: {type: string, description: DateEntered}
 ConNo: {type: string, description: ConNo}
 CustRef: {type: string, description: CustRef}
 Lifts: {type: string, description: Lifts}
 Weight: {type: string, description: Weight}
 Status: {type: string, description: Status}
 Barcodes: {type: string, description: Barcodes}
 ColDepot: {type: string, description: ColDepot}
 DelDepot: {type: string, description: DelDepot}
 Notes:
 type: array
 items:
 type: object
 properties:
 NoteType: {type: string, description: NoteType}
 Barcode: {type: string, description: Barcode}
 Comments: {type: string, description: Comments}
 Date: {type: string, description: Date}
 Time: {type: string, description: Time}
 description: Notes
 tracking_url: {type: string, description: tracking_url}
 description: Data
 description: Detail
definitions: {}
parameters: {}
responses: {}
securityDefinitions: {}
security: []
tags:

I've tried adding in random "body: {type: object}", but I'm afraid much more than that is beyond my skill level.

 

Any advice greatly received!

Categories:
  • Verified answer
    Chauc3r Profile Picture
    50 on at

    I've been bashing my head against the wall on this for days. Eventually, I changed the Schema to a type of "String", and then used the Parse JSON function on the output to access my data. Not a pretty bodge, but it works.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard