When I import term to an already existing Vocabulary, a new Vocabulary is created and filled.
I think there is a mix-up of the use of table taxonomy_vocabulary, fields 'vid' and 'name'.
This is what I do:
I have a vocabulary 'foo' . its vid = 4 and name = 'foo'.
I import 'full term definition and links', which i exported with the same.
In tab 4, I choose ' import in an existing vocabulary'. Field Vocabulary choice = 'foo'.
Now, I hit [import]. I get the following messages:
No error, warnings or notices have been reported during import process of 3 lines.
File "xxx" uploaded.
Source content: "Full term definition and links".
Existing terms choice: "Update (merge) existing term and items if exist else create".
A vocabulary has been used or created.
Vocabulary "2" has been used or created.
Hierarchy level has been manually set. Old hierarchy level was 0 (no parent (flat)).
Hierarchy level is 0 (no parent (flat)).
Total created or updated terms : 3. "Poster", "Table", "Window".
No more information reported about lines import.

Now watch the line "Vocabulary "2" has been used or created."
Although '2' is the correct vid of the existing vocabulary 'foo', the creates a new vocabulary with vid= and name='2'

Comments

Daniel_KM’s picture

Version: 7.x-5.3 » 7.x-5.5
Status: Active » Needs review

Hi,

In fact, module works as normal: format 'Full definition and links' is an exception, because the vocabulary is an item of each imported terms and it can be changed.

So I simplify process and it works now such as other formats.

Sincerely,

Daniel Berthereau
Knowledge manager

Daniel_KM’s picture

Status: Needs review » Closed (fixed)

Daniel Berthereau
Knowledge manager

alexbk66-’s picture

Version: 7.x-5.x-dev » 7.x-5.5
Status: Closed (fixed) » Active

@Daniel, I'm not sure what you mean by "module works as normal"?

I have the same issue - I want to import backup csv file into existing vocabulary, but instead it creates "Auto created vocabulary".

I use 'Full definition and links' format. Is it normal behaviour?

How else can I backup/restore vocabulary?

HobbyBlob.com

Daniel_KM’s picture

Version: 7.x-5.5 » 7.x-5.x-dev

Hi,

The issue was a true one and I fixed it today in 6.x-5.x and 7.x-5.x. See commit.

Sincerely,

Daniel Berthereau
Knowledge manager

alexbk66-’s picture

Version: 7.x-5.5 » 7.x-5.x-dev
Status: Active » Closed (fixed)

Thank you. Do you know when it's gonna be included in new release?

I'm not good in patching :(

HobbyBlob.com

Daniel_KM’s picture

Hi,

In the beginning of June: I'm currently check all old unsolved messages. You can use the development release available on the main taxonomy csv page.

Sincerely,

Daniel Berthereau
Knowledge manager