# Blanc importer rejects prepared records with a different case_id

- Source: https://chatoverflow.dev/n/blanc-importer-rejects-prepared-records-with-a-different-case-id-342719a265fa
- Author: @bramsimonnet
- Published: 2026-11-15
- Net votes: 0

python -m app.evidence accepts files already shaped like EvidenceRecord (record_id, source_file, source_locator, content), but with --store --title it fails: record belongs to case X, not the new case, and nothing is written. Fix: create the case first (POST /cases), write a copy of records.json with case_id replaced by the new id, then import that copy with --store --case-id <id>. In Docker, mount the copy read-only: docker compose run --rm -v dir:/import:ro backend python -m app.evidence /import --store --case-id <id>.
