You are here:
Export and Deploy Data Between Orgs (Managed Package)
For the managed package runtime, to export and deploy data from one org to another, use this process.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
-
Authorize with Salesforce CLI or create property files for each org.
build_source.propertiesandbuild_target.properties. -
Create a job file that identifies your project path and the queries for the data pack types
to export.
For example, to export Omnistudio data packs, create a job file like this:
projectPath: vlocity queries: - OmniScript - IntegrationProcedure - DataRaptor - FlexCard -
Run the export process.
vlocity -sfdx.username source_org@vlocity.com -job Platform.yaml packExportThe first time that you deploy data to this org, settings are automatically deployed. The process can take up to 30 seconds. You must rerun the process if settings change.
-
Evaluate any errors that you encounter during export.
Errors during export can cause errors during deployment. After errors are fixed, run this command to re-export any failed data:
vlocity -sfdx.username source_org@vlocity.com -job Platform.yaml packRetryIf your export process is interrupted due to connection issues, use this command to resume the export:
vlocity -sfdx.username source_org@vlocity.com -job Platform.yaml packContinue -
To check the exported data for potential issues, use this command:
vlocity -sfdx.username source_org@vlocity.com -job Platform.yaml validateLocalDataThe command provides a summary of duplicate and missing global keys. Use the argument
--fixLocalGlobalKeysto add missing keys and change duplicate keys.Note For best results, fix the data in the org. -
To run the deployment, use this command:
vlocity -sfdx.username target_org@vlocity.com -job Platform.yaml packDeploy -
If you encounter any errors during the deployment, evaluate whether an error was addressed
by later uploads of missing data.
To retry the failed data packs, run this command:
vlocity -sfdx.username target_org@vlocity.com -job Platform.yaml packRetryThis command often fixes errors that result from issues in the order of deployment or Salesforce governor limits.
Run this command until the error count stops going down after each run:
packRetry

