1e41f4b71Sopenharmony_ci# UiTest 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## 17000001 Initialization Failure
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Error Message**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciInitialization failed.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**Description**
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ciThis error code is reported when the framework fails to be initialized.
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci**Possible Causes**
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ciThe accessibility service cannot be accessed.
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci**Solution**
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ciRun the **param set persist.ace.testmode.enabled 1** command and restart the device.
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci## 17000002 Unable to Call the API
26e41f4b71Sopenharmony_ci**Error Message**
27e41f4b71Sopenharmony_ci
28e41f4b71Sopenharmony_ciThe async function is not called with await.
29e41f4b71Sopenharmony_ci
30e41f4b71Sopenharmony_ci**Description**
31e41f4b71Sopenharmony_ci
32e41f4b71Sopenharmony_ciThe API is not called asynchronously.
33e41f4b71Sopenharmony_ci
34e41f4b71Sopenharmony_ci**Possible Causes**
35e41f4b71Sopenharmony_ci
36e41f4b71Sopenharmony_ciThe API was not called using **await**.
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_ci**Solution**
39e41f4b71Sopenharmony_ci
40e41f4b71Sopenharmony_ciCheck test cases and make sure asynchronous APIs are called using **await**.
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_ci## 17000003 Assertion Failure
43e41f4b71Sopenharmony_ci**Error Message**
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ciAssertion failed.
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ci**Description**
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ciThis error code is reported when the user assertion fails.
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ci**Possible Causes**
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ciThe component that the user asserts to exist does not exist.
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ci**Solution**
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ciCheck the existence of the component that is asserted to exist.
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ci## 17000004 Target Component/Window Lost
60e41f4b71Sopenharmony_ci**Error Message**
61e41f4b71Sopenharmony_ci
62e41f4b71Sopenharmony_ciThe window or component is invisible or destroyed.
63e41f4b71Sopenharmony_ci
64e41f4b71Sopenharmony_ci**Description**
65e41f4b71Sopenharmony_ci
66e41f4b71Sopenharmony_ciThis error code is reported when the target component or window is lost and cannot be operated.
67e41f4b71Sopenharmony_ci
68e41f4b71Sopenharmony_ci**Possible Causes**
69e41f4b71Sopenharmony_ci
70e41f4b71Sopenharmony_ciAfter the target component or window is obtained, the page changes. As a result, the target component or window is lost.
71e41f4b71Sopenharmony_ci
72e41f4b71Sopenharmony_ci**Solution**
73e41f4b71Sopenharmony_ci
74e41f4b71Sopenharmony_ciCheck whether the loss is caused by page changes.
75e41f4b71Sopenharmony_ci
76e41f4b71Sopenharmony_ci## 17000005 Operation Not Supported
77e41f4b71Sopenharmony_ci**Error Message**
78e41f4b71Sopenharmony_ci
79e41f4b71Sopenharmony_ciThis operation is not supported.
80e41f4b71Sopenharmony_ci
81e41f4b71Sopenharmony_ci**Description**
82e41f4b71Sopenharmony_ci
83e41f4b71Sopenharmony_ciThis error code is reported when the performed operation is not supported by the UI object.
84e41f4b71Sopenharmony_ci
85e41f4b71Sopenharmony_ci**Possible Causes**
86e41f4b71Sopenharmony_ci
87e41f4b71Sopenharmony_ciThe component or window attribute does not support the performed operation.
88e41f4b71Sopenharmony_ci
89e41f4b71Sopenharmony_ci**Solution**
90e41f4b71Sopenharmony_ci
91e41f4b71Sopenharmony_ciMake sure the operation to perform is supported by the component or window attribute.
92