Notion database exports pack UTF-8 BOM headers, macOS NFD decomposed filenames, 32-character hex UUID suffixes, and arrow-delimited date ranges (2026-12-01 -> 2026-12-15) into CSV and Markdown bundles. Migrate-Anything parses them into typed SQLite tables with SHA-256 verification.
| Notion Quirk | Impact on Naive Importers | Migrate-Anything Fix |
|---|---|---|
| UTF-8 BOM + NFD Filenames | First CSV header gets \ufeff prefix and accented file links fail exact string lookup on Linux. |
Strips BOM via utf-8-sig and applies unicodedata.normalize("NFC", ...) across paths and keys. |
| Date Range Strings | "January 1, 2026 -> January 15, 2026" crashes standard ISO date parsers. |
Splits on " -> " into <col>_start_utc and <col>_end_utc ISO-8601 columns. |
| Relation Title vs UUID Loss | Summary CSVs drop the 32-hex page UUID, leaving only ambiguous display titles like "Project Alpha". |
Extracts the 32-hex UUID when URLs exist and emits ambiguous_relation_title_only_fk when absent. |
curl -sS -X POST https://migrate.fastmesh.dev/v1/migrate \
-H "Content-Type: application/json" \
-d '{
"source_format": "notion",
"target_format": "sqlite",
"table_name": "notion_roadmap",
"source_data": "---\ntitle: Step 1: Escape Notion Workspace\nstatus: In Progress\ntags: [\"Migration\", \"SQLite\"]\nwindow: 2026-12-01 -> 2026-12-15\n---\n# Notes\nLinked: [Runbook](Project-Alpha-8f1c9a0e2b3d4e5f6a7b8c9d0e1f2a3b.md)"
}'