Creating a new inventory item instead of updating a previously created one (2 tags item) #8112

Closed
opened 2025-12-29 20:32:35 +01:00 by adam · 1 comment
Owner

Originally created by @Lozbik on GitHub (May 24, 2023).

NetBox version

v3.4.7

Python version

3.8

Steps to Reproduce

  1. Creating a json file for import in netbox with 2 tags
  2. Importing a file to inventory items
  3. Importing a file to inventory items again

The following files were used as the imported file:

  • similar files
  • with changed values

The json file used to import:

{
    "description": "1.818 TB",
    "device": "some device",
    "label": "SATA:4",
    "manufacturer": "WDC",
    "name": "some name",
    "part_id": "some part_id",
    "role": "disk",
    "serial": "some serial",
    "tags": "ugood,active"
}

Expected Behavior

In step 2, a new inventory item is created.
In step 3, the previously created inventory item is updated.

Observed Behavior

In step 2, a new inventory item is created
In step 3, a new inventory item is created with identical values

When only 1 tag is used - inventoryitem is updated
Also, if you update via the rest api, the inventory item is also updated

Originally created by @Lozbik on GitHub (May 24, 2023). ### NetBox version v3.4.7 ### Python version 3.8 ### Steps to Reproduce 1. Creating a json file for import in netbox with 2 tags 2. Importing a file to inventory items 3. Importing a file to inventory items again The following files were used as the imported file: * similar files * with changed values The json file used to import: ``` { "description": "1.818 TB", "device": "some device", "label": "SATA:4", "manufacturer": "WDC", "name": "some name", "part_id": "some part_id", "role": "disk", "serial": "some serial", "tags": "ugood,active" } ``` ### Expected Behavior In step 2, a new inventory item is created. In step 3, the previously created inventory item is updated. ### Observed Behavior In step 2, a new inventory item is created In step 3, a new inventory item is created with identical values When only 1 tag is used - inventoryitem is updated Also, if you update via the rest api, the inventory item is also updated
adam added the type: bug label 2025-12-29 20:32:35 +01:00
adam closed this issue 2025-12-29 20:32:35 +01:00
Author
Owner

@Lozbik commented on GitHub (May 24, 2023):

Could not repeat the situation when using 1 tag inventory item is updated

@Lozbik commented on GitHub (May 24, 2023): Could not repeat the situation when using 1 tag inventory item is updated
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8112