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 / Error when integrating...
Power Automate
Answered

Error when integrating Custom API: Cannot read property 'parameters' of undefined

(0) ShareShare
ReportReport
Posted on by 9

Hi,

 

when Integrating the following custom API i get the Error: Cannot read property 'parameters' of undefined. Same happens when I use the default.json from Swagger editor even though it is the very standard. Can you find any problem in the code? I found similar problems in the forum that were simply solved by updates - can this be similar or is it a known issue?

 

Thanks in advance!

 

Johannes

 

{
"swagger": "2.0",
"info": {
"title": "dox42 EmployeeList",
"description": "Call the dox42 Server",
"version": "1.0.0"
},
"host": "http://demo3.dox42.com",
"schemes": [
"http",
"https"
],
"basePath": null,
"produces": [
"application/json"
],
"paths": {
"/dox42RestService.ashx": {
"get": {
"description": "Gets the Employee List in PDF\n",
"parameters": [
{
"name": "Operation",
"in": "query",
"description": "Operation",
"required": true,
"type": "string"
},
{
"name": "DocTemplate",
"in": "query",
"description": "DocTemplate",
"required": true,
"type": "string"
},
{
"name": "SharePointAction.Site",
"in": "query",
"description": "SharePointAction.Site",
"required": true,
"type": "string"
},
{
"name": "SharePointAction.Library",
"in": "query",
"description": "SharePointAction.Library",
"required": true,
"type": "string"
},
{
"name": "SharePointAction.FileName",
"in": "query",
"description": "SharePointAction.FileName",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successful response"
}
}
}
}
}
}

 

Categories:
I have the same question (0)
  • irinag Profile Picture
    Microsoft Employee on at

    Johannes, can you please send me flowId (URL) or full error that contains request information? Also can you please clarify steps that you performed prior to running into the error. Thank you, Irina

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @irinag,

     

    I did copied your swagger file and validated using http://editor.swagger.io. Changes are highlighted in Italics. Copy the below file and try.

     

    {
    "swagger": "2.0",
    "info": {
    "title": "dox42 EmployeeList",
    "description": "Call the dox42 Server",
    "version": "1.0.0"
    },
    "host": "demo3.dox42.com",
    "schemes": [
    "http",
    "https"
    ],
    "basePath": "/api",
    "produces": [
    "application/json"
    ],
    "paths": {
    "/dox42RestService.ashx": {
    "get": {
    "description": "Gets the Employee List in PDF\n",
    "parameters": [
    {
    "name": "Operation",
    "in": "query",
    "description": "Operation",
    "required": true,
    "type": "string"
    },
    {
    "name": "DocTemplate",
    "in": "query",
    "description": "DocTemplate",
    "required": true,
    "type": "string"
    },
    {
    "name": "SharePointAction.Site",
    "in": "query",
    "description": "SharePointAction.Site",
    "required": true,
    "type": "string"
    },
    {
    "name": "SharePointAction.Library",
    "in": "query",
    "description": "SharePointAction.Library",
    "required": true,
    "type": "string"
    },
    {
    "name": "SharePointAction.FileName",
    "in": "query",
    "description": "SharePointAction.FileName",
    "required": true,
    "type": "string"
    }
    ],
    "responses": {
    "200": {
    "description": "Successful response"
    }
    }
    }
    }
    }
    }

     

     

    Thanks

  • jo_linder Profile Picture
    9 on at

    Hi @irinag.

     

    Thanks for the answer and sorry for the late response - Where can i find the Flow ID? Steps I did prior to running into the error:

    1. Tested the Swagger File on http://editor.swagger.io/#/ - it works but i get the response "ERROR Server not found or an error occurred". But since it worked anyway I ignored the response.
    2. Uploaded the file to my custom APIs and started the connection - that worked
    3. When I want to use the newly created Flow Action I get the error "Cannot read property 'parameters' of undefined"
  • jo_linder Profile Picture
    9 on at

    Thanks @abm I tried this but i does not change anything - the call worked in swagger before as well. I only get the error after importing the custom API and wanting to use it. Google did not really help.

     

    Thanks guys!

  • Verified answer
    irinag Profile Picture
    Microsoft Employee on at

    Hi @jo_linder,

     

    Your swagger is missing operationid property. We should have validated it during custom API creation, but missed it. 

     

    "paths": {
    "/dox42RestService.ashx": {
    "get": {
    "description": "Gets the Employee List in PDF\n",

    >>>>  "operationId": "EmployeeList",
    "parameters": [

     

    Thank you,

    Irina

  • jo_linder Profile Picture
    9 on at

    @irinag AWESOME! Now it works! Thanks a lot you saved me 🙂

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have the below json. It includes the operationId but I get the same error. The swagger definition also does not work in the editor btw, dont know why that is.

     

    {
    "swagger": "2.0",
    "info": {
    "version": "1.0.0",
    "title": "New Guid"
    },
    "schemes": [
    "https"
    ],
    "host": "myazurewebsite.azurewebsites.net",
    "basePath": "/api",
    "paths": {
    "/NewGuid": {
    "get": {
    "produces": [
    "application/json"
    ],
    "description": "Gets a new guid",
    "operationId": "NewGuid",
    "parameters": [
    {
    "name": "code",
    "in": "query",
    "description": "code",
    "required": true,
    "type": "string",
    "default": "mycode"
    }
    ],
    "responses": {
    "200": {
    "description": "Successful response",
    "schema": {
    "title": "response",
    "type": "string"
    }
    }
    }
    }
    }
    }
    }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard