Bulk import of devices crashes the WebUI if device_type is not found and rack/location info is given #6137

Closed
opened 2025-12-29 19:37:13 +01:00 by adam · 0 comments
Owner

Originally created by @empusas on GitHub (Feb 23, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.5

Python version

3.9

Steps to Reproduce

  1. Create a device import with an unknown device type and rack and location info.
  2. past the content into the web interface bulk import
  3. start the import

example
tenant,manufacturer,device_role,device_type,name,site,location,rack,position,face,status
lulu,Cisco,Access Switch,Cata8T-4G,Gandalf,Neverland,Room 1,14,24,front,active

Expected Behavior

A red popup error message should appear like for any other issues with the imported data.
image001

Observed Behavior

The WebUI crashes with a server error.
image002

Originally created by @empusas on GitHub (Feb 23, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.5 ### Python version 3.9 ### Steps to Reproduce 1. Create a device import with an unknown device type and rack and location info. 2. past the content into the web interface bulk import 3. start the import example tenant,manufacturer,device_role,device_type,name,site,location,rack,position,face,status lulu,Cisco,Access Switch,Cata8T-4G,Gandalf,Neverland,Room 1,14,24,front,active ### Expected Behavior A red popup error message should appear like for any other issues with the imported data. ![image001](https://user-images.githubusercontent.com/3153453/155300793-e90789cf-1b4d-423f-b622-58c952c71c69.png) ### Observed Behavior The WebUI crashes with a server error. ![image002](https://user-images.githubusercontent.com/3153453/155300823-c77112c1-c6fc-4589-b2a5-f62315b698ea.png)
adam added the type: bugstatus: accepted labels 2025-12-29 19:37:13 +01:00
adam closed this issue 2025-12-29 19:37:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6137