# Fix ship.migration_failed

ship.migration_failed
Recorded exits: 1. [1]

docs_rev: 6fd264d5335b1cda
applies_to: source at 4aca9a8; agc >=0.3.0
verified: 4aca9a8
Generated from: fix/ship.migration_failed, concepts/rehearsals, data/migrations, reference/error-code-catalog

## Steps

Cause: A migration failed on the fork
Next action: Fix the migration and ship again
[2]

Cause: The same on real values masking would have changed (lengths, uniqueness), plus the new code's smoke flows, so a migration that breaks the app's queries fails here
Next action: Check names and pass or fail. A failed check (including `no existing row was deleted`) exits 11 with `ship.check_failed`; a migration error exits 1 with `ship.migration_failed`. Production is unchanged either way
[3]

Cause: op
Next action: A migration failed on a branch of production: ‹e› | Production is unchanged. Fix the migration and ship again. | ship.ts:3049, ship.ts:3886 +1
[4]

## Errors

See the cited canonical pages for errors.

## Not available yet

Availability follows the cited sources; this answer does not establish additional capabilities.

## Sources

[1] [fix/ship.migration_failed — Reference](/docs/fix/ship.migration_failed.md#reference) (shipped; source at 4aca9a8; 4aca9a8)
[2] [concepts/rehearsals — Errors](/docs/concepts/rehearsals.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[3] [data/migrations — Testing against production data](/docs/data/migrations.md#testing-against-production-data) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[4] [reference/error-code-catalog — Reference](/docs/reference/error-code-catalog.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)

## Known issues

- [concepts/rehearsals](/docs/concepts/rehearsals/known-issues.md)
- [data/migrations](/docs/data/migrations/known-issues.md)
- [reference/error-code-catalog](/docs/reference/error-code-catalog/known-issues.md)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "fix/ship.migration_failed: <what is wrong>; error ship.migration_failed" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
