Replying to ICIMS with an Error Message



Hi,

I need to send back an error message to ICIMS.
I followed the instructions on https://developer.icims.com/REST-API/Error-Handling-and-Reporting but I still can't see the error messages.

This is the json message I am sending:
{
"error": {
"userMessage": "Invalid fields - Bad applicant last name.",
"debugErrorMessage": "Invalid fields - Bad applicant last name."
}
}

Thank you.

Submitted by iCIMSUNIFIL on October 12, 2017 Permalink

Will you send the customer id of the platform you are using to perform your tests? We can look into the logs and site configuration.

Submitted by iCIMSUNIFIL on October 13, 2017 Permalink

Because this is a sandbox, the environment may not show the error messaging as it would a client's platform, however I see your message within our logs.

Here are our logs:

com.icims.integration.IntegrationConversation

INFO

10/12/2017 15:39:31

Log Message:
Notification response from https://services.acheckamerica.com/ACheckIntegrationsStaging/bgdrequest
HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 147
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Thu, 12 Oct 2017 20:39:31 GMT
Connection: close

(null)

com.icims.integration.IntegrationConversation

WARN

10/12/2017 15:39:31

Log Message:
(2 of 2) Failed response when requesting https://services.acheckamerica.com/ACheckIntegrationsStaging/bgdrequest Response Details:responseCode=400

com.icims.integration.IntegrationConversation

WARN

10/12/2017 15:39:31

Log Message:
Invalid JSON string: "{\"error\":{\"userMessage\":\"Invalid fields - Bad applicant last name.\",\"debugErrorMessage\":\"Invalid fields - Bad applicant last name.\"}}"

com.icims.integration.IntegrationConversation

INFO

10/12/2017 15:39:29

Log Message:
Outbound notification
POST /ACheckIntegrationsStaging/bgdrequest HTTP/1.1
Connection: close
Link: https://api.icims.com/customers/6271/applicantworkflows/1486;rel="applicantWorkflow";title="Applicant Workflow",https://api.icims.com/customers/6271/jobs/1211;rel="job";title="Job Profile",https://api.icims.com/customers/6271/people/1938;rel="person";title="Person Profile",https://api.icims.com/customers/6271/people/1251;rel="user";title="Posting User",
Authorization: Basic aUNpbXM0Q2hlY2tFY28wOTE3OkVjMGlDSU01QWNoM2NrMTdERQ==
X-NewRelic-ID: UQMFUFdUGwsHVllVDwI=
X-NewRelic-Transaction: PxRVVwQFClUFVlZUUQcBXlUAFB8EBw8RVU4aAA5aUgBVUAtWBwcFVFwHBkNKQQ0GAlxWAQRXFTs=
Content-Length: 588
Content-Type: application/json
Host: services.acheckamerica.com
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_141)
Accept-Encoding: gzip,deflate

{"jobId":"1211","systemId":"1486","newStatus":"24335","oldStatus":"2013","customerId":"6271","personId":"1938","links":[{"rel":"applicantWorkflow","title":"Applicant Workflow","url":"https://api.icims.com/customers/6271/applicantworkflows/1486"},{"rel":"job","title":"Job Profile","url":"https://api.icims.com/customers/6271/jobs/1211"},{"rel":"person","title":"Person Profile","url":"https://api.icims.com/customers/6271/people/1938"},{"rel":"user","title":"Posting User","url":"https://api.icims.com/customers/6271/people/1251"}],"eventType":"WorkFlowStatusChangeEvent","userId":"1251"}