Invalid CSV fields in Power Feed Import #2686

Closed
opened 2025-12-29 18:21:07 +01:00 by adam · 0 comments
Owner

Originally created by @telcohusky on GitHub (Jun 21, 2019).

Environment

  • Python version: 2.7.12
  • NetBox version: 2.6.0

Steps to Reproduce

I'm running into a new issue on the Power Feeds CSV Import page. I am attempting to import my power feeds in bulk and created a CSV with my input for each possible field listed on the import page. The fields I'm specifying are in CSV below.

  1. Write a CSV using all possible Power Feed fields. Be sure to specify the 'rack_group' field for each power feed.
  2. Submit the CSV data and observe the django.core.exceptions.FieldError response. It does not appear rack_group is a valid field.

Expected Behavior

Here is my CSV with input for each field (minus the comments field).

name,panel_name,rack_group,rack_name,site,status,type,supply,phase,voltage,amperage,max_utilization,comments
PWR-CIR-1,Lab Panel,NSG Lab,RR.LAB.03,Lab,Active,Primary,AC,Three-phase,208,20,80,
PWR-CIR-2,Lab Panel,NSG Lab,RR.LAB.02,Lab,Active,Primary,AC,Three-phase,120,20,80,
PWR-CIR-3,Lab Panel,NSG Lab,RR.LAB.03,Lab,Active,Primary,AC,Three-phase,208,20,80,

Observed Behavior

Received Error message:
image

There was a problem with your request. Please contact an administrator.
The complete exception is provided below:
<class 'django.core.exceptions.FieldError'>

Cannot resolve keyword 'rack_group' into field. Choices are: asset_tag, comments, created, custom_field_values, desc_units, devices, facility_id, group, group_id, id, images, last_updated, name, outer_depth, outer_unit, outer_width, powerfeed, reservations, role, role_id, serial, site, site_id, status, tagged_items, tags, tenant, tenant_id, type, u_height, width

Originally created by @telcohusky on GitHub (Jun 21, 2019). ### Environment * Python version: 2.7.12 * NetBox version: 2.6.0 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a wrapper like pynetbox. --> ### Steps to Reproduce I'm running into a new issue on the Power Feeds CSV Import page. I am attempting to import my power feeds in bulk and created a CSV with my input for each possible field listed on the import page. The fields I'm specifying are in CSV below. 1. Write a CSV using all possible Power Feed fields. Be sure to specify the 'rack_group' field for each power feed. 3. Submit the CSV data and observe the django.core.exceptions.FieldError response. It does not appear rack_group is a valid field. <!-- What did you expect to happen? --> ### Expected Behavior Here is my CSV with input for each field (minus the comments field). ``` name,panel_name,rack_group,rack_name,site,status,type,supply,phase,voltage,amperage,max_utilization,comments PWR-CIR-1,Lab Panel,NSG Lab,RR.LAB.03,Lab,Active,Primary,AC,Three-phase,208,20,80, PWR-CIR-2,Lab Panel,NSG Lab,RR.LAB.02,Lab,Active,Primary,AC,Three-phase,120,20,80, PWR-CIR-3,Lab Panel,NSG Lab,RR.LAB.03,Lab,Active,Primary,AC,Three-phase,208,20,80, ``` <!-- What happened instead? --> ### Observed Behavior Received Error message: ![image](https://user-images.githubusercontent.com/52085870/59948642-56fbd400-9436-11e9-87ea-695bd3681d42.png) > There was a problem with your request. Please contact an administrator. > The complete exception is provided below: > <class 'django.core.exceptions.FieldError'> > > Cannot resolve keyword 'rack_group' into field. Choices are: asset_tag, comments, created, custom_field_values, desc_units, devices, facility_id, group, group_id, id, images, last_updated, name, outer_depth, outer_unit, outer_width, powerfeed, reservations, role, role_id, serial, site, site_id, status, tagged_items, tags, tenant, tenant_id, type, u_height, width
adam added the type: bugstatus: accepted labels 2025-12-29 18:21:07 +01:00
adam closed this issue 2025-12-29 18:21:07 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2686