0

I've been trying to import data from a .csv file into my content type but have found some trouble mapping the headers of the csv file to fields.

How do you map a field to a header (since I'm not seeing that as an option in Feed)? I've tried using the new Source option and putting the name of the header but had some errors importing.

enter image description here

I'm planning to use the Feeds module and stay away from code since a site admin will be importing subsequent files and is not very familiar with drush.

I used to use the Feeds Import Preview module on D7 but have not been able to find something similar for D8.

  • It's difficult to say without your importer configuration. Are you using the upload file method? Which parser did you choose? You can name your CSV column titles as your target machine names, this should make them match automatically. – prkos Sep 4 '18 at 12:18
  • The source value has to exactly match the column name in your CSV file. Unlike the D7 version, CSV sources are case sensitive. Porting Feeds Import Preview to D8 is on my wishlist. I have a less user friendly version of it in my Feeds DEV sandbox: drupal.org/sandbox/megachriz/2950698. That version also doesn't work well together with the Download fetcher. So for these two reasons I have not added it to the main module yet. – MegaChriz Sep 5 '18 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.