Portal Community

When Rollback Occurs

Failure StageRollback Triggered?Note
Upload / Validation / Security ScanNoNo data was written — no rollback needed
Package Dependency CheckNoNo data was written
ID RemappingNoNo data was written (in-memory only)
Conflict DetectionNoNo data was written
Installation (any artifact fails)YesFull transaction rollback
Post-Install Verification (any check fails)YesFull transaction rollback

What is Rolled Back

All database writes performed during the installation stage are within a single transaction. A rollback undoes:

The target tenant's artifact database is left exactly as it was before the import began.

What is NOT Rolled Back

The following are not part of the transaction and are not rolled back:

Failure Response

HTTP 422 Unprocessable Entity
{
  "importId":   "imp-f9a2c1e8-...",
  "status":     "Failed",
  "stage":      "Installation",
  "error":      "ArtifactInstallFailed",
  "message":    "Failed to install AtlasForm 'EmployeeForm' (form-9104): field 'f3' has an invalid datasource configuration.",
  "rolledBack": true,
  "partialInstall": {
    "installedBeforeFailure": ["ent-2291", "rule-6612"],
    "failedAt": "form-9104"
  }
}

Diagnosing Failures

The failure response includes the stage and error code to help diagnose the problem. Common failure causes:

Error CodeCauseResolution
ArtifactInstallFailedThe artifact service rejected the artifact definitionInspect the artifact JSON for invalid configuration
BrokenReferenceA cross-reference could not be resolved after installationVerify all referenced artifacts are in the package
VerificationFailedPost-install check failedInspect the verification details in the response
TransactionTimeoutInstallation took longer than the transaction timeout (120s)Split large packages into smaller ones
DatabaseErrorUnexpected database error during installCheck database connectivity and retry

Retrying After Failure

After a rollback, the target tenant is clean — you can safely retry the import after fixing the issue. Common retry scenarios:

Idempotency Import is idempotent: importing the same package twice with the same conflict strategy produces the same result. A retry after rollback is safe.