Extracting UC4 data to XML using an export script

This procedure describes how to export to XML many objects automatically using an export script. After exporting data, you can define a new conversion project.

Before you begin

Ensure the following:

To extract UC4 data to an XML file:

  1. Login to client 0 (Admin-Client).
  2. Open UC_SYSTEM_SETTINGS.
  3. Set the MAX_EXPORT_COUNT parameter to 1000000 (maximum).

    NOTE: A restart is not necessary.

  4. Save the object.
  5. Log in to the productive client(s) and type the following script:

    :SET &OBJECT# = "<object_name>"

    :SET &FILE# = "<file_name>"

    :SET &RET# = EXPORT(&OBJECT#,&FILE#)

    NOTE: Where you have large files, you can filter the type of objects you want to convert.

    For an example using the export script and the filter, see UC4 data extraction using export script example.

  6. (Optional) If you have multiple objects in one XML file, split the objects by running the SplitToSpecificObjectFiles.pl script which is located in the following directory:

    <Conversion home>\scripts\uc4

  7. After exporting data to XML, open the Conversion Tool and import the XML files, as described in Defining a new CA Automic (UC4) conversion project.

Parent Topic

CA Automic (UC4) data extraction