Error importing devices #226

Closed
opened 2025-12-29 16:19:42 +01:00 by adam · 8 comments
Owner

Originally created by @alarido on GitHub (Jul 15, 2016).

I get this error when I'm importing a device, no other error, no details:

image

Originally created by @alarido on GitHub (Jul 15, 2016). I get this error when I'm importing a device, no other error, no details: ![image](https://cloud.githubusercontent.com/assets/1955581/16874428/86fc3814-4a99-11e6-9636-b37e2d155d14.png)
adam added the type: bug label 2025-12-29 16:19:42 +01:00
adam closed this issue 2025-12-29 16:19:43 +01:00
Author
Owner

@alarido commented on GitHub (Jul 15, 2016):

It happens when you do not specify the Position and Face which are supposed to be optional.

BTW, thanks for netbox it's an awesome piece of software

@alarido commented on GitHub (Jul 15, 2016): It happens when you do not specify the Position and Face which are supposed to be optional. BTW, thanks for netbox it's an awesome piece of software
Author
Owner

@jeremystretch commented on GitHub (Jul 15, 2016):

We're going to need a lot more information to help you. Could you please indicate the version of software you're running and provide the CSV data you're attempting to import?

@jeremystretch commented on GitHub (Jul 15, 2016): We're going to need a lot more information to help you. Could you please indicate the version of software you're running and provide the CSV data you're attempting to import?
Author
Owner

@alarido commented on GitHub (Jul 15, 2016):

Sorry, I forgot.

Version 1.2.2, the CSV lines I tried:

Success:
devicename,devicetype,,serialnumber,sitename,rackname,deviceposition,devicefacingside

Failure:
devicename,devicetype,,serialnumber,sitename,rackname,,

Problem is devices I'm trying to import are non-racked I can't specify a position or facing side.

Thx in advance

@alarido commented on GitHub (Jul 15, 2016): Sorry, I forgot. Version 1.2.2, the CSV lines I tried: Success: devicename,devicetype,,serialnumber,sitename,rackname,deviceposition,devicefacingside Failure: devicename,devicetype,,serialnumber,sitename,rackname,, Problem is devices I'm trying to import are non-racked I can't specify a position or facing side. Thx in advance
Author
Owner

@bellwood commented on GitHub (Jul 15, 2016):

#198 should cover this by allowing devices not in a rack with scope limited to (storage, work bench, etc)

We have quite a bit of n+1 switches/servers in house that would be great to have in the system.

I agree though that every laptop, monitor, tablet doesnt need to be in netbox but accounting for DCIM gear active or inactive would be nice

@bellwood commented on GitHub (Jul 15, 2016): #198 should cover this by allowing devices not in a rack with scope limited to (storage, work bench, etc) We have quite a bit of n+1 switches/servers in house that would be great to have in the system. I agree though that every laptop, monitor, tablet doesnt need to be in netbox but accounting for DCIM gear active or inactive would be nice
Author
Owner

@jeremystretch commented on GitHub (Jul 15, 2016):

Rack position and face are optional fields. However, the format

devicename,devicetype,,serialnumber,sitename,rackname,,

is incorrect. The correct format is

name,device_role,manufacturer,model,platform,serial,site,rack,position,face
@jeremystretch commented on GitHub (Jul 15, 2016): Rack position and face are optional fields. However, the format ``` devicename,devicetype,,serialnumber,sitename,rackname,, ``` is incorrect. The correct format is ``` name,device_role,manufacturer,model,platform,serial,site,rack,position,face ```
Author
Owner

@alarido commented on GitHub (Jul 15, 2016):

Sorry I was in a hurry and I replied fast and dirty so I missed the role and manufacturer fields

I'm correctly creating the CSV when I import just one line to test and I specify the face it works:

Success:
name,device_role,manufacturer,model,platform,serial,site,rack,position,face
name,device_role,manufacturer,model,platform,serial,site,rack,,face
Failure:
name,device_role,manufacturer,model,platform,serial,site,rack,position,
name,device_role,manufacturer,model,platform,serial,site,rack,,

@alarido commented on GitHub (Jul 15, 2016): Sorry I was in a hurry and I replied fast and dirty so I missed the role and manufacturer fields I'm correctly creating the CSV when I import just one line to test and I specify the face it works: Success: name,device_role,manufacturer,model,platform,serial,site,rack,position,face name,device_role,manufacturer,model,platform,serial,site,rack,,face Failure: name,device_role,manufacturer,model,platform,serial,site,rack,position, name,device_role,manufacturer,model,platform,serial,site,rack,,
Author
Owner

@jeremystretch commented on GitHub (Jul 15, 2016):

Can confirm this behavior in the v1.2.2 release, but not on the current develop branch. Looks like it was fixed yesterday as part of dd62caf2f0.

Going to mark this closed, but please ask to re-open if you continue having problems with the next release.

@jeremystretch commented on GitHub (Jul 15, 2016): Can confirm this behavior in the v1.2.2 release, but not on the current develop branch. Looks like it was fixed yesterday as part of dd62caf2f0cda5cb4a049604adbd9c71aae99f20. Going to mark this closed, but please ask to re-open if you continue having problems with the next release.
Author
Owner

@alarido commented on GitHub (Jul 19, 2016):

Confirmed It's fixed in last stable version 1.3.0
Thx

@alarido commented on GitHub (Jul 19, 2016): Confirmed It's fixed in last stable version 1.3.0 Thx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#226