目录

ArkTS API Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes. If the problem persists, submit a ticket online. Huawei will get back to you as soon as possible.

1020300001 System Service Exception

Message

System service exception.

Description

The system service of Space Exchange is abnormal.

Possible causes

The workspace ID is invalid, or the file processing type is unknown.

Solution

If a system service exception occurs, try again and submit a ticket online if necessary.

1020300002 Invalid Request Parameter

Message

Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed.

Description

Invalid request parameter for Space Exchange.

Possible causes

A mandatory parameter is left empty, the parameter type is incorrect, or the parameter verification fails.

Solution

Ensure that the parameters are set correctly.

1020400001 System Service Exception

Message

System service exception.

Description

The system service of workspace management is abnormal.

Possible causes

System services are busy, or the network is abnormal.

Solution

If a system service exception occurs, try again and submit a ticket online if necessary.

1020400002 Invalid Request Parameter

Message

Parameter error.

Description

Invalid request parameter for workspace management.

Possible causes

A mandatory parameter is left empty or the parameter type is incorrect.

Solution

Ensure that the parameters are set correctly.

1020400003 Invalid Workspace

Message

Invalid workspace.

Description

Invalid workspace.

Possible causes

  1. The workspace does not exist.

  2. The workspace type is not supported.

  3. The number of workspaces has reached the upper limit 2. No more workspaces can be created.

  4. The enterprise account does not exist.

Solution

  1. Check whether the workspace ID is correct.

  2. Check whether the workspace type is included in the enumerated values of WorkspaceType.

  3. Delete unnecessary workspaces before creating a new one.

  4. Check whether the current workspace is an enterprise workspace.

  5. Check whether the current workspace information meets the requirements based on the definition in WorkspaceInfo.

1020400004 Enterprise Authentication Failed

Message

Authentication failed.

Description

Account authentication failed.

Possible causes

  1. Enterprise authentication timed out.
  2. The authentication server does not exist.
  3. The authentication service is abnormal.

Solution

Check that the authentication server configuration is correct.

1020400005 Configuration Not Set

Message

Configuration not set.

Description

The configuration was not set.

Possible causes

During the query, it was found that the configuration had not been set. Common scenarios include:

  1. No workspace policy has been set.
  2. The cross-workspace message notification configuration has not been set.

Solution

Ensure that the related configuration is correctly set in the system.

1020400006 SA Process Exited Unexpectedly, Interrupting the Connection

Message

Session disconnected.

Description

The SA process exited unexpectedly, interrupting the connection.

Possible causes

An app subscribes to a workspace event, causing the process to exit abnormally.

Solution

Subscribe to the workspace event in the app again to restore the connection.

1020400007 Enterprise Workspace Not Enabled

Message

Enterprise workspace not enabled.

Description

The enterprise workspace is not enabled.

Possible causes

The enterprise administrator has not enabled the enterprise workspace function yet.

Solution

The enterprise administrator needs to enable the enterprise workspace and personal workspace function by calling enableWorkspace.

1020400008 Invalid Account Name or Password

Message

Invalid account name or password.

Description

Invalid account name or password.

Possible causes

The entered account name or password is incorrect during enterprise authentication.

Solution

Check that the entered enterprise account name and password are correct.

1020400009 Enterprise Account Locked

Message

The account is locked.

Description

The enterprise account is locked.

Possible causes

The account has been locked on the enterprise authentication server.

Solution

Wait until the enterprise authentication server automatically unlocks the account, or contact the enterprise administrator to manually unlock the account.

1020400010 Enterprise Authentication Server Unreachable

Message

Enterprise authentication server unreachable.

Description

The enterprise authentication server is unreachable.

Possible causes

  1. The network is not connected.
  2. The enterprise authentication server is abnormal.

Solution

  1. Ensure that the device and the enterprise authentication server are properly connected.
  2. Ensure that the enterprise authentication server is normal.

1020400011 Account Creation Prohibited

Message

Account creation is not permitted.

Description

Account creation is prohibited.

Possible causes

The enterprise administrator forbids account creation.

Solution

Enable account creation as the enterprise administrator.

1020400012 Full-Disk Encryption Not Enabled

Message

Full disk encryption is not enabled.

Description

Full-disk encryption is not enabled.

Possible causes

The enterprise administrator has disabled full-disk encryption.

Solution

Enable full-disk encryption as the enterprise administrator.

1020400014 Number of Cross-Workspace Message Notification Rules Exceeds the Upper Limit

Message

Configuration quantity exceeds the limit.

Description

The total number of cross-workspace message notification rules configured in the system has exceeded the upper limit (20).

Possible causes

When the enterprise administrator calls the setNotificationConfig API to add or update cross-workspace message notification rules, the total number of the rules exceeds the upper limit (20).

Solution

Delete unnecessary cross-workspace message notification rules.