D1 wrangler import [ERROR] {"D1_RESET_DO":true}
I am using the wrangler command to insert records into my D1 database but I am getting following response:
š File already uploaded. Processing.
š Starting import...
š Processed 35468 queries.
š Processed 72704 queries.
š Processed 110145 queries.
ā [ERROR] {"D1_RESET_DO":true}
Any idea?
2 Replies
Seems like it was caused by a unique constraint, would be helpful to get a better error message š
yeaa it's been brought up before to the d1 team that import doesn't have great errors. The team is active in #d1-database or could make a workers-sdk issue. There's a few open for import issues & a docs warning about foreign key constraints but looks like none strictly related to that