Great module and thanks for the 7 version!
There was patch for 6.x but the issue exists in the alpha 7 version. See http://drupal.org/node/633348 - #633348: Wrong field name used in taxonomy_csv_term_find() in taxonomy_csv.api.inc
The issue is to do with when table prefixes are in use the table prefix doesn't get appended to the field name in the order by of taxonomy_csv_term_find.
Resulting in the following error

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'main_tid' in 'order clause': SELECT t.*, h.parent FROM {taxonomy_term_data} t INNER JOIN {taxonomy_term_hierarchy} h ON t.tid = h.tid WHERE :name LIKE LOWER(t.name) AND t.vid = :vid ORDER BY {tid} ASC LIMIT 1; Array ( [:name] => united kingdom [:vid] => 2 ) in taxonomy_csv_term_find() (line 3038 of E:\websites\Drupal7\sites\all\modules\contrib\taxonomy_csv\taxonomy_csv.api.inc).

I have attached a patch that solves the issue.

CommentFileSizeAuthor
#1 taxonomy_csv.api_.inc_.patch413 bytesiaugur

Comments

iaugur’s picture

StatusFileSize
new413 bytes
Daniel_KM’s picture

Version: 7.x-4.11 » 7.x-4.x-dev
Status: Patch (to be ported) » Closed (fixed)

Hi,

Thanks for your patch. It has been committed and will be published with next release.
I don't understand how this error reappears.

Sincerely,

Daniel Berthereau
Knowledge manager