JulesJ
Convex Community7mo ago
5 replies
Jules

Value of table-specific varint in `_id` diverges in local development deployment

Hi, we would like to get local development deployments working for our repository in order to easily spawn background agents.

I have created an import script that uses
npx convex import
to import a JSONL file to a table, and this works well for copying over data from production into development.

However, when I create a local development deployment using
npx convex dev --local
, I notice that the first characters of
_id
in a table is different than in the same table in cloud prod/dev. This is causing the
npx convex import
command to raise an error, because it detects mismatching
_id
formats.

Is this a bug, or is it intended behavior? If the latter, does that mean that you can't import documents from prod/dev into local development while retaining document system fields?
Was this page helpful?