1# Distributed Scheduler 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## 16600001 The system ability works abnormally. 8 9**Error Message** 10 11The system ability works abnormally. 12 13**Description** 14 15This error code is reported when the system ability is abnormal. 16 17**Possible Causes** 18 19The possible causes are as follows: 201. The DMS service is not started. 212. The **binder** object of DMS is not obtained. 223. Other services on which ability continuation depends are not started or the **binder** object is not obtained. 23 24**Solution** 25 26Try again later or restart the device. 27 28## 16600002 The specified token or callback is not registered. 29 30**Description** 31 32This error code is reported if the token or callback used in an API of **continuationManager** is not registered when the API is called. 33 34**Error Message** 35 36The specified token or callback is not registered. 37 38**Possible Causes** 39 40The specified token or callback is not registered. 41 42**Solution** 43 44Register the token or callback before calling the API. 45 46## 16600003 The number of token registration times has reached the upper limit. 47 48**Description** 49 50This error code is reported when the number of times that the **continuationManager.registerContinuation** API is called has reached the upper limit. 51 52**Error Message** 53 54The number of token registration times has reached the upper limit. 55 56**Possible Causes** 57 58The number of token registration times has reached the upper limit. 59 60**Solution** 61 62Use a registered token. Do not register the token too frequently. 63 64## 16600004 The specified callback has been registered. 65 66**Description** 67 68This error code is reported when the **continuationManager.on** API is called with a callback the same as a previous one. 69 70**Error Message** 71 72The specified callback has been registered. 73 74**Possible Causes** 75 76The same callback is used for repeated registration. 77 78**Solution** 79 80Use a different callback for registration. 81 82## 16300501 The system ability works abnormally. 83 84**Description** 85 86This error code is reported when the system ability is abnormal. 87 88**Error Message** 89 90The system ability works abnormally. 91 92**Possible Causes** 93 94The possible causes are as follows: 951. The DMS service is not started. 962. The **binder** object of DMS is not obtained. 973. Other services on which ability continuation depends are not started or the **binder** object is not obtained. 98 99**Solution** 100 101Try again later or restart the device. 102 103## 16300502 Failed to get the missionInfo of the specified missionId. 104 105**Description** 106 107This error code is reported when calling the **distributedMissionManager.continueMission** API fails. 108 109**Error Message** 110 111Failed to get the missionInfo of the specified missionId. 112 113**Possible Causes** 114 115The possible causes are as follows: 1161. The mission ID is incorrect. 1172. The mission information corresponding to the mission ID does not exist. 118 119**Solution** 120 121Verify the mission ID. 122 123## 16300503 The application is not installed on the remote end and installation-free is not supported. 124 125**Description** 126 127This error code is reported if the application is not installed on the remote end and the installation-free feature is not supported when the **distributedMissionManager.continueMission** API is called. 128 129**Error Message** 130 131The application is not installed on the remote end and installation-free is not supported. 132 133**Possible Causes** 134 135The application to continue is not installed on the remote end, and the installation-free feature is not supported. 136 137**Solution** 138 1391. Check whether the application has been installed on the remote end. 1402. Check whether the remote end supports installation-free. 141 142## 16300504 The application is not installed on the remote end and installation-free is supported. Try again with the freeInstall flag. 143 144**Description** 145 146This error code is reported if the application is not installed on the remote end and installation-free is supported when the **distributedMissionManager.continueMission** API is called. 147 148**Error Message** 149 150The application is not installed on the remote end and installation-free is supported. Try again with the freeInstall flag. 151 152**Possible Causes** 153 154The application to continue is not installed on the remote end, and installation-free is supported. However, the **freeInstall** flag is not carried. 155 156**Solution** 157 158Try again with the **freeInstall** flag. 159 160## 16300505 The operation device must be the device where the application to be continued is currently located or the target device. 161 162**Description** 163 164This error code is reported if the operation device is not the device where the application to be continued is currently located (source device) or the target device when the **distributedMissionManager.continueMission** API is called. 165 166**Error Message** 167 168The operation device must be the device where the application to be continued is currently located or the target device. 169 170**Possible Causes** 171 172The operation device is not the source or target device. 173 174**Solution** 175 176Use the source or target device for the operation. 177 178## 16300506 The local continuation task is already in progress. 179 180**Description** 181 182This error code is reported if the local continuation task is in progress when the **distributedMissionManager.continueMission** API is called. 183 184**Error Message** 185 186The local continuation task is already in progress. 187 188**Possible Causes** 189 190The continuation task has been initiated and is not complete yet. 191 192**Solution** 193 194Wait until the continuation task is complete. 195 196## 3 Failed to flatten the object. 197 198**Description** 199 200This error code is reported if the system parameter **DMS_PROXY_INTERFACE_TOKEN** fails flattening when an API of **continuationManager** is called. 201 202**Error Message** 203 204Failed to flatten the object. 205 206**Possible Causes** 207 208The system parameter **DMS_PROXY_INTERFACE_TOKEN** fails to be written in serialization. 209 210**Solution** 211 212Make sure the system functions properly. Restart the system when needed. 213 214## 7 The object is null. 215 216**Error Message** 217 218The object is null. 219 220**Description** 221 222This error code is reported if DMS and other objects are empty or reading in serialization fails when an API of **continuationManager** is called. 223 224**Possible Causes** 225 226The possible causes are as follows: 2271. Reading the input parameters in serialization fails. 2282. The DMS service is not started or the **binder** object is not obtained. 2293. Other services on which DMS depends are not started or the **binder** object is not obtained. 230 231**Solution** 232 2331. Check whether the input parameters are valid. 2342. Check whether the DMS service is started normally. Restart the service or device when needed. 2353. Check whether other services on which DMS depends are started normally. Restart the services or device when needed. 236 237## 29360207 The number of registrations has reached the upper limit. 238 239**Description** 240 241This error code is reported when the number of times that the **continuationManager.register** API is called exceeds the upper limit. 242 243**Error Message** 244 245The number of registrations has reached the upper limit. 246 247**Possible Causes** 248 249The number of device registration times has reached the upper limit. 250 251**Solution** 252 253Restart the service and avoid frequent registration. 254 255## 29360208 The token is not registered. 256 257**Description** 258 259This error code is reported when an API of **continuationManager** is called with an unregistered token. 260 261**Error Message** 262 263The token is not registered. 264 265**Possible Causes** 266 267The token is not registered. 268 269**Solution** 270 271Register a token and use it in the API. 272 273## 29360209 The callback has been registered. 274 275**Description** 276 277This error code is reported when the **continuationManager.on** API is called with a callback the same as a previous one. 278 279**Error Message** 280 281The callback has been registered. 282 283**Possible Causes** 284 285The specified callback has been registered. 286 287**Solution** 288 289Do not use the same callback for repeated registration. 290 291## 29360210 The callback is not registered. 292 293**Description** 294 295This error code is reported when the **off**, **updateConnectStatus**, or **startDeviceManager** API of **continuationManager** is called with a callback that has been not registered by calling **on**. 296 297**Error Message** 298 299The callback is not registered. 300 301**Possible Causes** 302 303The specified callback is not registered. 304 305**Solution** 306 307Register a callback and use it in the API. 308 309## 29360211 Failed to connect to the ability. 310 311**Description** 312 313This error code is reported if connection to the specified ability fails when the **startDeviceManager** API of **continuationManager** is called. 314 315**Error Message** 316 317Failed to connect to the ability. 318 319**Possible Causes** 320 321The specified token is invalid or the target ability is not working properly. 322 323**Solution** 324 325Check whether the token is valid and whether the corresponding ability is normal. Restart the service or device when needed. 326 327## 29360214 The type of callback is not supported. 328 329**Description** 330 331This error code is reported when the **callback** parameter in the **on** or **off** API of **continuationManager** is set to an incorrect type. 332 333**Error Message** 334 335The type of callback is not supported. 336 337**Possible Causes** 338 339The callback type is not supported. 340 341**Solution** 342 343Pass a supported type for the **callback** parameter. 344 345## 29360215 Invalid connection state. 346 347**Description** 348 349This error code is reported when the **status** parameter in the **updateConnectStatus** API of **continuationManager** is invalid. 350 351**Error Message** 352 353Invalid connection state. 354 355**Possible Causes** 356 357The **status** parameter is invalid. 358 359**Solution** 360 361Use a valid value for the **status** parameter. 362 363## 29360216 Invalid continuation mode. 364 365**Error Message** 366 367Invalid continuation mode. 368 369**Description** 370 371This error code is reported when the **ContinuationExtraParams.continuationMode** parameter in the **register** or **startDeviceManager** API of **continuationManager** is invalid. 372 373**Possible Causes** 374 375The **ContinuationExtraParams.continuationMode** parameter is invalid. 376 377**Solution** 378 379Use a valid value for the **ContinuationExtraParams.continuationMode** parameter. 380