Skip to content

Bulk upload of Location fails; parent uniqueness check not limited to site #14064

@ravinald

Description

@ravinald

NetBox version

v3.6.4

Python version

3.10

Steps to Reproduce

  1. Create Site Site A
  2. Create Site Site B
  3. Create Location Floor 1 in Site A with slug floor-1
  4. Create Location Floor 1 in Site B with slug floor-1
  5. Navigate to Locations > bulk import
  6. Paste the following to get the error
site,parent,name,slug,status
Site B,Floor 1,Loc A,loc-a,active
  1. Delete Location Floor 1 in Site A
  2. Paste the same again with success

Expected Behavior

A new Location, Loc A, with a parent location of Floor 1 in site Site B should have been imported

Observed Behavior

It appears the query for locations to check for duplicates is not limiting to the defined Site. Instead, the following error is returned:

Record 1 parent: "Floor 1" is not a unique value for this field; multiple objects were found

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions