目录

Result Codes

Data Export

Status Code

Result Code

Value

Description

Solution

400

invalidParameter

10020

Invalid parameter.

Check and correct the parameter value.

400

tooFrequentRequest

10008

API requests are too frequent.

Display a message indicating that operation requests are excessively frequent and asking the user to try again later.

400

userInstanceIdDeleted

10030

The data cannot be exported because it has been deleted at the request of the user.

Display a message indicating that the data has been deleted.

400

userDataExporting

10031

The data cannot be exported because the interval between this data export request and the previous one is less than two months.

Display a message notifying the user that the interval between two consecutive data export requests must be two months at least.

400

dataExportError

10032

The data cannot be deleted because it is being exported.

Display a message indicating that the data is being exported and asking the user to try again after the data export is complete.

400

dataDeleted

10033

The data has been deleted.

Display a message indicating that the data has been deleted.

400

tooManyTask

10009

The number of ongoing export tasks of an app reaches 3, which is the upper limit.

Try again after some or all of the ongoing tasks are complete.

400

  • Receive nothing from Open platform
  • Internal Error

19910

  • Authentication request timed out.
  • Internal error of the authentication server.

Try again later.

SDK

Result Code

Description

Solution

CE-001

Failed to obtain the collection server URL.

1. Ensure that you have enabled Analytics Kit.

2. Obtain the latest agconnect-services.json file.

3. Place the obtained agconnect-services.json file in your app's root directory.

NE-001

Failed to initialize the SSL connection.

Check whether the CA root certificate file hianalyticscas.bks exists in the assets directory of the SDK package.

NE-002

Failed to verify the certificate.

  • Check the system time settings of your phone. If the certificate is within the validity period, but the configured system time is later than the certificate expiration time and the current time, change the system time to the current time.
  • Switch to another Wi-Fi hotspot or use a mobile data network such as 4G or 5G to report data again.

NE-003

No network permission.

Ensure that you have the network permission.

NE-004

I/O exception.

Check the network connection and try again.

NE-005

Connection error.

Check the network connection and try again.

NE-006

Incorrect URL.

Check whether the value of collector_url in the agconnect-services.json configuration file has been changed. If so, download the agconnect-services.json configuration file again and do not change the value of collector_url.

PE-001

Empty parameter.

Check the logs and ensure that the input parameters are not empty.

PE-002

The length of the parameter value has exceeded the upper limit (256 characters).

Ensure that the value of the input parameter does not exceed 256 characters.

PE-003

Mandatory parameters are missing.

Verify that all mandatory parameters are passed.

PE-004

Reserved parameters are used.

Check whether any input parameters are key parameters reserved in the system (such as the event ID and attribute ID in automatic collection).

PE-005

Too many event parameters.

Check whether the number of parameters passed to a Bundle exceeds the upper limit. A maximum of 2048 key-value pairs and a maximum of 25 pairs of user attributes are supported.

PE-006

Incorrect format of parameter names.

Ensure that parameters such as the event ID and Bundle key meet the verification rules.

PE-007

The total parameter size exceeds the upper limit.

Delete unnecessary parameters.

IE-001

The SDK is not initialized in the main thread.

Initialize the SDK in the main thread.

IE-002

Your app is not released on HUAWEI AppGallery.

Release the app on HUAWEI AppGallery.

IE-003

The Analytics SDK is not initialized.

Check whether IE-004 or IE-005 is reported. If so, take the corresponding measure.

IE-004

The HMS Core SDK is not integrated.

Ensure that the agconnect-core SDK exists under External Libraries of the project.

IE-005

Incorrect HMS Core SDK.

Ensure that the HMS OpenDevice SDK and HMS Base SDK exist under External Libraries of the project and their versions match the Analytics SDK version.

IE-006

The collection function is disabled.

Enable the collection function (specified by setAnalyticsEnabled).

SE-001

Failed to initialize the instance.

SDK initialization failed. Check whether SE-002 or SE-003 is reported. If so, take the corresponding measure.

SE-002

Failed to obtain the AAID.

Ensure that the HMS OpenDevice SDK and HMS Base SDK exist under External Libraries of the project and their versions match the Analytics SDK version.

SE-003

Failed to obtain a token from AppGallery Connect.

Ensure that the agconnect-core SDK exists under External Libraries of the project.

If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.