I should add that deck B failed to import, so this is clearly causing problems.
It seems there can’t be two independent decks with the same field names and values. This might actually happen in the real world since people often use generic field names like “Front” and “Back”.
In the import dialog there are three options. The default one is to skip notes with an already existing first field. But you can also choose to import them anyway or to update the existing notes.
Import test2.apkg: you should get TEST2 Swahili deck but it fails to import.
Both decks define a note type with exactly thee same field, but the note IDs are different (as are the deck IDs), so really importing one deck shouldn’t affect the importing of the other deck - but it does.
I think this is because the notes have the same GUID.
This may be an issue with the way genanki generates GUIDs; it uses the note fields to generate them, but since both notes have the same content, they will get the same GUID.
You can provide an explicit guid argument to genanki.Note or override the guid property.
Well, as GUIDS are supposed to be unique identifiers (each different note is supposed to have a different GUID), I think Anki doesn’t have to check anything other than them when importing. There is a probability of clash in GUIDS generated by Anki but it’s negligable.
(That’s my limited understanding of the situation, maybe @dae can clarify it further)
I think the original intention was to combine notetype ID + guid to get a standard UUID size, but I don’t think the current code is doing that. I’d be surprised if conflicts were common in practice however, outside of usage of third-party tools that are not generating them randomly.
Hi. I have the same problem. I’m importing different apkg decks that probably contain notes with the same IDs. I’d still like to import the decks as is without any skips.
My usecase: study three decks simultaneously 2.0HSK1-3 deck, new 3.0HSK1 deck and 2.0HSK4 deck. Currently I can’t even import 3.0HSK1 because almost all notes there are originally taken form 2.0HSK1-3 deck.