Failed to import Prod to Dev due to crons component validation
What I’m doing
Export from prod:
npx convex export --prod --path prod-data.zipImport into dev (empty DB):
npx convex import --replace-all prod-data.zipThe error
Even though my dev DB is empty, I get:
Hit an error while importing:
Failed to insert or update a document in table "crons" because it does not match the schema: Value does not match validator.At first I thought this was my own schema, but I tracked it down:
Path: .schedulerJobId
Value: "kc2358c11gms18ajcbsedrjgn57xxxxx"
Validator: v.id("_scheduled_functions")
this crons table and schedulerJobId field are coming from the crons component, not from any schema I control.
What I tried
To get around schema validation, I changed my
convex/schema.ts to:Then I ran npx convex dev / npx convex deploy for the dev deployment I’m importing into, and re-ran:
npx convex import --replace-all prod-data.zipBut I still see the same validation error mentioning:
Validator: v.id("_scheduled_functions")which suggests the deployment is still enforcing the
schedulerJobId: v.id("_scheduled_functions") validator from the crons component, even though I’ve set schemaValidation: false in defineSchema for this deployment. According to the docs, setting schemaValidation: false should skip runtime validation of inserts/updates against validators.Any help?
