AttributeError during Tag Bulk Import #11489

Closed
opened 2025-12-29 21:45:57 +01:00 by adam · 1 comment
Owner

Originally created by @maxblome on GitHub (Aug 14, 2025).

Originally assigned to: @bctiemann on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.3.6

Python Version

3.12

Steps to Reproduce

  1. Open "Tag Bulk Import" (/extras/tags/import/)
  2. Insert data

Example data:

name,slug,color
test,test,00ff00
  1. Submit import

Expected Behavior

The tag should be imported.

Observed Behavior

<class 'AttributeError'>

'NoneType' object has no attribute 'app_label'

Python version: 3.12.3
NetBox version: 4.3.6-Docker-3.3.0
Plugins: None installed
Originally created by @maxblome on GitHub (Aug 14, 2025). Originally assigned to: @bctiemann on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.3.6 ### Python Version 3.12 ### Steps to Reproduce 1. Open "Tag Bulk Import" (`/extras/tags/import/`) 2. Insert data Example data: ```csv name,slug,color test,test,00ff00 ``` 3. Submit import ### Expected Behavior The tag should be imported. ### Observed Behavior ```python <class 'AttributeError'> 'NoneType' object has no attribute 'app_label' Python version: 3.12.3 NetBox version: 4.3.6-Docker-3.3.0 Plugins: None installed ```
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:45:57 +01:00
adam closed this issue 2025-12-29 21:45:57 +01:00
Author
Owner

@bctiemann commented on GitHub (Aug 15, 2025):

This seems to come down to the fact that this field is optional:

32ea174331/netbox/extras/forms/bulk_import.py (L245-L257)

If omitted, prepare_value tries to call object_type_identifier(value) which assumes value to be a resolved ObjectType but fails when value is null.

@bctiemann commented on GitHub (Aug 15, 2025): This seems to come down to the fact that this field is optional: https://github.com/netbox-community/netbox/blob/32ea1743311fb2027164f172ee47cc2038e63d08/netbox/extras/forms/bulk_import.py#L245-L257 If omitted, `prepare_value` tries to call `object_type_identifier(value)` which assumes `value` to be a resolved `ObjectType` but fails when `value` is null.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11489