目录

ArkTS API Error Codes

This topic 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

Message

The number of records (N) exceeds the maximum.

Description

The number of data records exceeds the maximum.

Possible causes

The number of data records exceeds the maximum.

Solution

Limit the number of items that can be shared.

1003702001 Invalid Data Record Format/Unsupported Data Type

Message

Record types are not support.

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. Verify that the data type is a preset type defined by UniformDataType 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

Message

IPC data is oversized, data size larger than 200KB.

Description

The data transmitted across processes exceeds the upper limit (200 KB).

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

Message

Parse data failed.

Description

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

Possible causes

  1. The input parameter is invalid during the getContactInfo or getSharedData call. For example, the parsed data is not for sharing or a certain parameter 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.