Impossible to import data exported #5598

Closed
opened 2025-12-29 19:29:57 +01:00 by adam · 3 comments
Owner

Originally created by @delattreb on GitHub (Nov 3, 2021).

NetBox version

3.0.3

Python version

3.7

Steps to Reproduce

  1. Export an object. Option All data
  2. Modify name to import another data Example Name: SiteN1 -> SiteN2
  3. import the csv file
  4. Error: Unexpected column header "Name" found
  5. If I rename all column name in lower case the final error is an error server

Expected Behavior

By example: export a custom field data

You obtain a cvs file:
Name,Content types,Label,Type,Required,Description,Choices,Weight,Default,Filter logic
Contact Phone 2,DCIM > site,,Text,False,Téléphone secondaire du contact,[],99,,Loose

Then when you try to import this file you obtain this error:
Unexpected column header "Name" found.

Observed Behavior

Unexpected column header "Name" found

Originally created by @delattreb on GitHub (Nov 3, 2021). ### NetBox version 3.0.3 ### Python version 3.7 ### Steps to Reproduce 1. Export an object. Option All data 2. Modify name to import another data Example Name: SiteN1 -> SiteN2 3. import the csv file 4. Error: Unexpected column header "Name" found 5. If I rename all column name in lower case the final error is an error server ### Expected Behavior By example: export a custom field data You obtain a cvs file: Name,Content types,Label,Type,Required,Description,Choices,Weight,Default,Filter logic Contact Phone 2,DCIM > site,,Text,False,Téléphone secondaire du contact,[],99,,Loose Then when you try to import this file you obtain this error: Unexpected column header "Name" found. ### Observed Behavior Unexpected column header "Name" found
adam closed this issue 2025-12-29 19:29:58 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 3, 2021):

This is expected behavior. The import data must conform to the prescribed format, which often differs from the default export format for various reasons, depending on the model.

@jeremystretch commented on GitHub (Nov 3, 2021): This is expected behavior. The import data must conform to the prescribed format, which often differs from the default export format for various reasons, depending on the model.
Author
Owner

@jeremystretch commented on GitHub (Nov 3, 2021):

Do you see the CSV import form? Scroll down. There's a complete list of the supported fields. Your import data must match this.

@jeremystretch commented on GitHub (Nov 3, 2021): Do you see the CSV import form? Scroll down. There's a complete list of the supported fields. Your import data must match this.
Author
Owner

@michaelmcdonald commented on GitHub (Dec 2, 2021):

Why does the system export data in a format that it cannot then immediately import?

@michaelmcdonald commented on GitHub (Dec 2, 2021): Why does the system export data in a format that it cannot then immediately import?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5598