-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
"If I don't use the site column, it gets through but for my personal implementation the site is a key value" Sorry, I don't understand that. Every Rack must belong to a Site - as the error says. Please can you give a sample of the CSV you are trying to upload, with both the header row and one data row? |
Beta Was this translation helpful? Give feedback.
-
What i mean is that apparently is not a requirement, and if I delete that column, then all the racks that share the same name because they belong to different sites, when i import them it says they are duplicate (but with the site column there wouldn't be duplicate values) |
Beta Was this translation helpful? Give feedback.
-
Sorry, I still don't see the problem. If I import the following:
then Netbox gives me a Server Error and exception ("Rack has no site"). [Aside: it ought to report it properly, not with an exception] If I remove the site column completely, i.e.
then I get the same error. If have an existing rack called "test" in a site called "Test", then I try to import
then I still get the same error ("Rack has no site"). However if I try to import:
then I get a duplicate rack, i.e. another rack with name "test". Maybe that's what you're talking about? But that's not an issue with CSV upload: using the GUI, I can also create multiple racks all called "test" in the same site "Test". (Looking at the model code, there's no unique constraint on either name or facility_id - but there is on asset_tag) However, I cannot see how to import a rack without a site via CSV upload, which is what you seem to be saying you can do. |
Beta Was this translation helpful? Give feedback.
-
I found the issue. One of the sites was not created. I could import without issues. Thanks |
Beta Was this translation helpful? Give feedback.
I found the issue. One of the sites was not created. I could import without issues. Thanks