diff --git a/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts b/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts index 10fd0ed6bc..faed623a15 100644 --- a/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts +++ b/packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts @@ -146,7 +146,9 @@ export class ImportService { // map column id's with new created column id's for (const col of table.columns) { const colRef = modelData.columns.find( - (a) => sanitizeColumnName(a.column_name) === col.column_name, + (a) => + a.column_name && + sanitizeColumnName(a.column_name) === col.column_name, ); idMap.set(colRef.id, col.id);