Device Bulk Import Fails When Indicating Rack Information #4186

Closed
opened 2025-12-29 18:33:44 +01:00 by adam · 2 comments
Owner

Originally created by @gh-bguevara on GitHub (Oct 13, 2020).

Environment

  • Python version: Python 3.8.5
  • NetBox version: v2.9.3

Steps to Reproduce

  1. Go to Devices --> Devices
  2. Click on the blue Import Button from the menu or when on the Devices page.
  3. Paste in the device information while indicating the rack, rack position and face.

Expected Behavior

I expected to able to successfully import the device(s) with the correct rack information, since the Site and Racks have already been created.

Observed Behavior

The import fails and I receive the error message below:

Enter the list of column headers followed by one line per record to be imported, using commas to separate values. Multi-line data and values containing commas may be wrapped in double quotes.
Row 1 rack: Object not found.
Row 1 face: Cannot select a rack face without assigning a rack.

I have verified that the rack name exists. Also tried a column header of "rack_name" and "rack_id" instead of "rack" to no avail.

When I manually add a device and indicate the rack, it works fine. When I export the device list after adding the device, the exported file indicates that the column header for the rack is "rack_name", but when I delete the device and try to reimport the device using the same data from the exported file (including the columns headers), it fails with the same error message stated earlier. This occurs when importing one or 100 devices. I have tried testing it with different rack names and they also fail.

Originally created by @gh-bguevara on GitHub (Oct 13, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/g/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report, and that any plugins have been disabled. --> ### Environment * Python version: Python 3.8.5 * NetBox version: v2.9.3 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. --> ### Steps to Reproduce 1. Go to Devices --> Devices 2. Click on the blue Import Button from the menu or when on the Devices page. 3. Paste in the device information while indicating the rack, rack position and face. <!-- What did you expect to happen? --> ### Expected Behavior I expected to able to successfully import the device(s) with the correct rack information, since the Site and Racks have already been created. <!-- What happened instead? --> ### Observed Behavior The import fails and I receive the error message below: Enter the list of column headers followed by one line per record to be imported, using commas to separate values. Multi-line data and values containing commas may be wrapped in double quotes. Row 1 rack: Object not found. Row 1 face: Cannot select a rack face without assigning a rack. I have verified that the rack name exists. Also tried a column header of "rack_name" and "rack_id" instead of "rack" to no avail. When I manually add a device and indicate the rack, it works fine. When I export the device list after adding the device, the exported file indicates that the column header for the rack is "rack_name", but when I delete the device and try to reimport the device using the same data from the exported file (including the columns headers), it fails with the same error message stated earlier. This occurs when importing one or 100 devices. I have tried testing it with different rack names and they also fail.
adam closed this issue 2025-12-29 18:33:44 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 15, 2020):

Paste in the device information while indicating the rack, rack position and face.

This is not a sufficient level of detail. You'll need to describe exactly the steps someone else can take to replicate the bug, beginning with the creation of all objects involved.

@jeremystretch commented on GitHub (Oct 15, 2020): > Paste in the device information while indicating the rack, rack position and face. This is not a sufficient level of detail. You'll need to describe **exactly** the steps someone else can take to replicate the bug, beginning with the creation of all objects involved.
Author
Owner

@jeremystretch commented on GitHub (Oct 30, 2020):

Closing due to lack of activity.

@jeremystretch commented on GitHub (Oct 30, 2020): Closing due to lack of activity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4186