CSV Column validation error handling throws Server Error #5156

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

Originally created by @sdktr on GitHub (Aug 7, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.10

Python version

3.8

Steps to Reproduce

  1. Open any CSV Import
  2. Use a wrong column name like 'addresss' on the IP address import or miss a required header
  3. Submit

Expected Behavior

The GUI shows a user friendly guidance on what's wrong with the headers, like:
image
or:
image

Observed Behavior

image

Server Error
There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'KeyError'>

'csv'

Python version: 3.8.10
NetBox version: 2.11.10

Originally created by @sdktr on GitHub (Aug 7, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.10 ### Python version 3.8 ### Steps to Reproduce 1. Open [any CSV Import](https://demo.netbox.dev/ipam/ip-addresses/import/) 2. Use a wrong column name like 'addresss' on the IP address import or miss a required header 3. Submit ### Expected Behavior The GUI shows a user friendly guidance on what's wrong with the headers, like: ![image](https://user-images.githubusercontent.com/19833687/128575411-08466c2e-d083-4fc3-9e96-f6ac8f661f73.png) or: ![image](https://user-images.githubusercontent.com/19833687/128575467-8b8aa0d1-7e7d-4cc5-a1cb-5e16453dc758.png) ### Observed Behavior ![image](https://user-images.githubusercontent.com/19833687/128575530-8c9d49e5-7065-4646-a181-5c17ea658caa.png) > Server Error > There was a problem with your request. Please contact an administrator. > > The complete exception is provided below: > > <class 'KeyError'> > > 'csv' > > Python version: 3.8.10 > NetBox version: 2.11.10
adam added the type: bugstatus: accepted labels 2025-12-29 19:24:53 +01:00
adam closed this issue 2025-12-29 19:24:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5156