'500 Internal Server Error' on making REST call to ImportSet API


Description

Steps to reproduce:
1. Navigate to REST API Explorer.
2. Select Import Set API.
3. Select staging table name.
4. Pass below sample payload to create an Incident record.

{
   "impact":"2",
   "cmdb_ci":"xxxxx",
   "urgency":"2",
   "short_description":"Time Synchronisation",
   "description": "Detected"
}

You get below error response upon sending a request to create an incident using ImportSet API.

Error Response:


Cause

Missing parent & child CMDB CI's Relationships.

Resolution

1. Identify the missing CMDB CI parent & child relationships.
2. Take necessary action to have a correct CMDB CI's parent and child relationships.
3. Now, test sending a request to create an incident using ImportSet API