Skip to content
This repository was archived by the owner on Aug 13, 2019. It is now read-only.
This repository was archived by the owner on Aug 13, 2019. It is now read-only.

error during mapping with the csv mapper #6

@CT-Szilvia

Description

@CT-Szilvia

When we run the carhartt-mapping yaml file, we we get an error:
Following command do we use.

node --max-old-space-size=6144 bin/csv-mapper --mapping test-data/carharrt-mapping-rev2.yaml --inCsv test-data/productInCSV.csv --outCsv test-data/SampleOutCSV.csv

Error: Error during mapping from column 'product_family_reference' to column 'categoryUrl' with current value '4b08ab3b-310c-4094-9d83-d494608b3926': TypeError: undefined is not a function

at Object.module.exports.transformFirstValue (/Users/sraj/Documents/workspace/csv-mapper-master/lib/util.js:97:62)

at FallbackTransformer.transform (/Users/sraj/Documents/workspace/csv-mapper-master/lib/transformer.js:555:17)

at /Users/sraj/Documents/workspace/csv-mapper-master/lib/util.js:89:28

Can someone please take a look?
I can also send the input files + the yaml file.
Thanks,
Szilvia

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions