1# Resource Manager 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## 9001001 Invalid Resource ID
8
9**Error Message**
10
11Invalid resource ID.
12
13**Description**
14
15This error code is reported if the specified resId meets the type requirement but the **resId** does not exist.
16
17**Possible Causes**
18
19The specified **resId** does not exist.
20
21**Solution**
22
23Check whether the specified **resId** exists.
24
25## 9001002 Matching Resource Not Found Based on the Specified Resource ID
26
27**Error Message**
28
29No matching resource is found based on the resource ID.
30
31**Description**
32
33This error code is reported if the specified **resId** meets the type requirement but no resource is found based on the **resId**.
34
35**Possible Causes**
36
371. The specified **resId** is incorrect.
38
392. Resource parsing is incorrect.
40
41**Solution**
42
43Check whether the specified **resId** is correct.
44
45## 9001003 Invalid Resource Name
46
47**Error Message**
48
49Invalid resource name.
50
51**Description**
52
53This error code is reported if the specified **resName** meets the type requirement but the **resName** does not exist.
54
55**Possible Causes**
56
57The specified **resName** does not exist.
58
59**Solution**
60
61Check whether the specified **resName** is correct.
62
63## 9001004 Matching Resource Not Found Based on the Specified Resource Name
64
65**Error Message**
66
67No matching resource is found based on the resource name.
68
69**Description**
70
71This error code is reported if the specified resId meets the type requirement but no resource is found based on the **resId**.
72
73**Possible Causes**
74
751. The specified **resName** is incorrect.
76
772. Resource parsing is incorrect.
78
79**Solution**
80
81Check whether the specified **resName** is correct.
82
83## 9001005 Invalid Relative Path
84
85**Error Message**
86
87Invalid relative path.
88
89**Description**
90
91This error code is reported if no resource is found based on the specified relative path.
92
93**Possible Causes**
94
95The specified relative path is incorrect.
96
97**Solution**
98
99Check whether the specified relative path is correct.
100
101## 9001006 Cyclic Reference
102
103**Error Message**
104
105The resource is referenced cyclically.
106
107**Description**
108
109This error code is reported if resources are referenced cyclically.
110
111**Possible Causes**
112
113Resources are referenced cyclically.
114
115**Solution**
116
117Check the reference of resource $, and remove the cyclic reference, if any.
118
119## 9001007 Failed to Format the Resource Obtained Based on resId
120
121**Error Message**
122
123Failed to format the resource obtained based on the resource ID.
124
125**Description**
126
127This error code is reported in the case of a failure to format the string resource obtained based on **resId**.
128
129**Possible Causes**
130
1311. The parameter type is not supported.
132
1332. The numbers of parameters and placeholders are inconsistent.
134
1353. The parameter does not match the placeholder type.
136
137**Solution**
138
139Check whether the number and type of **args** parameters are the same as those of placeholders.
140
141## 9001008 Failed to Format the Resource Obtained Based on resName
142
143**Error Message**
144
145Failed to format the resource obtained based on the resource Name.
146
147**Description**
148
149This error code is reported in the case of a failure to format the string resource obtained based on **resName**.
150
151**Possible Causes**
152
1531. The parameter type is not supported.
154
1552. The numbers of parameters and placeholders are inconsistent.
156
1573. The parameter does not match the placeholder type.
158
159**Solution**
160
161Check whether the number and type of **args** parameters are the same as those of placeholders.
162
163## 9001009 Failed to Obtain a ResourceManager Object
164
165**Error Message**
166
167Failed to access the system resource.
168
169**Description**
170
171This error code is reported in the case of a failure to obtain a ResourceManager object.
172
173**Possible Causes**
174
175System resources are not loaded to the sandbox path of the application process.
176
177**Solution**
178
179Check whether the application process contains the sandbox path of system resources.
180
181## 9001010 Invalid Overlay Path
182
183**Error Message**
184
185Invalid overlay path.
186
187**Description**
188
189This error code is reported if the specified overlay path is invalid.
190
191**Possible Causes**
192
193The path does not exist or is not in the installation path of the application.
194
195**Solution**
196
197Check the location of the specified overlay path.
198