• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RDB Error Codes
2
3> **NOTE**
4>
5> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](errorcode-universal.md).
6
7##  14800000 Internal Error
8
9**Error Message**
10
11Inner error.
12
13**Description**
14
15An error occurs at the underlying database.
16
17**Possible Causes**
18
19Invalid SQL statement is passed in.
20
21**Solution**
22
23Determine the cause of the error based on the log information.
24
25## 14800010 Invalid RDB Name
26
27**Error Message**
28
29Failed to open or delete database by invalid database path.
30
31**Description**
32
33The RDB store name is invalid.
34
35**Possible Causes**
36
37The RDB store path is invalid.
38
39**Solution**
40
41Check the RDB store path.
42
43## 14800011 Database File Corrupted
44
45**Error Message**
46
47Failed to open database by database corrupted.
48
49**Description**
50
51The RDB store is corrupted when an API for adding, deleting, querying, or synchronizing data is invoked.
52
53**Possible Causes**
54
55The RDB store file has been corrupted.
56
57**Solution**
58
591. Restore the RDB store using the backup file.
602. If no RDB backup file is available, delete the RDB store and create it again.
61
62## 14800012 Empty Result Set or Invalid Position
63
64**Error Message**
65
66The result set is empty or the specified location is invalid.
67
68**Description**
69
70The result set is empty or the specified location is invalid.
71
72**Possible Causes**
73
74The result set is empty, or the specified row number in the result set is out of range [0, m - 1]. **m** is **resultsetV9.rowCount**.
75
76**Solution**
77
78Check whether the result set is empty or whether the specified row number is out of range.
79
80## 14800013 Null Column Value or Column Data Type Incompatible With the API Called
81
82**Error Message**
83
84The column value is null or the column type is incompatible.
85
86**Description**
87
88The column value is null, or the column data type is incompatible with the API called.
89
90**Possible Causes**
91
921. The result set is empty.
932. The current row number in the result set is out of range [0, m - 1]. **m** is **resultsetV9.rowCount**.
943. The column number is out of the range [0, n - 1]. **n** is **resultsetV9.columnCount**.
954. The API called does not support the type of the column data.
96
97**Solution**
98
991. Check whether the result set is empty.
1002. Check whether the row number and column number of the result set are out of range.
1013. Check whether the column data type is supported.
102
103## 14800047 WAL File Size Exceeds the Default Limit
104
105**Error Message**
106
107The WAL file size exceeds the default limit.
108
109**Description**
110
111The WAL file size exceeds 200 MB, which is the default limit.
112
113**Possible Causes**
114
115Data is added, deleted, and modified continuously without closing the read transaction or result set.
116
117**Solution**
118
1191. Check for unclosed result sets or transactions.
120
1212. Close all result sets or transactions.
122
123## 14800050 Failed to Obtain the Subscription Service
124
125**Error Message**
126
127Failed to obtain subscription service.
128
129**Description**
130
131The error code is returned when the subscription service failed to be obtained.
132
133**Possible Causes**
134
135The platform does not support service subscription.
136
137**Solution**
138
139Deploy the subscription service on the platform.
140
141## 14801001 Stage Model Required
142
143**Error Message**
144
145 Only supported in stage mode.
146
147**Description**
148
149This operation can be performed only on the stage model.
150
151**Possible Causes**
152
153The context is not a stage model.
154
155**Solution**
156
157Perform the operation on the stage model.
158
159## 14801002 Invalid dataGroupId in storeConfig
160
161**Error Message**
162
163The data group id is not valid.
164
165**Description**
166
167The **dataGroupId** parameter is invalid.
168
169**Possible Causes**
170
171The **dataGroupId** is not obtained from the AppGallery.
172
173**Solution**
174
175Obtain **dataGroupId** from the AppGallery and pass it to **storeConfig** correctly.
176
177## 14800051 Inconsistent Distributed Table Type
178
179**Error Message**
180
181The type of the distributed table does not match.
182
183**Description**
184
185Different distributed table types are set for the same database table.
186
187**Possible Causes**
188
189The database table is set with different [distributed table types](../apis/js-apis-data-relationalStore.md#distributedtype10).
190
191**Solution**
192
193A database table can be synchronized either between devices or between device and cloud.
194