You are here: System management > Service-enabled system management > Importing applications (service-enabled)

Importing archive files (service-enabled)

Use the prpcServiceUtils command-line tool to import an archive file containing an application, product, branch, or ruleset to one or multiple target systems.

You must have a running Pega 7 Platform instance to use the prpcServiceUtils tool.

Use the REST service URL to configure one or multiple targets to receive an imported archive file. This feature supports both synchronous and asynchronous imports.

You must have permissions to perform database changes and the archive file to import must be located on the client system. You can import multiple archive files into a system sequentially and you can use the expose feature to automate the provisioning of multiple applications.

To import an application, follow these steps:

  1. Configure the import properties:

    Property nameAction
    import.archive.path Enter the relative path to the archive from the \utils\ folder or the full path to the archive. If the path is a folder, the tool processes all archive files in that folder.
    import.mode Enter the import mode:
    • install: Import new instances. Do not import or update existing instances. The log file includes an exception message for each instance that already exists.
    • import: (Default) Update existing instances and remove duplicates. Use the import.existingInstances property to override this setting.
    • hotfix Update existing instances and remove duplicates. If the archive time stamp is older than the existing instance, either skip updating the instance or inserting the duplicate.
    import.existingInstances Specify how the import action handles existing instances:
    • override: Replace instances that already exist in different rulesets or versions.
    • skip: (Default) Skip instances that already exist in different rulesets or versions.
    import.nofailonerror

    Set to true to skip instances that fail to import and continue after an import failure. Set to false to stop the import if any import action fails.

    import.commitRateSpecify the number of data instances processed with each database commit to balance memory usage and performance. The default of 100 is sufficient for most environments.
    import.compileLibrariesSpecify whether to compile libraries after import. Default is true.
    import.allowImportWithMissingDependenciesSpecify whether to allow the import to continue even if the archive is dependent on missing products. Default is false.
    import.enable.defaultcontextSpecify whether to allow triggers for the Pega 7 Platform to run while performing command-line imports. Default is false. To allow triggers to run during imports, uncomment this property and set to true.
    import.codesetNameOptional: Enter the name of the code set to receive the Java .class files.
    import.codesetVersionOptional: Enter the code set version.
    import.async

    Specify whether to run the process in asynchronous mode and queue the jobs. Set to true (default) to return a job ID for each operation that you can use later to check the status.

    import.trackDataSpecify whether to import only data, that is, anything that is not in PegaRULES. When set to true, data, including DDL changes, is imported and tracked. Use the manage tracked data tool to commit or roll back tracked data.

  2. Save and close the prpcServiceUtils.properties file.
  3. Run the prpcServiceUtils.bat or prpcServiceUtils.sh script. For example:

    prpcServiceUtils.bat import