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"
}
}
}
}
}
}
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"
}
}
}
}
}
}
}
@irinag AWESOME! Now it works! Thanks a lot you saved me 🙂
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
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!
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:
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
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
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492