Error Handling and Error Codes

When the Suitelet encounters an error processing a mapping retrieval request, the response will include additional information to assist with diagnosing and resolving the issue. Specifically, an error response contains a success: false property, a descriptive message, and a standardized code field indicating the type of error.

          {
    "success": false,
    "message": "Error: The referenced Mapping Type does not exist in the target account.",
    "code": "INVALID_MAPPING_TYPE"
} 

        

The code property will contain one of the following values, depending on the error encountered:

Error Code

Message

INVALID_MAPPING_TYPE

The referenced mapping type does not exist in the target account.

INVALID_MAPPING_TYPE_INSTANCE

The referenced mapping type instance does not exist in the target account

INVALID_PARAMETERS

Invalid parameters. Please make sure that you passed the expected parameters for the considered mapping type, if any.

INVALID_REQUEST_FORMAT

The submitted request is not supported. Please check that it's in the expected format.

UNEXPECTED_ERROR

An unexpected error occurred.

Note:

The message may contain a generic error message or other details about the error, depending on the failure context. This code covers all errors not specifically handled by the Suitelet's defined cases.

General Notices