This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Inner error.
Description
Internal error.
Possible Causes
View the error log to determine the cause of the error. Possible causes include the following:
Solution
Error Message
Invalid database path.
Description
The RDB store path is invalid.
Possible Causes
The RDB store path is invalid.
Solution
Check the RDB store path.
Error Message
Database corrupted.
Description
The RDB store is corrupted when an API for adding, deleting, querying, or synchronizing data is invoked.
Possible Causes
The RDB store file has been corrupted.
Solution
If data loss is acceptable, delete the RDB store and create a new one. Otherwise, restore the RDB store from the backup file. For details, see Database Backup and Restore.
Error Message
Row out of bounds.
Description
The result set is empty or the specified location is invalid.
Possible Causes
The result set is empty, or the specified row number in the result set is out of range [0, m - 1]. m is resultsetV9.rowCount.
Solution
Check whether the result set is empty or whether the specified row number is out of range.
Error Message
Column out of bounds.
Description
The column value is null, or the column data type is incompatible with the API called.
Possible Causes
Solution
Error Message
Already closed.
Description
The RDB store or result set is closed.
Possible Causes
close() is called to close the RDB store or result set, or the RDB store or result set fails to be opened.
Solution
Open the RDB store or obtain the result set.
Error Message
The database does not respond.
Description
The RDB store does not respond.
Possible Causes
A read, write, attach, or detach operation is being performed, and cannot be complete within the specified time (2s by default).
Solution
Error Message
The database is already attached.
Description
The RDB store alias already exists.
Possible Causes
The RDB store alias already exists.
Solution
Stop the attach operation or change the RDB store alias.
Error Message
Config changed.
Description
The key configuration of the RDB store has been modified.
Possible Causes
Key configuration, such as area, isEncrypt, and securityLevel, of the RDB store is changed.
Solution
Restore the original configuration if required. Otherwise, delete the old RDB store, use the new configuration to create a new RDB store, and import the data to the new RDB store.
Error Message
No data meets the condition.
Description
No data matching the search criteria is found.
Possible Causes
The SQL statement used for query is incorrect, or the data does not exist.
Solution
Use the correct query statement or add data.
Error Message
The SQL must be a query statement.
Description
The SQL statement used is not a query statement.
Possible Causes
The SQL statement used for query does not meet specifications.
Solution
Use SQL statements that comply with specifications.
Error Message
SQLite: Generic error.
Description
An SQLite generic error occurs.
Possible Causes
An SQL statement is executed to perform any of the following operations:
Solution
Analyze the SQL statement and identify the error.
Error Message
SQLite: Callback routine requested an abort.
Description
The asynchronous callback request is aborted.
Possible Causes
Solution
Check that the hook functions (callbacks) of SQLite are implemented correctly.
Error Message
SQLite: Access permission denied.
Description
SQLite access is denied.
Possible Causes
Solution
Error Message
SQLite: The database file is locked.
Description
The SQLite database file is locked.
Possible Causes
Solution
Error Message
SQLite: A table in the database is locked.
Description
An SQLite database table is locked.
Possible Causes
Solution
Error Message
SQLite: The database is out of memory.
Description
The database memory is insufficient.
Possible Causes
The data volume is too large or the memory allocated is insufficient.
Solution
Reduce the data volume or increase the memory allocated.
Error Message
SQLite: Attempt to write a readonly database.
Description
A write operation is invoked on a read-only database.
Possible Causes
Solution
Error Message
SQLite: Some kind of disk I/O error occurred.
Description
A disk I/O error occurs.
Possible Causes
The possible causes include the following:
Solution
Error Message
SQLite: The database is full.
Description
The SQLite database is full.
Possible Causes
The data volume is too large or the disk space is insufficient.
Solution
Reduce the data volume or increase the disk space.
Error Message
SQLite: Unable to open the database file.
Description
The database file fails to be opened.
Possible Causes
Solution
Error Message
SQLite: TEXT or BLOB exceeds size limit.
Description
The size of the text or BLOB exceeds the limit.
Possible Causes
Solution
Divide the query operation into multiple small queries, which process part of the data each time.
Error Message
SQLite: Abort due to constraint violation.
Description
The database operation violates the constraint rule and is aborted.
Possible Causes
Solution
Check whether the data to be inserted or updated violates the constraints.
Error Message
SQLite: Data type mismatch.
Description
The data types mismatch.
Possible Causes
Solution
Check the type of the data in the specified column in the SQL statement and ensure that the type of the data to be inserted, updated, or queried matches the data type of the column.
Error Message
SQLite: Library used incorrectly.
Description
The SQLite interface is used incorrectly.
Possible Causes
Solution
Error Message
The WAL file size exceeds the default limit.
Description
The WAL file exceeds 200 MB, which is the default limit.
Possible Causes
Data is added, deleted, and modified continuously without closing the read transaction or result set.
Solution
Check for unclosed result sets or transactions.
Close all result sets or transactions.
Error Message
Failed to obtain subscription service.
Description
The error code is returned when the subscription service failed to be obtained.
Possible Causes
The platform does not support service subscription.
Solution
Deploy the subscription service on the platform.
Error Message
Only supported in stage mode.
Description
This operation can be performed only on the stage model.
Possible Causes
The context is not a stage model.
Solution
Perform the operation on the stage model.
Error Message
The data group id is not valid.
Description
The dataGroupId parameter is invalid.
Possible Causes
The dataGroupId is not obtained from the AppGallery.
Solution
Obtain dataGroupId from the AppGallery and pass it to storeConfig correctly.
Error Message
The type of the distributed table does not match.
Description
Different distributed table types are set for the same database table.
Possible Causes
The same database table is set with different DistributedType.
Solution
A database table can be synchronized either between devices or between device and cloud.