目录

ArkTS API Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.

1003700001 Number of Data Records Exceeding the Maximum

Error Message

The number of records exceeds the maximum.

Error Description

The number of data records exceeds the maximum.

Possible Causes

The number of data records exceeds the maximum, which is 500 currently.

Solution

Limit the number of items that can be shared.

1003702001 Invalid Data Record Format or Unsupported Data Type

Error Message

Record types are not support.(The batch and multiple selection modes support { @link UDMF.File } type records only.)

Error Description

The data record type is not supported.

Possible Causes

  1. The data record type cannot be identified, is not supported, or is invalid.

  2. The uri and content parameters in SharedRecord are both empty.

  3. The value of uri is in an invalid format.

Solution

  1. Check whether the data type is a preset UniformDataType type or a known custom type.

  2. Verify that either uri or content is set in SharedRecord.

  3. Verify the format of the value of uri.

1003702002 Data Transmitted Across Processes Is Oversized

Error Message

IPC data is oversized.

Error Description

The data transmitted across processes exceeds the upper limit (200 KB, including parameters in the want data.)

Possible Causes

  1. The thumbnail is too large.

  2. There is too much text content.

Solution

  1. Compress the thumbnail binary data passed through SharedRecord.

  2. Limit the number of characters in the text that can be shared by a user.

1003703001 Data Parsing Failure

Error Message

Parse data failed.

Error Description

The want data which contains key information about the shared data is invalid and cannot be parsed.

Possible Causes

The input parameter is invalid during the getContactInfo/getSharedData call. For example, the parsed field does not match (non-shared data) or the parsed field does not exist.

Solution

  1. Terminate the shared data processing through the ability of the target app.

  2. Display a message to the user indicating the data sharing error.