Preserve leading zeros in identifiers during a CSV update
Verify padded codes in the CSV, map them to a Text field, and check that the import updates the intended records.
Use a Text field when an identifier’s leading zeros matter. For example, a table may use 00042 and 42 for two different assets. The CSV preview can detect a numeric-looking column as a number, while an import into an existing table uses the type of the destination field.
Confirm the codes in the file and table
-
Open the saved CSV in a text editor and check a few identifiers. Verify that the file contains
00042where you expect it. If the zeros are missing, correct the export using the authoritative codes from the source. -
In the destination table, verify that the matching field is Text and that it contains the exact codes. If a current field stores the code as a number, ask a table manager to prepare a Text identifier field with the correct values before using it for matching.
Title,Asset code,Status note North pump,00042,Inspection complete West pump,42,Follow-up needed
Match the text identifiers and verify the updates
- Start the CSV import for the existing table. In Preview, check the original codes. In Mapping, match Asset code to the Text identifier field and check the other columns you are updating.
- Select Update existing + insert new (upsert) and select the identifier field under Identify records by. If you expect only updates, confirm all the codes already exist before starting the import. A code with no match can create a new record.
- Check the imported and updated row counts, then open the two records you expect the file to update. Confirm that each kept its exact code and received the intended value.
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy a question to get started
- How do I create a Kanban view?
- How do I invite a teammate?
- Why is a record missing from this view?