1e41f4b71Sopenharmony_ci# Upload and Download 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## 13400001 File Operation Error 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Error Message** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciFile operation error. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Description** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThis error code is reported when a file operation error occurs in invoking the **uploadFile** or **downloadFile** API. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci**Possible Causes** 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ciThe file permission is insufficient. 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci**Solution** 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ciMake sure you have the required permission on the target files. 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci## 13400002 File Path Error 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci**Error Message** 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ciBad file path. 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci**Description** 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ciThis error code is reported when a file path error occurs in invoking the **uploadFile** or **downloadFile** API. 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci**Possible Causes** 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ciThe file path is incorrect or the file already exists in the path. 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_ci**Solution** 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ciVerify the file path. 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ci## 13400003 Service Error 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci**Error Message** 46e41f4b71Sopenharmony_ci 47e41f4b71Sopenharmony_ciTask service ability error. 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ci**Description** 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_ciThis error code is reported when a task manager service error occurs in invoking the **downloadFile** API. 52e41f4b71Sopenharmony_ci 53e41f4b71Sopenharmony_ci**Possible Causes** 54e41f4b71Sopenharmony_ci 55e41f4b71Sopenharmony_ciThe task fails to be created. 56e41f4b71Sopenharmony_ci 57e41f4b71Sopenharmony_ci**Solution** 58e41f4b71Sopenharmony_ci 59e41f4b71Sopenharmony_ciVerify the task settings. 60e41f4b71Sopenharmony_ci 61e41f4b71Sopenharmony_ci## 13499999 Other Error 62e41f4b71Sopenharmony_ci 63e41f4b71Sopenharmony_ci**Error Message** 64e41f4b71Sopenharmony_ci 65e41f4b71Sopenharmony_ciother error. 66e41f4b71Sopenharmony_ci 67e41f4b71Sopenharmony_ci**Description** 68e41f4b71Sopenharmony_ci 69e41f4b71Sopenharmony_ciThis error code is reported when a special error occurs in invoking the **uploadFile** or **downloadFile** API. 70e41f4b71Sopenharmony_ci 71e41f4b71Sopenharmony_ci**Possible Causes** 72e41f4b71Sopenharmony_ci 73e41f4b71Sopenharmony_ciThe task fails to be created. 74e41f4b71Sopenharmony_ci 75e41f4b71Sopenharmony_ci**Solution** 76e41f4b71Sopenharmony_ci 77e41f4b71Sopenharmony_ciVerify the task settings. 78e41f4b71Sopenharmony_ci 79e41f4b71Sopenharmony_ci 80e41f4b71Sopenharmony_ci## 21900004 Application Task Queue Full 81e41f4b71Sopenharmony_ci 82e41f4b71Sopenharmony_ci**Error Message** 83e41f4b71Sopenharmony_ci 84e41f4b71Sopenharmony_ciapplication task queue full error. 85e41f4b71Sopenharmony_ci 86e41f4b71Sopenharmony_ci**Description** 87e41f4b71Sopenharmony_ci 88e41f4b71Sopenharmony_ciThis error code is reported when the application task queue is full. 89e41f4b71Sopenharmony_ci 90e41f4b71Sopenharmony_ci**Possible Causes** 91e41f4b71Sopenharmony_ci 92e41f4b71Sopenharmony_ciThe application fails to create a background task (resources are preempted by foreground tasks, where no task queue is involved). 93e41f4b71Sopenharmony_ci 94e41f4b71Sopenharmony_ci**Solution** 95e41f4b71Sopenharmony_ci 96e41f4b71Sopenharmony_ci1. Obtain all background tasks of the application through the query API. 97e41f4b71Sopenharmony_ci 98e41f4b71Sopenharmony_ci2. Proactively remove tasks not needed to release the quota. 99e41f4b71Sopenharmony_ci 100e41f4b71Sopenharmony_ci3. Create a background task again. 101e41f4b71Sopenharmony_ci 102e41f4b71Sopenharmony_ci## 21900005 Task Mode Error 103e41f4b71Sopenharmony_ci 104e41f4b71Sopenharmony_ci**Error Message** 105e41f4b71Sopenharmony_ci 106e41f4b71Sopenharmony_citask mode error. 107e41f4b71Sopenharmony_ci 108e41f4b71Sopenharmony_ci**Description** 109e41f4b71Sopenharmony_ci 110e41f4b71Sopenharmony_ciThis error code is reported when a task mode error occurs. 111e41f4b71Sopenharmony_ci 112e41f4b71Sopenharmony_ci**Possible Causes** 113e41f4b71Sopenharmony_ci 114e41f4b71Sopenharmony_ciThe application attempts to create a foreground task when it is not running in the foreground. 115e41f4b71Sopenharmony_ci 116e41f4b71Sopenharmony_ci**Solution** 117e41f4b71Sopenharmony_ci 118e41f4b71Sopenharmony_ci1. Register and deregister an event listener for a foreground application. 119e41f4b71Sopenharmony_ci 120e41f4b71Sopenharmony_ci2. Follow the instructions in the API reference document. 121e41f4b71Sopenharmony_ci 122e41f4b71Sopenharmony_ci## 21900006 Task Not Found 123e41f4b71Sopenharmony_ci 124e41f4b71Sopenharmony_ci**Error Message** 125e41f4b71Sopenharmony_ci 126e41f4b71Sopenharmony_citask not found error. 127e41f4b71Sopenharmony_ci 128e41f4b71Sopenharmony_ci**Description** 129e41f4b71Sopenharmony_ci 130e41f4b71Sopenharmony_ciThis error code is reported when the task is not found. 131e41f4b71Sopenharmony_ci 132e41f4b71Sopenharmony_ci**Possible Causes** 133e41f4b71Sopenharmony_ci 134e41f4b71Sopenharmony_ciThe task to remove or query does not exist. 135e41f4b71Sopenharmony_ci 136e41f4b71Sopenharmony_ci**Solution** 137e41f4b71Sopenharmony_ci 138e41f4b71Sopenharmony_ci1. Query existing tasks through the query API. 139e41f4b71Sopenharmony_ci 140e41f4b71Sopenharmony_ci2. Check whether the target task exists. (The system periodically deletes junk tasks.) 141e41f4b71Sopenharmony_ci 142e41f4b71Sopenharmony_ci3. Verify the task ID and try again. 143e41f4b71Sopenharmony_ci 144e41f4b71Sopenharmony_ci## 21900007 Operation Not Supported in Current State 145e41f4b71Sopenharmony_ci 146e41f4b71Sopenharmony_ci**Error Message** 147e41f4b71Sopenharmony_ci 148e41f4b71Sopenharmony_citask state error. 149e41f4b71Sopenharmony_ci 150e41f4b71Sopenharmony_ci**Description** 151e41f4b71Sopenharmony_ci 152e41f4b71Sopenharmony_ciThis error code is reported when the operation performed is not supported. 153e41f4b71Sopenharmony_ci 154e41f4b71Sopenharmony_ci**Possible Causes** 155e41f4b71Sopenharmony_ci 156e41f4b71Sopenharmony_ci1. The task to start has been deleted. 157e41f4b71Sopenharmony_ci 158e41f4b71Sopenharmony_ci2. The task to start has not been initialized. 159e41f4b71Sopenharmony_ci 160e41f4b71Sopenharmony_ci3. The task to pause is not being executed. 161e41f4b71Sopenharmony_ci 162e41f4b71Sopenharmony_ci4. The task to resume is not paused. 163e41f4b71Sopenharmony_ci 164e41f4b71Sopenharmony_ci5. The task to stop is not being executed. 165e41f4b71Sopenharmony_ci 166e41f4b71Sopenharmony_ci**Solution** 167e41f4b71Sopenharmony_ci 168e41f4b71Sopenharmony_ci1. Check the task status. 169e41f4b71Sopenharmony_ci 170e41f4b71Sopenharmony_ci2. Perform the operation supported by the current task status. 171