From 59f5efa91b6d028279ddca7d2185409a47ed5137 Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Wed, 16 Aug 2023 10:19:05 +0800 Subject: [PATCH] fixed ae2c3b5 from https://gitee.com/Annie_wang/docs_2/pulls/22339 update docs Signed-off-by: Annie_wang --- .../reference/errorcodes/errorcode-datashare.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/en/application-dev/reference/errorcodes/errorcode-datashare.md b/en/application-dev/reference/errorcodes/errorcode-datashare.md index 566ff62cb6..192b79dc39 100644 --- a/en/application-dev/reference/errorcodes/errorcode-datashare.md +++ b/en/application-dev/reference/errorcodes/errorcode-datashare.md @@ -18,17 +18,21 @@ The **DataShareHelper** class fails to be created. 1. The **uri** specified in **createDataHelper** is incorrect. 2. The **context** specified in **createDataHelper** is incorrect. **DataShare** supports only the stage model. +3. The client application does not have the permission to start **DataShareExtension** from the background when the client attempts to start **DataShareExtension** from the background to create **DataShareHelper**. **Solution** 1. Obtain the correct URI. 2. Check that the context of the stage model is used. +3. Check whether the client has the read or write permission on data. Perform the following steps: + (1) Obtain the data provider bundle name in the path of the URI. For example, the bundle name in uri = "datashareproxy://com.acts.ohos.data.datasharetest/test" is **com.acts.ohos.data.datasharetest**. + (2) Obtain the configuration based on the bundle name. For example, run **bm dump --bundle-name com.acts.ohos.data.datasharetest** to obtain the **DataShareExtension** configuration, and check whether the data consumer has **readPermission** or **writePermission**. ## 15700011 Failed to Add or Delete a Template **Error Message** -The uri is not exist. +The uri does not exist. **Description** @@ -47,11 +51,11 @@ Obtain the correct URI. **Error Message** -The data area is not exist. +The data area does not exist. **Description** -This error code is returned when a data update fails. +This error code is returned when a data update operaton fails. **Possible Causes** -- GitLab