Error message with a success http code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2016 04:29 PM
I found that the REST API sometimes returns an error message with a success code(201 created) when failed to insert data using import set API. I'm wondering if there're any other cases that the API returns an error message with a success code(200 or 201)? And what is the error message structure?
Here's an example:
Status code | 201 Created |
{
"import_set": "ISET0010003",
"staging_table": "imp_computer",
"result": [
{
"transform_map": "Computer",
"status": "error",
"error_message": "Unable to resolve target record, coalesce values not present: serial_number; Invalid table ",
"status_message": "Unable to resolve target record, coalesce values not present: serial_number"
}
]
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2016 04:32 PM
Hi Jerry,
How many records were imported in to the record? It looks like it tried to do the transform and got hung up. Just curious if records were created and how many.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2016 02:33 PM
Hi Chuck,
Records were not created. I see this error when inserting data without giving a value of serial_number, it seems that serial_number field is a must if you want to insert data into imp_computer.
If serial_number is given, then a record will be successfully inserted.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2016 03:47 PM
Is there a data policy? I've never heard of that on an import set table. Target table, sure. That's a feature of the transform map.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2016 04:03 PM
Hi Jerry,
You may find the below thread helpful.