Closed (works as designed)
Project:
Taxonomy CSV import/export
Version:
7.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2012 at 03:40 UTC
Updated:
28 Mar 2012 at 14:51 UTC
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.].| Comment | File | Size | Author |
|---|---|---|---|
| chinese_zodiac.csv_.zip | 1.6 KB | ptmkenny |
Comments
Comment #1
Daniel_KM commentedHi,
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_orderoption (it's the same).Sincerely,
Daniel Berthereau
Infodoc & Knowledge management
Comment #2
ptmkenny commentedThank you so much! That did the trick!