HI, here is what happened using the module:

After Importing a vocabulary with terms, previously exported with taxonomy_export, I found out that some terms were missing. Looking at the export code, i saw that the terms are sorted alphabetically, thus the tid's are not in order. If you see the tid sequence, you can find for example, tid 1, tid 2, tid 3, tid 10, tid 4. In that case term 10 will be missing after the import. If I rearrange the terms to be orderded by tid ascendent, then the import is performed succesfully.

I didn't find anyone reporting this or references to the problem. Also I might be missing something in that case, sorry for the issue. But if not I guess it would be a good idea to order the export code by tid.

Attached there are two files, one with an alphabetical sorted vocabulary and the other by tids.

Regards,

CommentFileSizeAuthor
samples.tar_.gz684 bytesRodre
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ivan Simonov’s picture

+1

carvalhar’s picture

found the same bug

mjpg’s picture

I had a problem that seems similar, but I am not sure the issue is with alphabetical.

In my case, the hierarchy was not correct after import.

I think the problem was because the parent term was not imported before the children and so the child's parent ID did not exist on import.

When I changed the import source code to move the parent up the list, the taxonomy was created OK.

DID NOT WORK - order

Parent 1
Child 1 of P1
Child 2 of P1

Parent 2
Child 1 of P2
Child 2 of P2

DID WORK - order

Parent 1
Parent 2

Child 1 of P1
Child 2 of P1

Child 1 of P2
Child 2 of P2