How do you preserve leading zeroes in library CSV files?

Treat member numbers, accession numbers and barcodes as text. Confirm the value at export and after opening the file, since a spreadsheet can interpret a digit-only identifier as a number.

Import the column as text

Open the data using the spreadsheet’s import controls and assign the identifier column a text type. Compare a value such as 004217 with the source. Check a long identifier as well as a short one.

Verify the outgoing file

Inspect the exported CSV in a plain text editor before importing it into your catalogue. If an identifier has changed, go back to the original file rather than guessing which zeros to add.

Related guide A checklist for migrating library records.