I'm trying to bring a csv file into a taxonomy. It works fine in the GUI, but when I do it via drush I get the error: "- Filter format for description is not authorized."

The command looks like this:
drush taxocsv-import alerts_people.csv flat --vocabulary_id=alerts_users --vocabulary_target=existing --fields_format=name,field_taxo_div_grp,field_taxo_group,field_taxo_email,field_taxo_phone --filter_format=plain_text

The taxonomy doesn't use anything in the description field. I tried adding in an empty description by adding it to the raw data and also to the list of fields, to see if that would get around it but that didn't work either.

Running the import with no --filter_format option also does not work.

Suggestions greatly appreciated. I need to script a daily import of about 4000 terms.

Thanks

Bobb Menk

Comments

bmenk created an issue.

bmenk’s picture

We've been beating on this for a while and found where the problem occurs. We can do a quick and dirty commenting out of the problem section in the offending file and get records to import via drush, but that's not ideal obviously.

In the file:
imports/taxonomy_csv.import.admin.inc
if we comment out lines 140-142 the import will now proceed instead of just die.

However we're seeing this error repeated one time for each of the 6 imported fields for each record:
Invalid argument supplied for foreach() shs.module:688

Presumably commenting out the check for filter_format on the description field is generating that. The records are going in and it finishes the import with the "No error, warnings or notices have been reported during import process" message.

Does this provide enough to go on to perhaps roll a patch or otherwise push corrected code into a dev version?

Thanks

Bobb Menk