Updated on 2025-06-27 GMT+08:00

Error Codes

Table 1 SDK error codes

Error Type

Error Code

Description

Possible Cause

Solution

Parameter error

(APM.00XX)

APM.0001

%@ is null.

%@ is null.

Set the parameter and try again.

APM.0002

%@ is invalid.

The type or format of %@ is invalid.

Set valid parameters and try again.

APM.0003

The length of %@ exceeds the maximum value of %@.

Too many characters.

Modify the parameter and try again.

APM.0004

The value of %@ must be between %@ and %@.

The value is out of the permitted range.

Modify the parameter and try again.

APM.0006

%@ doesn't match pattern.

The parameter does not match the regular expression.

Set valid parameters and try again.

APM.0007

Invalid configuration parameters.

Invalid parameters.

Set valid parameters and try again.

APM.0008

This feature needs to be enabled in the configuration file.

The feature is disabled.

Enable this feature in the configuration file.

APM.0009

Unsupported region.

The region is not supported.

Switch to the cn-north-4 region.

Integration error

(APM.01XX)

APM.0100

The APMSDK is not initialized.

The SDK has not been initialized.

Set valid parameters to initialize the SDK.

APM.0102

The APMSDK requires %@ or higher.

The OS version must be %@ or higher.

Ensure that the OS version meets requirements.

APM.0103

Open database failed, code=%@.

Failed to open the database.

Handle the problem based on the SQLite 3 error code.

APM.0104

Create database table failed, code=%@, error=%@.

Failed to create the data table.

Handle the problem based on the SQLite 3 error code.

APM.0105

Insert into database failed, code=%@, error=%@.

Failed to insert data.

Handle the problem based on the SQLite 3 error code.

APM.0106

Delete from database failed, code=%@, error=%@.

Failed to delete the data.

Handle the problem based on the SQLite 3 error code.

APM.0107

Select from database failed, code=%@, error=%@.

Failed to query the data.

Handle the problem based on the SQLite 3 error code.

APM.0108

Close database failed, code=%@.

Failed to close the database.

Handle the problem based on the SQLite 3 error code.

APM.0109

Reduce database size failed, code=%@, error=%@.

Failed to reduce the database size.

Handle the problem based on the SQLite 3 error code.

APM.0110

Begin transaction failed, code=%@, error=%@.

Failed to enable the transaction.

Handle the problem based on the SQLite 3 error code.

APM.0111

Commit transaction failed, code=%@, error=%@.

Failed to submit the transaction.

Handle the problem based on the SQLite 3 error code.

APM.0112

The count of database records exceeds the maximum value of %@, will delete %@ records before inserting.

There are too many logs.

Automatically delete old logs before inserting new logs.

APM.0113

Update column(%@) to database failed, code=%d, error=%s.

Failed to update data.

Handle the problem based on the SQLite 3 error code.

System error

(APM.02XX)

APM.0202

Write to file failed.

Failed to write the file.

Check the permissions on the file.

APM.0203

No file read and write permissions.

No file read and write permissions.

Grant the read and write permissions on the file or directory.

APM.0204

Call the system API failed, API=%s, error=%s.

An error occurred when calling the system API.

Handle the problem based on the error description.

Network error

(APM.03XX)

APM.0300

Request failed, response code=%@, error=%@.

Failed to send the request.

For details, see Status Codes.