Highlighted
Trusted Contributor.
Trusted Contributor.
392 views

create IM using restful api(POST)

Jump to solution

Hi Guys,

 

When I POST to HPSM incident(IM) restful api, I get this error message.

please assist, I have been trying to resolve this issue and I have ran out of ideas on how to solve this issue.

 

{
"Messages": [
{
"fileName": "",
"lineNumber": 0,
"message": "RAD Exception",
"stack": "Error(\"RAD Exception\")@:0\nrun(\"se.external.action\",[object SCDatum],[object SCDatum],[object SCDatum],[object SCDatum])@'RAD':40\nactionEngine([object SCFile],\"Create\",\"Incident\")@'RestfulAction':196\nprocessAction([object Object],[object Array],\"{\\\"Incident\\\":{\\\"Impact\\\":\\\"1\\\",\\\"Assignee\\\":\\\"jervay.singh\\\",\\\"Category\\\":\\\"Service Delivery\\\",\\\"Description\\\":\\\"test\\\",\\\"AssignmentGroup\\\":\\\"DDM Boxoffice\\\",\\\"Service\\\":\\\"Broadcast Media Tech Ops\\\",\\\"Title\\\":\\\"Box Office - Incorrect Movie received\\\",\\\"AffectedLocation\\\":\\\"Africa\\\",\\\"Area\\\":\\\"IBS Frontend\\\",\\\"Subarea\\\":\\\"BoxOffice\\\",\\\"MCAAffectedLocation\\\":\\\"Africa\\\",\\\"ProblemType\\\":\\\"Incorrect content plays\\\",\\\"LoggedVia\\\":\\\"Inbound Email\\\",\\\"Urgency\\\":\\\"1\\\",\\\"Solution\\\":\\\"asdfg\\\"}}\",[object SCFile])@'RestfulAction':128\n__processResource(\"{\\\"method\\\":\\\"POST\\\",\\\"daoType\\\":\\\"REST9\\\",\\\"SimpleThreadAuth.SecureState\\\":\\\"0\\\",\\\"X-SMEssUser\\\":\\\"false\\\",\\\"SimpleThreadAuth.AuthState\\\":\\\"0\\\",\\\"uri\\\":\\\"[\\\\\\\"incidents\\\\\\\"]\\\"}\",\"{\\\"Incident\\\":{\\\"Impact\\\":\\\"1\\\",\\\"Assignee\\\":\\\"jervay.singh\\\",\\\"Category\\\":\\\"Service Delivery\\\",\\\"Description\\\":\\\"test\\\",\\\"AssignmentGroup\\\":\\\"DDM Boxoffice\\\",\\\"Service\\\":\\\"Broadcast Media Tech Ops\\\",\\\"Title\\\":\\\"Box Office - Incorrect Movie received\\\",\\\"AffectedLocation\\\":\\\"Africa\\\",\\\"Area\\\":\\\"IBS Frontend\\\",\\\"Subarea\\\":\\\"BoxOffice\\\",\\\"MCAAffectedLocation\\\":\\\"Africa\\\",\\\"ProblemType\\\":\\\"Incorrect content plays\\\",\\\"LoggedVia\\\":\\\"Inbound Email\\\",\\\"Urgency\\\":\\\"1\\\",\\\"Solution\\\":\\\"asdfg\\\"}}\",[object Array])@'RestfulMain':82\nprocessResource(\"{\\\"method\\\":\\\"POST\\\",\\\"daoType\\\":\\\"REST9\\\",\\\"SimpleThreadAuth.SecureState\\\":\\\"0\\\",\\\"X-SMEssUser\\\":\\\"false\\\",\\\"SimpleThreadAuth.AuthState\\\":\\\"0\\\",\\\"uri\\\":\\\"[\\\\\\\"incidents\\\\\\\"]\\\"}\",\"{\\\"Incident\\\":{\\\"Impact\\\":\\\"1\\\",\\\"Assignee\\\":\\\"jervay.singh\\\",\\\"Category\\\":\\\"Service Delivery\\\",\\\"Description\\\":\\\"test\\\",\\\"AssignmentGroup\\\":\\\"DDM Boxoffice\\\",\\\"Service\\\":\\\"Broadcast Media Tech Ops\\\",\\\"Title\\\":\\\"Box Office - Incorrect Movie received\\\",\\\"AffectedLocation\\\":\\\"Africa\\\",\\\"Area\\\":\\\"IBS Frontend\\\",\\\"Subarea\\\":\\\"BoxOffice\\\",\\\"MCAAffectedLocation\\\":\\\"Africa\\\",\\\"ProblemType\\\":\\\"Incorrect content plays\\\",\\\"LoggedVia\\\":\\\"Inbound Email\\\",\\\"Urgency\\\":\\\"1\\\",\\\"Solution\\\":\\\"asdfg\\\"}}\",[object Array])@'RestfulMain':24\n@:0\n"
},
"Unrecoverable error in application: se.external.add.record on panel call.jscript",
"Process panel call.jscript in RAD se.external.action encountered error in line 3 (se.external.action,call.jscript)",
"Cannot evaluate expression (se.external.action,call.jscript)",
"Cannot evaluate expression (se.external.action,call.jscript)",
"Bad arg(2) oper = (se.external.action,call.jscript)",
"Cannot evaluate expression evaluate($L.jscript.function=jscall(execute.action in $L.extactions.file, $L.file, $L.action)) (se.external.action,call.jscript)",
"Cannot evaluate expression (se.external.action,call.jscript)",
"Bad arg(2) oper = (se.external.action,call.jscript)",
"Cannot evaluate expression jscall(\"IDOLWebService.suggest\", probsummary={[, \"Service Delivery\", , , , \"1\", , \"DDM Boxoffice\", , , , , , , , , , , , , , , , , , , , , , , , , , , , , , {\"test\"}, {\"asdfg\"}, {}, {}, {}, , , , , , , , , , , , \"jervay.singh\", , , , , , {}, , , , , , , , , , , , , , , , , , {}, {}, , , , , , , , \"Box Office - Incorrect Movie received\", , , , , , , , , , , , , , , , {}, , , , \"IBS Frontend\", , , , , , , , , , , , , , , , , , , , , , , , , , , , \"BoxOffice\", \"Incorrect content plays\", , , , , , , , , , {}, {}, {}, {}, , , , , , , , , , , , {}, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , {}, , , , , , , , , , {{[, , , ]}}, {{[, , , , ]}}, , , {}, , , , , , , , , , , , , , , \"1\", , , {}, {}, , , , \"Broadcast Media Tech Ops\", , , {}, , , \"Inbound Email\", , , , , , , , , , , , , , , , , , {\"Africa\"}, , , , {}, {}, {}, {}, {}, , , , , , , , , , , {}, , , , {}, {}, , , , , , , {}, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , {}, {}, {}, , , , , , , , , , , , , , , , , , , , {}]}, \"*SOAP*add\") (se.external.action,call.jscript)",
"Script 'IDOLWebService' line 37: ERROR TypeError: record['adapter.id'] has no properties at char 1"
],
"ReturnCode": -1
}

url: http://localhost:13080/SM/9/rest/incidents/

see my json:

{"Incident":{
"AffectedLocation": "Africa",
"Area": "IBS Frontend",
"Assignee": "sivuyile.singh",
"AssignmentGroup": "DDM Boxoffice",
"Category": "Service Delivery",
"Description":"test",
"Impact": "1",
"LoggedVia": "Inbound Email",
"MCAAffectedLocation": "Africa",
"ProblemType": "Incorrect content plays",
"Service": "Broadcast Media Tech Ops",
"Solution": "asdfg",
"Subarea": "BoxOffice",
"Title": "Box Office - Incorrect Movie received",
"Urgency": "1"
}
}

 

please help

0 Likes
1 Solution

Accepted Solutions
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: create IM using restful api(POST)

Jump to solution

Hi,

The issue here was the external access defination, I have since fixed this issues.

 

Thanks

Guys

View solution in original post

0 Likes
1 Reply
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: create IM using restful api(POST)

Jump to solution

Hi,

The issue here was the external access defination, I have since fixed this issues.

 

Thanks

Guys

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.