Importing Packages

You can import a zip file containing metadata and I18N files (for translation purposes). After the import operation, you can view all the published elements (Package, Type, Extension, Uniquekey, and Attribute).

An import operation is similar to a deployment. It updates the administrative vault with the content of the metadata files.

Notes:

This task shows you how to:

Import Packages Using the Import Packages Command

You can import packages manually using the Import Packages command.

  1. From the sidebar, select Manage Packages.
  2. Click Import Package(s) .
  3. In the Import Package(s) panel, click Choose File to navigate to the zip file you want to import, and select it.

    Note: You can select more than one package to import.

  4. Click Import.

Result: The packages you imported as well as their content are now displayed in the List of Specialization and Deployment Packages window.

Import Packages Using a Shell Script

You can import packages using a shell script called CustoDataTool2. This script has the following arguments:

  • -user: specify the user if you are not the creator.
  • -password: enter the password.
  • -file: enter a zip name (mandatory).

Before you begin: The 3DSpace Index is up and running. Error code 52 when running the script indicates an issue with 3DSpace Index.
Open a command window and enter the following command: <intall_directory>/server/scripts/CustoDataTool2.sh - file on UNIX and CustoDataTool2.bat on Windows.
For example, to import /tmp/CustoPackage.zip using creator with the creatorPassword password, enter: CustoDataTool2.sh –password creatorPassword -file /tmp/CustoPackage.zip.

Troubleshooting

When the object attributes seem to be stuck in the Partially deployed status after the import operation, you can run the emxPackagesConfigurationOntologiesCleanUp script to resolve the mismatch between the Data Model Customization cache and the admin objects. For more information, see Troubleshooting Cache Mismatches.