• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Distributed KV Store 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## 15100001 Subscription Count Reaches the Limit
8
9**Error Message**
10
11Over max subscribe limits.
12
13**Description**
14
15The number of subscriptions has reached the limit for **on('dataChange')**.
16
17**Possible Causes**
18
19The number of subscriptions has reached the limit for **on('dataChange')**.
20
21**Solution**
22
23Unregister unnecessary subscriptions and try again.
24
25## 15100002 Parameter Configuration Changes
26
27**Error Message**
28
29Open existed database with changed options.
30
31**Description**
32
33The **options** configuration changes when **getKVStore()** is called to obtain a KV store.
34
35**Possible Causes**
36
37The possible causes are as follows:
381. An existing **storeId** is used to create a KV store.
392. You want to change the **options** parameter of a KV store.
40
41**Solution**
42
431. When creating a KV store, do not use a duplicate **storeId**.
442. Currently, the **options** parameter of a KV store cannot be changed. To apply the change, delete the KV store and create a KV store with the required **options** settings.
45
46## 15100003 KV Store Corrupted
47
48**Error Message**
49
50Database corrupted.
51
52**Description**
53
54The target KV store is corrupted.
55
56**Possible Causes**
57
58The target KV store is corrupted.
59
60**Solution**
61
621. Restore the KV store from a backup file.
632. If no backup file is available, delete the corrupted KV store and create a new one.
64
65## 15100004 Failed to Find Data
66
67**Error Message**
68
69Not found.
70
71**Description**
72
73Related data is not found when **deleteKVStore()**, **sync()**, or **get()** is called.
74
75**Possible Causes**
76
77The possible causes are as follows:
781. The KV store to delete does not exist or has been deleted.
792. The data queried does not exist or has been deleted.
803. The KV store specified for the data synchronization operation does not exist or has been deleted.
81
82**Solution**
83
841. Before deleting a KV store, check that the KV store exists.
852. When querying data in a KV store, check whether the query keywords are correct.
863. Before synchronizing data, check that the related KV store is available.
87
88## 15100005 KV Store or Result Set Closed
89
90**Error Message**
91
92Database or result set already closed.
93
94**Description**
95
96The KV store or result set to operate is already closed.
97
98**Possible Causes**
99
100The KV store or result set is closed manually before the operation.
101
102**Solution**
103
1041. Obtain the KV store and try again.
1052. Obtain the result set and try again.
106