Bulk import and export valid and invalid mapping relationships
You can bulk import or export valid and invalid mapping relationships using Excel files. This method reduces manual effort and improves configuration efficiency. This topic describes how to bulk-manage these mapping relationships.
Permissions
Super administrators, data standard administrators, and data standard owners can bulk import valid and invalid mapping relationships for the data standards they own and view import record details.
All users can export mapping relationships and download the exported files.
Limitations
Bulk import and export are not supported for mapping relationships of data source tables.
Import mapping relationships
Valid mappings
On the Dataphin homepage, choose Governance > Data Standard in the top navigation bar.
In the left-side navigation pane, choose Implementation Assessment > Mapping Relationship. On the Mapping Relationship page, click the Valid Mappings tab.
On the valid mappings list page, click Bulk Import/Export in the upper-right corner and select Bulk Import Mapping Relationships.
In the Bulk Import Valid Mapping Relationships dialog box, configure the parameters.
Parameter
Description
Step 1: Download template
If you do not have a template, click the file name or the Download
icon to download the .xlsx file. If you already have a template, you can upload the configuration file directly.Step 2: Upload file
When you fill out the template, follow the specifications for each column. During the import, the system validates name uniqueness and input format.
Only single-sheet .xlsx files can be imported. If the file type is incorrect or if the file contains multiple sheets, the import fails. Modifying column names, reordering columns, or deleting columns causes a parsing failure, which prevents the import.
Title row: Displays column names and instructions. An asterisk (*) indicates a required field.
Asset Type: For in-domain assets, select a supported object type from the drop-down list: physical table, dimension logical table, fact logical table, summary logical table, physical view, logical view, or tag logical table. For externally registered assets, enter a custom asset type.
Storage Type: For in-domain assets, select the compute engine type of the current tenant. For global tables, select the source data source type. For externally registered assets, select Other.
Asset Name: Enter a custom name. For physical tables, physical views, real-time metatables, and mirrored tables, add the project name as a prefix. For logical tables and logical views, add the business segment name as a prefix. For externally registered tables, enter the GUID.
Object Type: Select an option from the drop-down list. For externally registered assets, select Other.
Object Name: Enter a custom name, such as a field name or metric name. For externally registered tables, enter the GUID.
Data Standard Code: Enter a custom code. The system identifies the data standard based on this code.
Data Standard Name: This field is optional and is not used to identify the data standard.
The system matches names case-insensitively, based on the case sensitivity settings of the asset's source system.
Step 3: Set update policy
If a mapping relationship from the import conflicts with an existing one in the Valid Mappings or Invalid Mappings list, the system applies the configured update policy.
If an object is already mapped to a standard in the valid mappings list, you can choose to Keep valid mappings and append the new mapping relationship.
If a mapping relationship from your upload already exists in the invalid mappings list, you can choose to Set invalid mappings to valid or Keep invalid mappings, skip update.
You can wait for the import to complete on the current page and view the detailed results, or you can close the dialog box and check the results later in Bulk Operation Records.
If any records fail to import, you can view the error messages in the import details and download the exception records. After correcting the issues based on the error messages, you can re-import the file. For records that are skipped due to the conflict resolution policy, the system also provides the reason they were skipped.
Parameter
Description
Import result
Displays the import progress and execution time.
Exception records
Displays mapping relationship records that failed validation and could not be imported. The details include the Row Number from the original file, Storage Type, Object, Standard Name, Standard Code, and an Error Message.
You can click Download Exception Records to download a file containing the original records. After correcting the issues based on the error messages, you can re-import the file.

Execution logs
You can view and copy the execution logs for the import process.
After the import is complete, you can close the import dialog box. This action does not stop the import task. You can later go to the valid mappings list and click Bulk Operation Records to view historical import records.
Invalid mappings
On the Dataphin homepage, choose Governance > Data Standard in the top navigation bar.
In the left-side navigation pane, choose Implementation Assessment > Mapping Relationship. On the Mapping Relationship page, click the Invalid Mappings tab.
On the Invalid Mappings list page, click Bulk Import/Export in the upper-right corner and select Bulk Import Invalid Mappings.
In the Bulk Import Invalid Mappings dialog box, configure the parameters.
Parameter
Description
Step 1: Download template
If you do not have a template, click the file name or the Download
icon to download the .xlsx file. If you already have a template, you can upload the configuration file directly.Step 2: Upload file
When you fill out the template, follow the specifications for each column. During the import, the system validates name uniqueness and input format.
Only single-sheet .xlsx files can be imported. If the file type is incorrect or if the file contains multiple sheets, the import fails. Modifying column names, reordering columns, or deleting columns causes a parsing failure, which prevents the import.
Title row: Displays column names and instructions. An asterisk (*) indicates a required field.
Asset Type: For in-domain assets, select a supported object type from the drop-down list: physical table, dimension logical table, fact logical table, summary logical table, physical view, logical view, or tag logical table. For externally registered assets, enter a custom asset type.
Storage Type: For in-domain assets, select the compute engine type of the current tenant. For global tables, select the source data source type. For externally registered assets, select Other.
Asset Name: Enter a custom name. For physical tables, physical views, real-time metatables, and mirrored tables, add the project name as a prefix. For logical tables and logical views, add the business segment name as a prefix. For externally registered tables, enter the GUID.
Object Type: Select an option from the drop-down list. For externally registered assets, select Other.
Object Name: Enter a custom name, such as a field name or metric name. For externally registered tables, enter the GUID.
Data Standard Code: Enter a custom code. The system identifies the data standard based on this code.
Data Standard Name: This field is optional and is not used to identify the data standard.
The system matches names case-insensitively, based on the case sensitivity settings of the asset's source system.
You can wait for the import to complete on the current page and view the detailed results, or you can close the dialog box and check the results later in Bulk Operation Records.
If any records fail to import, you can view the error messages in the import details and download the exception records. After correcting the issues based on the error messages, you can re-import the file. For records that are skipped, the system also provides the reason they were skipped.
Parameter
Description
Import result
Displays the import progress and execution time.
Exception records
Displays mapping relationship records that failed validation and could not be imported. The details include the Row Number from the original file, Object, Standard Name, Standard Code, and an Error Message.
You can click Download Exception Records to download a file containing the original records. After correcting the issues based on the error messages, you can re-import the file.

Execution logs
You can view and copy the execution logs for the import process.
After the import is complete, you can close the import dialog box. This action does not stop the import task. You can go to the invalid mappings list and click Bulk Operation Records to view historical import records.
Export mapping relationships
On the valid or invalid mappings list tab, click Bulk Import/Export in the upper-right corner and select Bulk Export Mapping Relationships.
In the Bulk Export Mapping Relationships dialog box, export the valid or invalid mapping relationships based on the selected export scope.
Export Scope: Select the scope of the valid or invalid mapping relationships to export. You can choose to export all relationships or filter them by data segment and project to export relationships for specific assets.
NoteYou must select at least one scope.
You can export a maximum of 1,000,000 mapping relationships at a time.
Click OK to export the valid or invalid mapping relationships. You can view the details of this export operation and download the file from Bulk Operation Records.
Bulk operation records
The system retains bulk import records for the last 30 days, up to a maximum of 1,000 records.
On the valid or invalid mappings list tab, click Bulk Import/Export in the upper-right corner and select Bulk Operation Records.
In the Bulk Operation Records for Mapping Relationships dialog box, view the records for import and export operations.
Bulk import: Displays the details of import operations, including a serial number, the creator, status, creation time, and end time. You can also click the View icon in the Actions column to view the import details.
Bulk export: Displays the details of export operations, including a serial number, the creator, status, export scope, creation time, and end time. You can also click the Download icon in the Actions column to download the exported file to your local machine.
NoteExported files for valid or invalid mapping relationships are stored for seven days and cannot be downloaded afterward.
You can download files only for operations with a Succeeded status.