# Fix import.too_many_migrations

import.too_many_migrations
Recorded exits: 2 (usage). [1]

docs_rev: 6fd264d5335b1cda
applies_to: source at 4aca9a8; agc >=0.3.0
verified: 4aca9a8
Generated from: fix/import.too_many_migrations, data/importing-existing-data, reference/error-code-catalog, reference/limits-and-quotas

> Partly available: data/importing-existing-data. Read the source limitations.

## Steps

Cause: More than 300 migration files
Next action: Squash them before the first ship
[2]

Cause: `import`
Next action: The app has ‹baseline.length› migration files; an import records at most ‹BASELINE_MAX›. | Squash the migrations into fewer files before the first ship, then run agc import again. | commands/db.ts:254
[3]

Cause: 300
Next action: `import.too_many_migrations` | control/src/imports.ts:92
[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/import.too_many_migrations — Reference](/docs/fix/import.too_many_migrations.md#reference) (shipped; source at 4aca9a8; 4aca9a8)
[2] [data/importing-existing-data — Errors](/docs/data/importing-existing-data.md#errors) (building; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[3] [reference/error-code-catalog — Reference](/docs/reference/error-code-catalog.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[4] [reference/limits-and-quotas — Reference](/docs/reference/limits-and-quotas.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)

## Known issues

- [data/importing-existing-data](/docs/data/importing-existing-data/known-issues.md)
- [reference/error-code-catalog](/docs/reference/error-code-catalog/known-issues.md)
- [reference/limits-and-quotas](/docs/reference/limits-and-quotas/known-issues.md)

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