Recover a failed import
Currently, a recovery package is only created during an import when the source and target environment have a different version of Content Hub.
If an import fails, you can use a recovery package generated during the import and restore your environment using the Sitecore Content Hub CLI.
To recover a failed import:
-
Locate the job ID either on the Recent processes page or on the Background processes page.
-
Optionally, to find the failed job using the CLI, you can execute the following command:
RequestResponsech-cli jobs list -f Import -
To obtain the backup order ID required for recovery, execute:
RequestResponsech-cli jobs report --id <IMPORT_JOB_ID> -
To download the recovery package associated with the failed import, execute:
RequestResponsech-cli orders fetch --id <BACKUP_ORDER_ID> -
To restore the tenant using the recovery package, execute:
RequestResponsech-cli system import -s "<URL_FROM_FETCH_OR_LOCAL_PATH_TO_PACKAGE>" -
To verify that the recovery process has completed successfully, execute:
RequestResponsech-cli jobs status --id <JOB_ID>
Best practices
Follow these best practices to ensure a safe and successful recovery:
-
Review error messages in the simulation summary report before proceeding.
-
Always use the correct CLI context and ensure you have the necessary permissions.
-
Do not skip steps—restoring from an incorrect package or skipping the recovery import can worsen tenant issues.
-
Monitor the import job until it completes to ensure successful recovery.