It would be nice to document if this module can indeed set up new taxonomies onto another site with the same TID as the source site, or if it cannot.

What's confusing to me is the use of the TID in a "Full term definition and links" export, and then choosing "Serial Number (internal term id)" as a "identifiant" for terms.

After some looking on my part at the function you appear to use to save taxonomy terms during import ( taxonomy_csv_term_save which calls drupal's taxonomy_term_save ) it seems that it is likely not possible to supply a tid upon creation of a new term.

Could you clarify this for me, and if possible reflect the answer in the documentation or inside the module itself?
Additionally, if it as I suspect not possible to transfer TIDs over using your module, can you recommend anything else I can do other than manipulating TIDs in the database?

Comments

Daniel_KM’s picture

Hi,

"Terms ids" used in the "Full term definition and links" are not tid, but anything needed to identify uniquely each term when a vocabulary contains duplicate terms.

It can be interesting to import terms with specified tid, but this module does not implement it currently. I use only core taxonomy functions: the module never inserts a term by a SQL request. By this way, all internal checks are done and all hooks are called.

You can try Taxonomy XML or Taxonomy Builder API to keep tid.

Sincerely,

Daniel Berthereau
Infodoc, Digital humanities & Knowledge management

Daniel_KM’s picture

Status: Active » Closed (works as designed)
Peacog’s picture

I too found this very confusing, and have lost a day trying to figure out why my feed was not importing. If I use the Fields type of import and specify tid, or the Term ids (tid) import, the csv appears to be processed successfully and I get a message saying "Total created or updated terms : 276". But when I go to the vocabulary it is empty.

As mattyohe says, the module uses taxonomy_term_save() which does not allow you to preserve tids. The module's help suggests that tid can be used for Fields imports. There is also a Term ids (tid) import type that doesn't seem to work at all. How is it used?

It would be very helpful if you could update the module's help documentation to state that tids are not supported.

Peacog’s picture

Status: Closed (works as designed) » Active

Reopening as per previous comment

Countzero’s picture

Agree on this. Has this issue made any progress since ?

scotwith1t’s picture

Issue summary: View changes

+1 for being able to import and specify the tid while importing. any progress?