Skip to content

Can't bulk import via CSV with custom fields #8317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brianmiller opened this issue Jan 11, 2022 · 0 comments
Closed

Can't bulk import via CSV with custom fields #8317

brianmiller opened this issue Jan 11, 2022 · 0 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@brianmiller
Copy link

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.,

  1. Create multiple selection custom fields with "IPAM | IP address" as the assigned model.
  2. Bulk import via CSV

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.

@brianmiller brianmiller added the type: bug A confirmed report of unexpected behavior in the application label Jan 11, 2022
@jeremystretch jeremystretch added the status: accepted This issue has been accepted for implementation label Jan 11, 2022
@jeremystretch jeremystretch self-assigned this Jan 11, 2022
larsks pushed a commit to larsks/netbox that referenced this issue Mar 8, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants