Missing parent in inventory item when using bulk/csv import #9868

Closed
opened 2025-12-29 21:23:45 +01:00 by adam · 3 comments
Owner

Originally created by @siku4 on GitHub (Jun 19, 2024).

Originally assigned to: @siku4 on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.5

Python Version

3.10

Steps to Reproduce

  1. Open Inventory items
  2. Click on import button
  3. Enter test data set, make sure that the parent inventory item already exists:
device,name,parent
test_device,test_child_inventory_item,test_parent_inventory_item
  1. Click on submit
  2. Open the new inventory item test_child_inventory_item

Expected Behavior

The parent inventory item test_parent_inventory_item is present or referenced within the child inventory item just created.

Observed Behavior

The parent item field is empty

Originally created by @siku4 on GitHub (Jun 19, 2024). Originally assigned to: @siku4 on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.5 ### Python Version 3.10 ### Steps to Reproduce 1. Open Inventory items 2. Click on import button 3. Enter test data set, make sure that the parent inventory item already exists: ```csv device,name,parent test_device,test_child_inventory_item,test_parent_inventory_item ``` 4. Click on submit 5. Open the new inventory item `test_child_inventory_item` ### Expected Behavior The parent inventory item `test_parent_inventory_item` is present or referenced within the child inventory item just created. ### Observed Behavior The parent item field is empty
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:23:45 +01:00
adam closed this issue 2025-12-29 21:23:46 +01:00
Author
Owner

@siku4 commented on GitHub (Jun 19, 2024):

I have already identified the problem and would like to create a PR

@siku4 commented on GitHub (Jun 19, 2024): I have already identified the problem and would like to create a PR
Author
Owner

@siku4 commented on GitHub (Jun 21, 2024):

@jeremystretch Could you please assign it to me?

@siku4 commented on GitHub (Jun 21, 2024): @jeremystretch Could you please assign it to me?
Author
Owner

@jeremystretch commented on GitHub (Jun 21, 2024):

@siku4 yes, sorry I missed your comment above. Thanks!

@jeremystretch commented on GitHub (Jun 21, 2024): @siku4 yes, sorry I missed your comment above. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9868