Remove whitespace on header columns for CSV import #7736

Closed
opened 2025-12-29 20:27:39 +01:00 by adam · 0 comments
Owner

Originally created by @duckw on GitHub (Mar 8, 2023).

Originally assigned to: @kkthxbye-code, @jeremystretch on GitHub.

NetBox version

v3.4.5

Feature type

New functionality

Proposed functionality

When performing a CSV import, whitespace on the column headers will cause that field to not import. I propose the trimming of whitespace on each of the column headers.

Use case

This avoids the chances of inadvertent missing data on import, which can happen for users particularly when exporting direct from spreadsheet applications and importing directly into NetBox and not carefully checking the header does not contain erroneous whitespace first in a text editor.

Database changes

Nil.

External dependencies

Nil.

Originally created by @duckw on GitHub (Mar 8, 2023). Originally assigned to: @kkthxbye-code, @jeremystretch on GitHub. ### NetBox version v3.4.5 ### Feature type New functionality ### Proposed functionality When performing a CSV import, whitespace on the column headers will cause that field to not import. I propose the trimming of whitespace on each of the column headers. ### Use case This avoids the chances of inadvertent missing data on import, which can happen for users particularly when exporting direct from spreadsheet applications and importing directly into NetBox and not carefully checking the header does not contain erroneous whitespace first in a text editor. ### Database changes Nil. ### External dependencies Nil.
adam added the status: acceptedtype: feature labels 2025-12-29 20:27:39 +01:00
adam closed this issue 2025-12-29 20:27:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7736