# Importing storage locations from a CSV: feedback on the file format

**URL:** <https://talk.openelis-global.org/t/importing-storage-locations-from-a-csv-feedback-on-the-file-format/2513>\
**Category:** Development\
**Created:** [December 3, 2026, 2:56am UTC](https://talk.openelis-global.org/t/importing-storage-locations-from-a-csv-feedback-on-the-file-format/2513 "2026-12-03T02:56:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avanishkasar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/avanishkasar/32/1369_2.png) [@avanishkasar](https://talk.openelis-global.org/u/avanishkasar)\
**Post date:** [December 3, 2026, 2:56am UTC](https://talk.openelis-global.org/t/importing-storage-locations-from-a-csv-feedback-on-the-file-format/2513/1 "2026-12-03T02:56:33Z")

</div>

Hi all,

Setting up storage today means creating every room, device, shelf, rack and box one at a time in Storage Management. For a lab with a few freezers that’s hundreds of clicks, so I’ve been working on importing them from a file ([Import storage locations · Issue #3243 · DIGI-UW/OpenELIS-Global-2 · GitHub](https://github.com/DIGI-UW/OpenELIS-Global-2/issues/3243)). The backend is up for review in [feat(storage): import storage locations from a CSV (backend, #3243) by avanishkasar · Pull Request #5371 · DIGI-UW/OpenELIS-Global-2 · GitHub](https://github.com/DIGI-UW/OpenELIS-Global-2/pull/5371), and I’d like to check the format with people who set up real labs before I build the screen for it.

How it works now:

- One CSV row per storage path. The columns are room, room\_code, device, device\_code, device\_type, shelf, rack, rack\_code, box, box\_code, box\_rows and box\_columns. A row can stop at any level, so a room with one fridge and no shelves is fine.
- Each level is matched by name under its parent. If it’s already there it’s reused, otherwise it’s created with the same checks the add forms use.
- device\_type is freezer, refrigerator, cabinet or other. Codes are optional, and a blank one is generated from the name. Box codes are required.
- Freezers and fridges come in without temperature monitoring. That still gets set up on the device afterwards.
- Every upload is checked first. You get a list of what would be created and an error for each bad row, and nothing is saved until the whole file is clean. Then you run it again for real.
- Admins only, up to 5000 rows, with a template you can download.

A few things I’m not sure about:

1. Do your existing location lists keep anything this doesn’t cover, like temperature ranges or capacity?
2. Is CSV enough, or do you mostly keep these in Excel?
3. When a row names a location that already exists, it’s matched by name and left as it is, even if the file gives it a different code. Would you rather it update the existing one, or flag the difference?

Thanks!
