The CreatorCon Call for Content is officially open! Get started here.

Error message response on POST method - REST Ful webservice

raj159
Mega Expert

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

1 ACCEPTED SOLUTION

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.


View solution in original post

5 REPLIES 5

Hi,

I found the root of the issue myself: lack of READ ACL access to the table where I was creating/updating the records for the used User.

To whom it may be helpful, I got to this solution after looking at this Community Question: "Target record not found, but created successfully through import set?"


Kind regards,

Fábio Gonçalves