This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Failed to create the in-memory database.
Description
This error code is reported if the in-memory database creation fails.
Possible Causes
The same session ID is set for another distributed data object.
Solution
Use genSessionId to generate a random sessionId, and avoid using the same sessionId as other distributed data objects.
Error Message
Parameter error.
Description
This error code is reported if the assetKey parameter is invalid. For example, the value is an empty string ("").
This error code is reported if the uri parameter is invalid. For example, the value is an empty string ("").
The uris parameter is invalid. For example, the uris array is empty or the number of elements in the array is greater than 50.
Possible Causes
The property name corresponding to the asset type in the distributed data object is invalid. For example, it is set to null, undefined, or '' (empty string).
The distributed URI required by the asset to be set is invalid. For example, it is set to null, undefined, or '' (empty string).
The uris array for storing the asset to be set is empty or the number of elements in the array is greater than 50.
One or more URIs in the uris array for storing the asset to be set are invalid. For example, they are set to null, undefined, or '' (empty string).
Solution
Define a correct property name, for example, 'file'.
Define a correct distributed URI, for example, "file://docs/storage/Users/username/tmp.txt".
Pass in correct distributed URIs in the uris array, with a valid count of [1, 50], for example, ["file://docs/storage/Users/username/tmp.txt", "file://com.example.demo/data/storage/el2/base/files/test.txt"].
Ensure that each URI in the uris array is a correct distributed path.
Error Message
The sessionId of the distributed object has been set.
Description
This error code is reported if sessionId of the distributed data object has been set.
Possible Causes
The sessionId has been set for the distributed data object.
Solution
Use setSessionId to cancel the existing sessionId and then set the asset or asset array.