1e41f4b71Sopenharmony_ci# Input Method Framework 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## 12800001 Package Manager Error 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Error Message** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciPackage manager error. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Description** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThis error code is reported when an API of the package manager, such as **getInputMethods** and **listCurrentInputMethodSubtype**, fails to be called to obtain information. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci**Possible Causes** 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ciThe package manager is not working correctly. 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci**Solution** 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ciNone 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci## 12800002 Input Method Engine Error 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci**Error Message** 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ciInput method engine error. 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci**Description** 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ciThis error code is reported when an input method API fails to be called. 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci**Possible Causes** 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ciThe input method process is suspended. 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_ci**Solution** 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ciCheck whether the input method process is running properly. For example, click the text input box in an application to check whether the input keyboard is displayed. 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ci## 12800003 Input Method Client Error 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci**Error Message** 46e41f4b71Sopenharmony_ci 47e41f4b71Sopenharmony_ciInput method client error. 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ci**Description** 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_ciThis error code is reported when the API for showing or hiding the keyboard fails to be called by a third-party application. 52e41f4b71Sopenharmony_ci 53e41f4b71Sopenharmony_ci**Possible Causes** 54e41f4b71Sopenharmony_ci 55e41f4b71Sopenharmony_ciThe input method is disconnected from the third-party application due to a service error with the application. 56e41f4b71Sopenharmony_ci 57e41f4b71Sopenharmony_ci**Solution** 58e41f4b71Sopenharmony_ci 59e41f4b71Sopenharmony_ciBind the input method to the third-party application again: Close the background process of the third-party application, start the application again, and touch a text input box. If the keyboard is displayed properly, the issue is resolved. 60e41f4b71Sopenharmony_ci 61e41f4b71Sopenharmony_ci## 12800004 Not an Input Method 62e41f4b71Sopenharmony_ci 63e41f4b71Sopenharmony_ci**Error Message** 64e41f4b71Sopenharmony_ci 65e41f4b71Sopenharmony_ciNot an input method extension. 66e41f4b71Sopenharmony_ci 67e41f4b71Sopenharmony_ci**Description** 68e41f4b71Sopenharmony_ci 69e41f4b71Sopenharmony_ciThis error code is reported when an API exclusive to input methods is called by an application of another type. 70e41f4b71Sopenharmony_ci 71e41f4b71Sopenharmony_ci**Possible Causes** 72e41f4b71Sopenharmony_ci 73e41f4b71Sopenharmony_ciAn API that can be called only by an input method is called by an application of another type. 74e41f4b71Sopenharmony_ci 75e41f4b71Sopenharmony_ci**Solution** 76e41f4b71Sopenharmony_ci 77e41f4b71Sopenharmony_ciCall the API only in an input method. 78e41f4b71Sopenharmony_ci 79e41f4b71Sopenharmony_ci## 12800005 Configuration Persistence Error 80e41f4b71Sopenharmony_ci 81e41f4b71Sopenharmony_ci**Error Message** 82e41f4b71Sopenharmony_ci 83e41f4b71Sopenharmony_ciConfiguration persisting error. 84e41f4b71Sopenharmony_ci 85e41f4b71Sopenharmony_ci**Description** 86e41f4b71Sopenharmony_ci 87e41f4b71Sopenharmony_ciThis error code is reported when the configuration fails to be saved during input method switching. 88e41f4b71Sopenharmony_ci 89e41f4b71Sopenharmony_ci**Possible Causes** 90e41f4b71Sopenharmony_ci 91e41f4b71Sopenharmony_ciAn exception occurs with the system parameter configuration module. 92e41f4b71Sopenharmony_ci 93e41f4b71Sopenharmony_ci**Solution** 94e41f4b71Sopenharmony_ci 95e41f4b71Sopenharmony_ciRun the **hdc shell param get persist.sys.default_ime** command to check the default input method parameters. If the parameters are displayed, the system parameter configuration module is working properly. In this case, restart the device and try again. 96e41f4b71Sopenharmony_ci 97e41f4b71Sopenharmony_ci## 12800006 Input Method Controller Error 98e41f4b71Sopenharmony_ci 99e41f4b71Sopenharmony_ci**Error Message** 100e41f4b71Sopenharmony_ci 101e41f4b71Sopenharmony_ciInput method controller error. 102e41f4b71Sopenharmony_ci 103e41f4b71Sopenharmony_ci**Description** 104e41f4b71Sopenharmony_ci 105e41f4b71Sopenharmony_ciThis error code is reported when the input method controller fails to be obtained. 106e41f4b71Sopenharmony_ci 107e41f4b71Sopenharmony_ci**Possible Causes** 108e41f4b71Sopenharmony_ci 109e41f4b71Sopenharmony_ciAn error occurs during invoking of the **getCotroller** API. 110e41f4b71Sopenharmony_ci 111e41f4b71Sopenharmony_ci**Solution** 112e41f4b71Sopenharmony_ci 113e41f4b71Sopenharmony_ciNone 114e41f4b71Sopenharmony_ci 115e41f4b71Sopenharmony_ci## 12800007 Input Method Setter Error 116e41f4b71Sopenharmony_ci 117e41f4b71Sopenharmony_ci**Error Message** 118e41f4b71Sopenharmony_ci 119e41f4b71Sopenharmony_ciInput method settings extension error. 120e41f4b71Sopenharmony_ci 121e41f4b71Sopenharmony_ci**Description** 122e41f4b71Sopenharmony_ci 123e41f4b71Sopenharmony_ciThis error code is reported when an **InputMethodSetting** instance fails to be obtained. 124e41f4b71Sopenharmony_ci 125e41f4b71Sopenharmony_ci**Possible Causes** 126e41f4b71Sopenharmony_ci 127e41f4b71Sopenharmony_ciAn error occurs during invoking of the **getSetting** API. 128e41f4b71Sopenharmony_ci 129e41f4b71Sopenharmony_ci**Solution** 130e41f4b71Sopenharmony_ci 131e41f4b71Sopenharmony_ciNone 132e41f4b71Sopenharmony_ci 133e41f4b71Sopenharmony_ci## 12800008 Input Method Manager Service Error 134e41f4b71Sopenharmony_ci 135e41f4b71Sopenharmony_ci**Error Message** 136e41f4b71Sopenharmony_ci 137e41f4b71Sopenharmony_ciInput method manager service error. 138e41f4b71Sopenharmony_ci 139e41f4b71Sopenharmony_ci**Description** 140e41f4b71Sopenharmony_ci 141e41f4b71Sopenharmony_ciThis error code is reported when an API of the [input method framework](js-apis-inputmethod.md) fails to be called. 142e41f4b71Sopenharmony_ci 143e41f4b71Sopenharmony_ci**Possible Causes** 144e41f4b71Sopenharmony_ci 145e41f4b71Sopenharmony_ciThe input method manager service fails to be obtained. 146e41f4b71Sopenharmony_ci 147e41f4b71Sopenharmony_ci**Solution** 148e41f4b71Sopenharmony_ci 149e41f4b71Sopenharmony_ciRun the **ps -A|grep inputmethod** command to check for the process ID of the input method service. If the process ID is found, the service is working properly. 150e41f4b71Sopenharmony_ci 151e41f4b71Sopenharmony_ci## 12800009 Input Method Client Detached 152e41f4b71Sopenharmony_ci 153e41f4b71Sopenharmony_ci**Error Message** 154e41f4b71Sopenharmony_ci 155e41f4b71Sopenharmony_ciInput method client is detached. 156e41f4b71Sopenharmony_ci 157e41f4b71Sopenharmony_ci**Description** 158e41f4b71Sopenharmony_ci 159e41f4b71Sopenharmony_ciThis error code is reported when the current application is not attached to an input method. 160e41f4b71Sopenharmony_ci 161e41f4b71Sopenharmony_ci**Possible Causes** 162e41f4b71Sopenharmony_ci 163e41f4b71Sopenharmony_ciThe current application calls **showTextInput** or **hideTextInput** when not attached to an input method. 164e41f4b71Sopenharmony_ci 165e41f4b71Sopenharmony_ci**Solution** 166e41f4b71Sopenharmony_ci 167e41f4b71Sopenharmony_ciCall the **attach** API and then try again. 168e41f4b71Sopenharmony_ci 169e41f4b71Sopenharmony_ci## 12800010 Not Preconfigured Default Input Method 170e41f4b71Sopenharmony_ci 171e41f4b71Sopenharmony_ci**Error Message** 172e41f4b71Sopenharmony_ci 173e41f4b71Sopenharmony_ciNot default input method configured by system. 174e41f4b71Sopenharmony_ci 175e41f4b71Sopenharmony_ci**Description** 176e41f4b71Sopenharmony_ci 177e41f4b71Sopenharmony_ciThis error code is reported when the invoking application is not the preconfigured default input method. 178e41f4b71Sopenharmony_ci 179e41f4b71Sopenharmony_ci**Possible Causes** 180e41f4b71Sopenharmony_ci 181e41f4b71Sopenharmony_ciThe API is called by an application other than the preconfigured default input method. 182e41f4b71Sopenharmony_ci 183e41f4b71Sopenharmony_ci**Solution** 184e41f4b71Sopenharmony_ci 185e41f4b71Sopenharmony_ciUse [getDefaultInputMethod](js-apis-inputmethod.md#inputmethodgetdefaultinputmethod11) to query the default input method of the system and determine whether the application uses the default input method. If the application does not use the default input method, this API cannot be called. 186e41f4b71Sopenharmony_ci 187e41f4b71Sopenharmony_ci## 12800011 Text Preview Not Supported 188e41f4b71Sopenharmony_ci 189e41f4b71Sopenharmony_ci**Error Message** 190e41f4b71Sopenharmony_ci 191e41f4b71Sopenharmony_ciText preview is not supported. 192e41f4b71Sopenharmony_ci 193e41f4b71Sopenharmony_ci**Description** 194e41f4b71Sopenharmony_ci 195e41f4b71Sopenharmony_ciPreview of the text input box is not supported. 196e41f4b71Sopenharmony_ci 197e41f4b71Sopenharmony_ci**Possible Causes** 198e41f4b71Sopenharmony_ci 199e41f4b71Sopenharmony_ciPreview of the text input box is not supported. 200e41f4b71Sopenharmony_ci 201e41f4b71Sopenharmony_ci**Solution** 202e41f4b71Sopenharmony_ci 203e41f4b71Sopenharmony_ciUse [getEditorAttributeSync](js-apis-inputmethodengine.md#geteditorattributesync10) to obtain the value of **isTextPreviewSupported** of [EditorAttribute](js-apis-inputmethodengine.md#editorattribute). If **isTextPreviewSupported** is **false**, this API cannot be called. 204e41f4b71Sopenharmony_ci 205e41f4b71Sopenharmony_ci## 12800012 Soft Keyboard Panel Not Created 206e41f4b71Sopenharmony_ci 207e41f4b71Sopenharmony_ci**Error Message** 208e41f4b71Sopenharmony_ci 209e41f4b71Sopenharmony_ciInput method panel doesn't exist. 210e41f4b71Sopenharmony_ci 211e41f4b71Sopenharmony_ci**Description** 212e41f4b71Sopenharmony_ci 213e41f4b71Sopenharmony_ciThe input method panel of the soft keyboard type is not created. 214e41f4b71Sopenharmony_ci 215e41f4b71Sopenharmony_ci**Possible Causes** 216e41f4b71Sopenharmony_ci 217e41f4b71Sopenharmony_ciThe input method panel of the soft keyboard type is not created. 218e41f4b71Sopenharmony_ci 219e41f4b71Sopenharmony_ci**Solution** 220e41f4b71Sopenharmony_ci 221e41f4b71Sopenharmony_ciUse [createPanel](js-apis-inputmethodengine.md#createpanel10) to create a [panel](js-apis-inputmethodengine.md#panel10) of the [soft keyboard type](js-apis-inputmethodengine.md#paneltype10). 222e41f4b71Sopenharmony_ci 223e41f4b71Sopenharmony_ci## 12800013 Window Manager Service Error 224e41f4b71Sopenharmony_ci 225e41f4b71Sopenharmony_ci**Error Message** 226e41f4b71Sopenharmony_ci 227e41f4b71Sopenharmony_ciWindow manager service error. 228e41f4b71Sopenharmony_ci 229e41f4b71Sopenharmony_ci**Description** 230e41f4b71Sopenharmony_ci 231e41f4b71Sopenharmony_ciThe window manager service is not running properly. 232e41f4b71Sopenharmony_ci 233e41f4b71Sopenharmony_ci**Possible Causes** 234e41f4b71Sopenharmony_ci 235e41f4b71Sopenharmony_ciAfter the API is called, the system uses the capabilities of the window manager module. This error is thrown due to an error of the window manager service. 236e41f4b71Sopenharmony_ci 237e41f4b71Sopenharmony_ci**Solution** 238e41f4b71Sopenharmony_ci 239e41f4b71Sopenharmony_ciRestart the device and try again. 240