Export CSV should be able to import with requiring modification #8719

Closed
opened 2025-12-29 20:40:20 +01:00 by adam · 2 comments
Owner

Originally created by @dionrowney on GitHub (Oct 5, 2023).

NetBox version

v3.6.1

Python version

3.9

Steps to Reproduce

  • Select Manufacters (or any other list view that only has CSV export)
  • Select Export CSV
  • Delete all Manufacturers
  • Select Import CSV
  • Data import fails with variety of errors relating to field names and field values

Expected Behavior

What is exported should be able to be imported without ANY modification to the file of data

Observed Behavior

It would error out and the following items had to be fixed in the text content of the csv file:

  • header displayed Label version of field name not the required field name
  • values with choices like "active" were "Active" with uppercase A and had to have the value changed to choice value not label value. And there was no way to export to determine what the correct value needed to be. so you could not export it, get the correct value for some selection.
Originally created by @dionrowney on GitHub (Oct 5, 2023). ### NetBox version v3.6.1 ### Python version 3.9 ### Steps to Reproduce - Select Manufacters (or any other list view that only has CSV export) - Select Export CSV - Delete all Manufacturers - Select Import CSV - Data import fails with variety of errors relating to field names and field values ### Expected Behavior What is exported should be able to be imported without ANY modification to the file of data ### Observed Behavior It would error out and the following items had to be fixed in the text content of the csv file: - header displayed Label version of field name not the required field name - values with choices like "active" were "Active" with uppercase A and had to have the value changed to choice value not label value. And there was no way to export to determine what the correct value needed to be. so you could not export it, get the correct value for some selection.
adam added the status: duplicate label 2025-12-29 20:40:20 +01:00
adam closed this issue 2025-12-29 20:40:21 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 5, 2023):

This has been discussed numerous times previously. Please use the search function before submitting new issues.

@jeremystretch commented on GitHub (Oct 5, 2023): This has been discussed numerous times previously. Please use the search function before submitting new issues.
Author
Owner

@dionrowney commented on GitHub (Oct 5, 2023):

I did try to search for it but was searching open issues. Apologies.

Please change this to a feature request then if you can.

It was a large annoyance to my staff and seems like something that would help with adoption and ease of use.

Maybe make yaml exports for everything for the machine readable export and CSV for the human readable (as I see the argument is)?

@dionrowney commented on GitHub (Oct 5, 2023): I did try to search for it but was searching open issues. Apologies. Please change this to a feature request then if you can. It was a large annoyance to my staff and seems like something that would help with adoption and ease of use. Maybe make yaml exports for everything for the machine readable export and CSV for the human readable (as I see the argument is)?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8719