This topic describes only module-specific error codes. helping developers identify and rectify problems that occur during pasteboard operations. This topic covers error codes related to index operations, capacity limits, operation conflicts, permission settings, and system exceptions.
This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
The index is out of range.
Description
This error code is reported when the index passed in to the called API, such as getRecord, is out of range. The index should be with the range from 0 to value of recordCount minus 1.
Possible Causes
The index passed in the API is beyond the record index range of the PasteData object. For example, the index passed in to getRecord exceeds the number of records.
Solution
Error Message
The number of records exceeds the upper limit.
Description
This error code is reported when no new PasteData record can be added.
Possible Causes
Related records are not deleted or the number of records is not checked. This error code is reported when new records are added after the number of records has reached the maximum.
Solution
Similar to the error code 27787277.
Error Message
Another copy or paste operation is in progress.
Description
This error code is reported when a new copy or paste attempt is made before the previous one is completed.
Possible Causes
A large amount of data needs to be copied or pasted, which takes a long time. This error code is triggered when a new copy or paste attempt is made before the previous one is completed.
Solution
Similar to the error code 27787278.
Error Message
Replication is prohibited.
Description
This error code is reported when an attempt is made to copy data that cannot be copied.
Possible Causes
The data is read-only and cannot be copied.
Solution
Error Message
Excessive processing time for internal data.
Description
This error code is reported when the time spent in internal data processing exceeds the timeout.
Possible Causes
The data to be processed is large and consumes too much time.
Solution
You are advised to use asynchronous APIs instead of synchronous APIs when processing a large amount of data to prevent timeout errors.
Error Message
Settings already exist.
Description
This error code is reported when the global pasteable scope to be set already exists for your application.
Possible Causes
The global pasteable scope of the application already exists.
Solution
Error Message
Invalid destUri or file system error.
Description
This error code is reported when a file fails to be copied.
Possible Causes
Solution
Error Message
Failed to start progress.
Description
This error code is reported when the progress fails to be created using the default progress indicator. If no custom progress indicator is configured, the system automatically uses the default progress indicator. For details about how to customize the progress bar, see ProgressIndicator.
Possible Causes
The system thread is abnormal.
Solution
Check whether the pasting is successful.
Error Message
Progress exits abnormally.
Description
This error code is reported when progress reporting is abnormal using the default progress indicator. If no custom progress indicator is configured, the system uses the default progress indicator.
Possible Causes
System resources are insufficient, the UI thread is blocked, or the progress bar component is faulty.
Solution
Error Message
System error occurred during paste execution.
Description
This error code is reported when the data to be pasted fails to be obtained.
Possible Causes
It is caused by internal system errors, such as insufficient system resources, insufficient permissions, pasteboard service exceptions, incompatible data formats, and memory shortage.
Solution
Similar to the error code 12900003.
Error Message
Another copy or paste operation is in progress.
Description
This error code is reported when a new copy or paste attempt is made before the previous one is completed.
Possible Causes
The copy and paste APIs are both asynchronous APIs. If the data to be copied or pasted is in large amount, the time required may be long. New copy or paste operations can be performed only after the previous operations have been completed.
Solution
Similar to the error code 12900004.
Error Message
Replication is prohibited.
Description
This error code is reported when an attempt is made to copy data that cannot be copied.
Possible Causes
The data is read-only and cannot be copied.
Solution