2.5-beta1: Rack Import #2141

Closed
opened 2025-12-29 17:22:38 +01:00 by adam · 0 comments
Owner

Originally created by @Loopbackconnector on GitHub (Nov 23, 2018).

Environment

  • Python version: 3.5.3
  • NetBox version: 2.5 Beta1

When importing racks in 2.5-Beta1 from the Import function of racks, when trying to only include the minimum required elements, you get an error

import sample

site,name,width,u_height
My New Site,My NonAPI Rack,19,42

Error

<class 'django.db.utils.IntegrityError'>

null value in column "outer_unit" violates not-null constraint
DETAIL: Failing row contains (2, 2018-11-23, 2018-11-23 04:04:16.603743+00, My NonAPI Rack, null, 42, , null, 1, null, null, 19, null, f, , 3, null, null, null, null).

Workaround

after adding outer_width and outer_unit it allowed the submission (had to add the units because outer_width was specified)

Originally created by @Loopbackconnector on GitHub (Nov 23, 2018). ### Environment * Python version: 3.5.3 * NetBox version: 2.5 Beta1 When importing racks in 2.5-Beta1 from the Import function of racks, when trying to only include the minimum required elements, you get an error ### import sample site,name,width,u_height My New Site,My NonAPI Rack,19,42 ### Error <class 'django.db.utils.IntegrityError'> null value in column "outer_unit" violates not-null constraint DETAIL: Failing row contains (2, 2018-11-23, 2018-11-23 04:04:16.603743+00, My NonAPI Rack, null, 42, , null, 1, null, null, 19, null, f, , 3, null, null, null, null). ### Workaround after adding outer_width and outer_unit it allowed the submission (had to add the units because outer_width was specified)
adam added the type: bugstatus: accepted labels 2025-12-29 17:22:38 +01:00
adam closed this issue 2025-12-29 17:22:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2141