Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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"
}
}
}
}
}
}

 

  • Community Power Platform Member Profile Picture
    on at
    Re: Error when integrating Custom API: Cannot read property 'parameters' of undefined

    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"
    }
    }
    }
    }
    }
    }
    }

  • jo_linder Profile Picture
    9 on at
    Re: Error when integrating Custom API: Cannot read property 'parameters' of undefined

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

  • Verified answer
    irinag Profile Picture
    on at
    Re: Error when integrating Custom API: Cannot read property 'parameters' of undefined

    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
    Re: Error when integrating Custom API: Cannot read property 'parameters' of undefined

    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!

  • jo_linder Profile Picture
    9 on at
    Re: Error when integrating Custom API: Cannot read property 'parameters' of undefined

    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"
  • abm abm Profile Picture
    32,488 Most Valuable Professional on at
    Re: Error when integrating Custom API: Cannot read property 'parameters' of undefined

    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

  • irinag Profile Picture
    on at
    Re: Error when integrating Custom API: Cannot read property 'parameters' of undefined

    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

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492