This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
The bindSheetContent is incorrect.
Description
This error code is reported when the input parameter bindSheetContent is incorrect. Ensure that bindSheetContent provides valid content node definition (for the value rules, see the bindSheetContent parameter description in the corresponding API document).
Possible Causes
bindSheetContent is empty or its type does not meet the requirements.
Solution
Error Message
The bindSheetContent already exists.
Description
This error code is reported in the following scenario: When calling sheet-related APIs such as bindSheet, the half-modal page corresponding to the content node already exists.
Possible Causes
The modal corresponding to the provided bindSheetContent is already displayed.
Solution
To open the modal corresponding to the same bindSheetContent, close the currently displayed modal and then open it again.
Error Message
The bindSheetContent cannot be found.
Description
This error code is reported when an API is called to close or update the modal that is not open.
Possible Causes
The half-modal page corresponding to the content node is not currently displayed. If an API is called to close or update the half-modal page at this time, this error code is reported. You must open the half-modal page before calling the close or update API.
Solution
Ensure that the half-modal page corresponding to the content node is already open before calling the close or update API, and check whether the input bindSheetContent exists and has been correctly registered.
Error Message
The targetId does not exist.
Description
This error code is reported when the corresponding node cannot be found through targetId, because targetId is not a valid non-negative node identifier and its corresponding node is not in a valid lifecycle.
Possible Causes
targetId is invalid (The value must be a non-negative integer), or its corresponding node has been destroyed.
Solution
Error Message
The node of targetId is not in the component tree.
Description
This error code is reported when the node specified by targetId is not mounted on the component tree if the half-modal page mode is set to EMBEDDED mode.
Possible Causes
When the EMBEDDED mode is specified for the modal, the node corresponding to the specified targetId is not mounted to the component tree.
Solution
Wait until the node specified by targetId is mounted on the tree before calling the API, or set SheetMode to OVERLAY. The EMBEDDED mode requires that the node specified by targetId be mounted on the node tree and be a child node of a page node or NavDestination node; the OVERLAY mode has no such restriction.