Skip to content

How to use Transform with a CSV file #427

@djl197

Description

@djl197

My current automation produces a report with the following columns
containing_pkg,pkg_type,pkg_name,pkg_version,pkg_homepage,pkg_licenses

Row0 contains these headings then the following rows contain the data
installer.tar.gz,rpm,apr-util,1.5.2-6.el7,http://apr.apache.org/,ASL 2.0 ++

I tried to apply the transform with something like this:

column_renamings:
    pkg_name : about_resource
    pkg_name : name
    pkg_version : version
    pkg_homepage : homepage_url
    pkg_license : license_expression
column_filters:
    - about_resource
    - name
    - version
    - homepage_url
    - license_expression

Where I believe the filters are applied to the renamed columns.
However I am getting these errors:

CRITICAL: Row 0 is missing required values for columns: about_resource
CRITICAL: Row 1 is missing required values for columns: about_resource
CRITICAL: Row 2 is missing required values for columns: about_resource
CRITICAL: Row 3 is missing required values for columns: about_resource

I suspect user error - but any help appreciated :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions