Hi,

I try to import hierarchical taxonomy terms from a XML file. Feeds exports the terms, but not hierarchical. In my XML I have Groupname (title from the taxonomy), a Group-ID (GUID) and a parent-ID(Parent: GUID). Unfortunately, he does not build me the hierarchy.

What did I do wrong?

Part from my XML:

<CATALOG_STRUCTURE type="node">
        <GROUP_ID>NWAAA446h001</GROUP_ID>
        <GROUP_NAME>Arbeitssicherheit, Unfallschutz</GROUP_NAME>
        <PARENT_ID>1</PARENT_ID>
        <GROUP_ORDER>1</GROUP_ORDER>
        <MIME_INFO>
          <MIME>
            <MIME_TYPE>image/jpeg</MIME_TYPE>
            <MIME_SOURCE>P_4000380150_01_all.jpg</MIME_SOURCE>
            <MIME_DESCR>Primary Image</MIME_DESCR>
            <MIME_ALT />
            <MIME_PURPOSE>normal</MIME_PURPOSE>
            <MIME_ORDER>1</MIME_ORDER>
          </MIME>
        </MIME_INFO>
      </CATALOG_STRUCTURE>
      <CATALOG_STRUCTURE type="node">
        <GROUP_ID>NWAAF296h001</GROUP_ID>
        <GROUP_NAME>Bautechnik</GROUP_NAME>
        <PARENT_ID>1</PARENT_ID>
        <GROUP_ORDER>2</GROUP_ORDER>
        <MIME_INFO>
          <MIME>
            <MIME_TYPE>image/jpeg</MIME_TYPE>
            <MIME_SOURCE>A_4200000451_01_all.jpg</MIME_SOURCE>
            <MIME_DESCR>Primary Image</MIME_DESCR>
            <MIME_ALT />
            <MIME_PURPOSE>normal</MIME_PURPOSE>
            <MIME_ORDER>1</MIME_ORDER>
          </MIME>
        </MIME_INFO>
        <KEYWORD>Anwärmbrennerset</KEYWORD>
      </CATALOG_STRUCTURE>

Thx

Greetz Bavra

Comments

bavramor created an issue. See original summary.

MegaChriz’s picture

Status: Needs review » Fixed
  1. The parent ID has to have a value that is used by a group ID. In your file it seems that the Group ID can be "NWAAA446h001" while the parent ID is "1". If the parent ID is "1" there has to be a group ID with value "1".
  2. The order in which the terms are imported is important. The terms at the first level need to be imported first: Feeds will not be able to find a parent term if it is not imported yet.

In the dev version of Feeds an issue was fixed with importing hierarchical terms using two importers and two vocabularies: #2556461: Error when importing two hierarchical vocabularies with overlapping id's.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.