I am unable to import descriptions of terms that are included in the CSV file exported by the Taxonomy CSV module.

I used this command with the attached file:
drush vocimp /Volumes/Bullfrog/om/sites/all/taxonomies/chinese_zodiac.csv fields --vocabulary_id=chinese_zodiac --vocabulary_target=existing --result_terms --keep_order --delete_terms --result_stats --check_line

The vocabulary is imported and terms are created as I expect but without descriptions. I get the following warning:

Notices have been reported during import process (bad formatted or  [warning]
empty lines). 12 lines processed. First notice occurred on line 1
[Notice : Too many items on the line for the selected format. These
items will be ignored. Line is processed.].
CommentFileSizeAuthor
chinese_zodiac.csv_.zip1.6 KBptmkenny

Comments

Daniel_KM’s picture

Status: Active » Closed (works as designed)

Hi,

When you import fields, you have to set the order of your fields, because the module can't determine it itself. In your case, it's something like "name,vocabulary_machine_name,description,format,weight,Something,language". So your command line will be:

drush vocimp chinese_zodiac.csv fields --fields_format="name,vocabulary_machine_name,description,format,weight,something,language" --vocabulary_id=chinese_zodiac --vocabulary_target=existing --result_terms --delete_terms --result_stats --check_line.

Note that as you set a weight in your format, you can't use the --keep_order option (it's the same).

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management

ptmkenny’s picture

Thank you so much! That did the trick!