erquhartE
Convex Community2y ago
3 replies
erquhart

Import fails on storage invalid id

This is occurring with convex@1.11.2

- I have dev and prod deployments running the same convex code
- dev deployment has all tables cleared and no files in storage
- I create a prod export that includes files via cli:
npx convex export --prod --include-file-storage --path convex-prod.zip

- I import the resulting file:
npx convex import --replace -y convex-prod.zip

- CLI output:
Interrupting `npx convex import` will not cancel it.
✖ Importing data from "convex-prod.zip" failed
Hit an error while importing:
_storage entry has invalid ID 3g1btk77mppw2sq1z71rppc99ne3mmg (TableNumber(28) != TableNumber(540))


If I do all of the above, but leave off --include-file-storage in the export command, everything works fine.
Was this page helpful?