Dealing with Errors

As the eFinancialCareers’ API is RESTful, any HTTP status codes within the 4xx and 5xx will mean an error has occurred. The XML representation in the response body will help you determine the cause of each individual error that occurred. Here is a sample of an error message:

<errors xsi:schemaLocation="http://efinancialcareers.com/schema https://core.ws.efinancialcareers.com/v1/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <error errorCode=”25000″>

        <errorType>MSG_JOB_AUTOALLOCATION_INSUFFICIENT_INVENTORY_AMOUNT</errorType>

        <translation lang=”en”>You do not have sufficient inventory to make this job live.</translation>
    </error>

</errors>

JobFeed Error Codes

Error Code

Error Message

Description

30000

30001

 

30002

30003

30004

 

30005

30006

30007

 

30008

 

30009

30010

MSG_JOBFEED_INVALID_OPERATION_TYPE

MSG_JOBFEED_UNABLE_TO_FIND_JOB_
LOCATION_BY_LATITUDE_AND_LONTITUDE

MSG_JOBFEED_UNABLE_TO_PICK_BRAND

MSG_JOBFEED_UNABLE_TO_PICK_TEAM

MSG_JOBFEED_USER_DOES_NOT_BELONG_TO_TEAM

 

MSG_JOBFEED_INVALID_BRAND_SPECIFIED

MSG_JOBFEED_JOB_WAS_DEALLOCATED_ALREADY

MSG_JOBFEED_JOB_WAS_POSTED_BY_ANOTHER_TEAM

 

MSG_JOBFEED_DEACTIVATE_INVALID_JOBREF

 

MSG_JOBFEED_JOB_TEMPLATE_DOES_NOT_EXIST

MSG_JOBFEED_JOB_TEMPLATE_IS_NOT_AVAILABLE

User requested invalid operation

Job locations can’t be found by latitude and longitude

The brand of the job can’t be found

The team of the job can’t be found

Current user does not belong to provided job inventory team

Specified brand is invalid

Job was already de-allocated

Job was posted by a user who belongs to another job inventory team

Job feed has an invalid Job reference for’deactivate’ status

Job Template does not exist

Job Template is not available for this Brand/Company

JobFeed Parsing Error Codes

Error Code

Error Message

Description

31000

31001

31002

31003

31004

31005

31006

31007

31008

31009

MSG_JOBFEEDPARSING_ERROR_INVALID_XML_JOB_FEED

MSG_JOBFEEDPARSING_INVALID_ENCODING

MSG_JOBFEEDPARSING_INVALID_FEED_STRUCTURE

MSG_JOBFEEDPARSING_INVALID_MAIN_TAG

MSG_JOBFEEDPARSING_NO_JOBS_FOUND

MSG_JOBFEEDPARSING_NO_HEADER_FOUND

MSG_JOBFEEDPARSING_NO_DOCUMENT_START

MSG_JOBFEEDPARSING_NO_DOCUMENT_END

MSG_JOBFEEDPARSING_UNKNOWN_TAG

MSG_UNEXPECTED_END_OF_DOCUMENT

There is an invalid XML in the feed

There is an invalid encoding of the feed

There is an invalid structure of the feed

Invalid job feed main tag

No jobs found in job feed

No header found in job feed

No document start in job feed

No document end in job feed

Unknown tag in job feed

Unexpected end of document in job feed

Validation errors for Job Custom fields

Error Code

Error Message

Description

1913

1914

1915

1916

 

1917

MSG_JOB_CUSTOM_FIELD_VALUE_SIZE_MORE_THAN_1KB

MSG_JOB_CUSTOM_FIELD_NAMES_ARE_DUPLICATED

MSG_JOB_CUSTOM_FIELD_MORE_THAN_10

MSG_JOB_CUSTOM_FIELD_NAME_DOES_MATCH_SIZE_1_TO_100

MSG_JOB_CUSTOM_FIELD_NAME_DOES_MATCH_FORMAT

Character limit exceeded

Two variables with same name

Maximum number of variables exceeded

Variable name too long

 

Variable name does not match a format