Updated on 2025-09-18 GMT+08:00

Exporting and Importing Scripts

Exporting Specified Scripts

You can export one or more script files from the script directory. The exported files store the latest content in the development state.

  1. Log in to the DataArts Studio console by following the instructions in Accessing the DataArts Studio Instance Console.
  2. On the DataArts Studio console, locate a workspace and click DataArts Factory.
  3. In the left navigation pane of DataArts Factory, choose Data Development > Develop Script.
  4. Click in the script directory and select Show Check Box.
  5. Select scripts, click , and select . After the export is successful, you can obtain the exported .zip file.
    Figure 1 Selecting and exporting specified scripts

  6. In the displayed Export Script dialog box, set Export Status and click OK.
    Figure 2 Exporting scripts

Exporting Workspace Scripts

The Export Workspace Script option is available only if Job/Script Change Management is enabled on the Default Configuration page.

You can export a file that contains changed scripts in the workspace. A maximum of 10,000 scripts can be exported.

  1. Log in to the DataArts Studio console by following the instructions in Accessing the DataArts Studio Instance Console.
  2. On the DataArts Studio console, locate a workspace and click DataArts Factory.
  3. In the left navigation pane of DataArts Factory, choose Data Development > Develop Script.
  4. Click and select Export Workspace Script. After the export is successful, you can obtain the exported .zip file.
    Figure 3 Selecting Export Workspace Script

  5. In the displayed Export Script dialog box, set Export Status and click OK.
    Figure 4 Exporting scripts

Importing Scripts

This function is available only if the OBS service is available. If OBS is unavailable, scripts can be imported from the local PC.

You can import one or more script files in the script directory. After a job is imported, the content in the development state is overwritten and a new version is automatically submitted.

  1. Log in to the DataArts Studio console by following the instructions in Accessing the DataArts Studio Instance Console.
  2. On the DataArts Studio console, locate a workspace and click DataArts Factory.
  3. In the left navigation pane of DataArts Factory, choose Data Development > Develop Script.
  4. Click and select Import Script. In the displayed dialog box, select the file to import and set Duplicate Name Policy and Import Status.

    If you select Overwrite for Duplicate Name Policy but the hard lock policy is used and the script is locked by another user, the overwriting will fail. For details about soft and hard lock policies, see Configuring the Hard and Soft Lock Policy.

    To import scripts from a workspace, enable the corresponding parameter described in Job/Script Change Management. The default value is No, and Import Workspace Script is not displayed.

    Figure 5 Importing scripts
  5. Click Next.