-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export and Import Custom Fields #7772
Comments
I'm afraid this is not sufficient detail for a bug report. Please update your post above to include the exact data being used to reproduce the bug. |
ok, added some testdata. Exported file from Netbox Modified header column for manual import via input field - content is the same than from export - without ID on first position
edit i can also reproduce this case on https://demo.netbox.dev
|
The values you've provided for the content types are invalid. The export format uses human-friendly names (e.g. "DCIM > Site"), whereas the import format expects the "dotted" notation (e.g. |
Ok, that means we need to modify the complete export from System A if we would like to import on System B. This would therefore mean a huge effort for such a simple usecase. But if that's the way it's planned, so be it. Do you have a reference-docu for the import style, so that we can check the differences? |
There's a complete reference right on the import page.
You can very easily craft a custom export template to export custom fields in whatever format you'd like. |
Yes, but the information for dot-notation is missing - i only see a info-popup with numbers as reference for the paths - like
But this expect to be a template for a page to export datas - not the custom fields settings. I can't choose |
Ok, that's a bug. It should be listing the dotted formats for these choices. I've opened #7808.
Looks like that's actually another bug. Looks like we missed adding export template support when custom fields (and other models) were moved from the admin UI to the main UI in v3.0. I've opened #7809 for this one. Separate from the bugs above, I suppose what we could do is just change the "DCIM > Site" format to "dcim.site". It's not quite as clean, but having one consistent expression for each content type probably yields a better return. |
I've opened #7858 to address this application-wide. |
NetBox version
v3.0.9
Python version
3.9
Steps to Reproduce
Export
->All data
CSV File Upload
4.1 An error would occur, that the ID in the first line is not expected.
5.1 Modify title names to these which are given/listed on import page (all to lowercase, replace spaces with underscore)
CSV Data
input field and click onSubmit
Expected Behavior
The Custom fields will be imported without an error - in an optimal world without a need to modify the exported data.
Observed Behavior
On step 4 this error occurs (as a red popup):
If we only remove the ID in header and body, this error occurs at next (as a red popup)
And so on for each header column name from export.
On step 6 this error occurs via new
Server Error
page:The text was updated successfully, but these errors were encountered: