1e41f4b71Sopenharmony_ci# Distributed KV Store Error Codes
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci> **NOTE**
4e41f4b71Sopenharmony_ci>
5e41f4b71Sopenharmony_ci> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci## 15100001 Subscription Count Reaches the Limit
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Error Message**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciOver max limits.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**Description**
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ciThe number of subscriptions or the number of opened result sets has reached the limit.
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci**Possible Causes**
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci1.  The number of subscriptions made through **on()** reaches 8.
20e41f4b71Sopenharmony_ci2.  The number of result sets opened by **getResultSet()** reaches 8.
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci**Solution**
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ci1. Cancel the subscriptions that are not required.
25e41f4b71Sopenharmony_ci2. Close the result sets that are no longer required.
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci## 15100002 Parameter Configuration Changes
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci**Error Message**
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ciOpen existed database with changed options.
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ci**Description**
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ciThe **options** configuration changes when **getKVStore()** is called to obtain a KV store.
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ci**Possible Causes**
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ciThe possible causes are as follows:
40e41f4b71Sopenharmony_ci1. An existing **storeId** is used to create a KV store.
41e41f4b71Sopenharmony_ci2. You want to change the **options** parameter of a KV store.
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ci**Solution**
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci1. When creating a KV store, do not use a duplicate **storeId**.
46e41f4b71Sopenharmony_ci2. 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.
47e41f4b71Sopenharmony_ci
48e41f4b71Sopenharmony_ci## 15100003 KV Store Corrupted
49e41f4b71Sopenharmony_ci
50e41f4b71Sopenharmony_ci**Error Message**
51e41f4b71Sopenharmony_ci
52e41f4b71Sopenharmony_ciDatabase corrupted.
53e41f4b71Sopenharmony_ci
54e41f4b71Sopenharmony_ci**Description**
55e41f4b71Sopenharmony_ci
56e41f4b71Sopenharmony_ciThe target KV store is corrupted.
57e41f4b71Sopenharmony_ci
58e41f4b71Sopenharmony_ci**Possible Causes**
59e41f4b71Sopenharmony_ci
60e41f4b71Sopenharmony_ciThe target KV store is corrupted.
61e41f4b71Sopenharmony_ci
62e41f4b71Sopenharmony_ci**Solution**
63e41f4b71Sopenharmony_ci
64e41f4b71Sopenharmony_ci1. Restore the KV store from a backup file.
65e41f4b71Sopenharmony_ci2. If no backup file is available, delete the corrupted KV store and create a new one.
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ci## 15100004 Failed to Find Data
68e41f4b71Sopenharmony_ci
69e41f4b71Sopenharmony_ci**Error Message**
70e41f4b71Sopenharmony_ci
71e41f4b71Sopenharmony_ciNot found.
72e41f4b71Sopenharmony_ci
73e41f4b71Sopenharmony_ci**Description**
74e41f4b71Sopenharmony_ci
75e41f4b71Sopenharmony_ciRelated data is not found when **deleteKVStore()**, **sync()**, or **get()** is called.
76e41f4b71Sopenharmony_ci
77e41f4b71Sopenharmony_ci**Possible Causes**
78e41f4b71Sopenharmony_ci
79e41f4b71Sopenharmony_ciThe possible causes are as follows:
80e41f4b71Sopenharmony_ci1. The KV store to delete does not exist or has been deleted.
81e41f4b71Sopenharmony_ci2. The data queried does not exist or has been deleted.
82e41f4b71Sopenharmony_ci3. The KV store specified for the data sync operation does not exist or has been deleted.
83e41f4b71Sopenharmony_ci
84e41f4b71Sopenharmony_ci**Solution**
85e41f4b71Sopenharmony_ci
86e41f4b71Sopenharmony_ci1. Before deleting a KV store, check that the KV store exists.
87e41f4b71Sopenharmony_ci2. When querying data in a KV store, check whether the query keywords are correct.
88e41f4b71Sopenharmony_ci3. Before synchronizing data, check that the related KV store is available.
89e41f4b71Sopenharmony_ci
90e41f4b71Sopenharmony_ci## 15100005 KV Store or Result Set Closed
91e41f4b71Sopenharmony_ci
92e41f4b71Sopenharmony_ci**Error Message**
93e41f4b71Sopenharmony_ci
94e41f4b71Sopenharmony_ciDatabase or result set already closed.
95e41f4b71Sopenharmony_ci
96e41f4b71Sopenharmony_ci**Description**
97e41f4b71Sopenharmony_ci
98e41f4b71Sopenharmony_ciThe KV store or result set to operate is already closed.
99e41f4b71Sopenharmony_ci
100e41f4b71Sopenharmony_ci**Possible Causes**
101e41f4b71Sopenharmony_ci
102e41f4b71Sopenharmony_ciThe KV store or result set is closed manually before the operation.
103e41f4b71Sopenharmony_ci
104e41f4b71Sopenharmony_ci**Solution**
105e41f4b71Sopenharmony_ci
106e41f4b71Sopenharmony_ci1. Obtain the KV store and try again.
107e41f4b71Sopenharmony_ci2. Obtain the result set and try again.
108