- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2016 08:37 AM
Hi,
I have a requirement to create CMDB records using REST call from 3rd party application.
When I am trying to create the record using 3rd party application I am able to insert the record but the status Showing as error.
Below is the JSON response I am getting:
"import_set": "ISET0011026"
"staging_table": "<Import set Table Name>"
"result": [1]
0: {
"transform_map": "<Transform Map Name>"
"table": "cmdb_ci_appl"
"status": "error"
"error_message": "Target record not found"
"status_message": "No field values changed"
}
}
When I am trying to do the same on Request/Incident table it is giving the Incident/Request number.
Can some one please help me on this if I am missing something here.
Thanks!
Raj
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2016 11:22 AM
I missed giving rest_service role for the import set table which I used here.
Now I am getting response with status inserted and sys_id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2016 09:16 PM
Hi Raj,
It looks like you are posting to an import staging table. Are you doing the same for the Request/Incident or are you posting directly to those tables?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2016 09:56 PM
Hi Jose,
Yes, I am posting to an import set staging table.
Its the same process I followed for Incident and request where I am getting response with Inc/Req numbers.
Thanks!
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2016 11:22 AM
I missed giving rest_service role for the import set table which I used here.
Now I am getting response with status inserted and sys_id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2019 09:32 AM
Hi @jose.valle,
Unfortunately I am currently experiencing the same issue described above by @raj159. 😞
I am using a POST method from a REST Message to create/update a given record.
When I run a test for that POST method using the 'Test' related link, the respective record is in fact created/updated with the proper values but, strangely the "result" I get from the Test Response includes the following:
"status":"error","error_message":"Target record not found",
even though the correct Import Set, Staging Table, Transform Map and Table are properly identified.
In fact, in the Import Set table itself, I can see that the following attribute values for the new entry representing the created/updated record via the POST method:
- "State = Updated';
- "Target Table" is correct;
- "Target record' is correct;
- "Error" is empty".
Any ideas on what might be happening here?
Thank you in advance! 🙂
Kind regards,
Fábio Gonçalves