Data Security Center (DSC) allows you to create de-identification tasks to de-identify and protect sensitive data in your data assets. This topic describes how to create and query de-identification tasks.
Prerequisites
Background information
- Compared with static de-identification, dynamic de-identification is more flexible and allows you to de-identify specified sensitive data. The size of sensitive data that can be dynamically de-identified at a time must be less than 2 MB. For more information about dynamic de-identification, see Perform dynamic de-identification.
- The static de-identification feature of DSC allows you to use de-identification algorithms to redact, encrypt, or substitute sensitive data detected in authorized data assets and store de-identified data in the location that you specify. For more information, see Supported data de-identification algorithms.
Note DSC allows you to perform static de-identification on OSS objects, ApsaraDB RDS tables,
MaxCompute tables, PolarDB tables, and ApsaraDB for OceanBase tables. For more information,
see Supported data assets.
Create a de-identification task
Specify a partition
Partition | Format | Example |
---|---|---|
N weeks after the specified date | Custom partition field=$[yyyymmdd+7*N] | time=$[20190710+7*1]. It indicates that the data generated in the week after July 10, 2019 is to be de-identified. |
N weeks before the specified date | Custom partition field=$[yyyymmdd-7*N] | time=$[20190710-7*3]. It indicates that the data generated in the three weeks before July 10, 2019 is to be de-identified. |
N days after the specified date | Custom partition field=$[yyyymmdd+N] | time=$[20190710+2]. It indicates that the data generated in the two days after July 10, 2019 is to be de-identified. |
N days before the specified date | Custom partition field=$[yyyymmdd-N] | time=$[20190710-5]. It indicates that the data generated in the five days before July 10, 2019 is to be de-identified. |
N hours after the specified time | Custom partition field=$[hh24mi:ss+N/24] | time=$[0924mi:ss+N/24]. It indicates that the data generated in the two hours after 09:00:00 in the 24-hour clock is to be de-identified. |
N hours before the specified time | Custom partition field=$[hh24mi:ss-N/24] | time=$[0924mi:ss-1/24]. It indicates that the data generated in the hour before 09:00:00 in the 24-hour clock is to be de-identified. |
N minutes after the specified time | Custom partition field=$[hh24mi:ss+N/24/60] | time=$[0924mi:ss+2/24/60]. It indicates that the data generated in the two minutes after 09:00:00 in the 24-hour clock is to be de-identified. |
N minutes before the specified time | Custom partition field=$[hh24mi:ss-N/24/60] | time=$[0924mi:ss-2/24/60]. It indicates that the data generated in the two minutes before 09:00:00 in the 24-hour clock is to be de-identified. |
Query de-identification tasks
On the Static Desensitization page, you can view the details of de-identification tasks that you create. In the
task list, click the ID of a de-identification task in the Task ID column to view the task details. 

To modify an existing de-identification task, enter the ID of the task in the search
box and click Desensitization Task Search. The de-identification task is displayed. Then, click Modify in the Actions column
to modify the de-identification task.

Troubleshoot failures to run de-identification tasks
Error message | Description |
---|---|
The desensitization task does not exist. The task may have been deleted or closed. | The error message returned because the de-identification task is deleted or disabled. If the switch in the Actions column is turned off for the de-identification task, the task is disabled. |
Incorrect recurrence configuration of the scheduled task. | The error message returned because the time specified for running the de-identification task daily is invalid. |
The desensitization source instance does not exist. | The error message returned because the instance that contains the source table does not exist. |
The desensitization target instance does not exist. | The error message returned because the instance is deleted or the permissions to access the instance are revoked. |
The desensitization source table does not exist. | The error message returned because the table is deleted or the permissions to access the instance that contains the table are revoked. |
Incorrect desensitization algorithm parameter. | The error message returned because the parameters of the de-identification algorithm are invalid. |
Empty source table list. | The error message returned because no data exists in the partition column of the source table. |
Failed to write data to the target table. | The error message returned because DSC fails to write data to the destination table that you specify. |
Failed to query the source table. | The error message returned because the specified data is not found in the source table. |
Failed to create the target table. | The error message returned because the destination table does not exist in the specified location. |
No primary key has been found. | The error message returned because the primary key is missing in the ApsaraDB RDS source table. |
Incorrect ODPS partition field configured for the task. | The error message returned because the specified source or destination partition is invalid when you create the de-identification task. |