-
-
Notifications
You must be signed in to change notification settings - Fork 471
Unable to import a CSV into an existing table with Primary Key (same file for testing) #5213
Copy link
Copy link
Open
Labels
needs: triageThis issue has not yet been reviewed by a maintainerThis issue has not yet been reviewed by a maintainertype: bug
Description
Description
Unable to import a CSV into an existing table with exactly the same structure (and even data).
This error pops up:
{"errors": "Unable to import data into existing table. null values cannot be formatted as an SQL identifier\nCONTEXT: PL/pgSQL function msar.prepare_temp_table_for_import(text,text[]) line 61 at assignment"}
Expected behavior
Expected the same file to be imported successfully, and with Primary Key values populated.
To Reproduce
- I created a table with "Create Table" -> "From Data Import" - autoincrement primary key.
- With successfully created table, tried to "Import Data" with the exact same file and getting a NULL error.
Environment
- Mathesar version: 0.9.0
- OS: Linux Mint
- Browser: Chrome
- Browser Version: 144.0.7559.133
Additional context

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs: triageThis issue has not yet been reviewed by a maintainerThis issue has not yet been reviewed by a maintainertype: bug