Can't bulk import via CSV with custom fields #8317
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.1.5
Python version
3.9
Steps to Reproduce
Bulk import IP Addresses via WebUI/CSV using "Multiple selection" "Custom Fields".
E.g.,
Expected Behavior
A successful import
Observed Behavior
My CSV header:
dns_name,address,status,cf_publish_dns_location,cf_publish_dns_ptr_zone,cf_publish_dns_ttl,cf_publish_dns_zones,cf_publish_external_cname_destination,cf_publish_external_cname_zone
Different CSV data attempts:
Attempt 1:
myhost,123.123.123.123/32,active,Internal,mydomain.com,300,mydomain.com,False,mydomain.com
Results in:
Row 1 __all__: Invalid value for custom field 'publish_dns_location': Invalid choice(s) (I, n, t, e, r, n, a, l). Available choices are: Internal, External
Attempt 2:
myhost,123.123.123.123/32,active,"Internal",mydomain.com,300,mydomain.com,False,mydomain.com
Results in:
Row 1 __all__: Invalid value for custom field 'publish_dns_location': Invalid choice(s) (I, n, t, e, r, n, a, l). Available choices are: Internal, External
Attempt 3:
myhost,123.123.123.123/32,active,["Internal"],mydomain.com,300,mydomain.com,False,mydomain.com
Results in:
Row 1 cf_publish_dns_location: Select a valid choice. ["Internal"] is not one of the available choices.
Row 1 __all__: Invalid value for custom field 'publish_dns_location': Required field cannot be empty.
The text was updated successfully, but these errors were encountered: