Skip to main content

Typical error codes and corrective actions

Error codes and messages

Cause and corrective actions

APEX_ERROR: Apex CPU time limit exceeded

Exceeded Salesforce governor limits (CPU time).

To reduce the load, reduce the target records by adding the filter criteria, specify the field of the join criteria to the sort condition as well, use AND condition for all conditional expressions, and so on.

See also Tips on exceeding governor limits.

APEX_ERROR: Apex heap size too large

Exceeded Salesforce governor limits (heap size). The data amount of the intermediate table or the print target may be too much.

Add filter criteria, reduce target records to be printed, or try other actions.

See also Tips on exceeding governor limits.

INVALID_TYPE: invalid field or object type. sobject: XXX, field: YYY

An invalid type is specified. The specified YYY field of XXX object does not exist.

Check whether the relevant object or field exists in the production environment.

SERVER_ERROR: invalid usage of soql execution. query: SELECT...

Incorrect SOQL.

Refer to the error message to check if there are incorrect join criteria or records.