Identical children are created as separate terms

BayouBill - September 12, 2009 - 00:02
Project:Taxonomy CSV import/export
Version:6.x-4.2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I am submitting this as a support request because I don't know if it is "by design", or if I am doing something wrong, or it is a bug.

Given the following two-level csv file segment:

Parent1, ChildA
Parent2, ChildA

Where ChildA has multiple parents (Parent1 & Parent2).

If I upload using the following options:

- Hierarchical structure or one term by line structure
and **either**
- Update (replace) existing term and items if exist else create
**or**
- Ignore existing term and create a new term

I get unique terms for Parent1 and Parent2 as expected, but I also get **two unique** ChildA terms, each with a different tid (unique "n" in taxonomy/term/n).

The result I want is that only **one** ChildA term is created, with both Parent1 & Parent2 as its parents.

If there a way to do this with current code, please tell me what the format of the lines in the csv file should be, and/or what the import options should be. Otherwise, please consider this as a "feature request" or a "bug report", depending on whether the current behavior is "by design" or not.

Thank you for the help. We have a csv file of hundreds of top-level terms and dozens of child terms - two levels only, but thousands of possible combinations - so this module will save us a lot of time if we can make it do what we want!

#1

Daniel_KM - September 13, 2009 - 07:26

Hi,

As you see, "update and merge" option is currently disabled for hierarchical import. So it's a by design problem...

Problem is to know how to manage duplicate terms. I've found a solution, but it will be added only next week.

Currently, there is a better and simpler thing to do: to use the new Children import with update merge option. This is available in release 4.4.

If your file is very big and you haven't access to server settings, you can read recommandation in advanced help (and first disable some modules).

Sincerely,

Daniel Berthereau
Knowledge manager

#2

BayouBill - September 13, 2009 - 12:41

"use the new Children import with update merge option...available in release 4.4."

Thanks, that worked great and solved this problem, but see http://drupal.org/node/576042 for a very minor bug I discovered when using the above approach.

 
 

Drupal is a registered trademark of Dries Buytaert.