Exporting a deck to computer

Tried to export a deck and followed all the necessary steps to try and fix it but I am still receiving this error message. I tried to delete the template that its saying the card is identical to but that didn’t work either. Any help would be appreciated.

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=False sv=2
Add-ons, last update check: 2022-06-06 09:44:49

Caught exception:
Traceback (most recent call last):
File “aqt/taskman.py”, line 101, in _on_closures_pending
File “aqt/taskman.py”, line 71, in
File “aqt/exporting.py”, line 173, in on_done
File “concurrent/futures/_base.py”, line 432, in result
File “concurrent/futures/_base.py”, line 388, in __get_result
File “concurrent/futures/thread.py”, line 57, in run
File “aqt/exporting.py”, line 167, in do_export
File “anki/exporting.py”, line 342, in exportInto
File “anki/exporting.py”, line 350, in doExport
File “anki/exporting.py”, line 253, in exportInto
File “anki/models.py”, line 539, in update
File “anki/_backend/generated.py”, line 450, in add_or_update_notetype
File “anki/_backend/init.py”, line 131, in _run_command
anki.errors.TemplateError: Card template ⁨2⁩ in notetype ‘⁨Basic (and reversed card)-badb1⁩’ has a problem.
The front side is identical to card template ⁨1⁩.

Could you publish the faulty templates?




Well, it seems to me that “Card 1” and “Card 2” have exactly the same templates. In particular, this means they have the same front side, which Anki won’t allow (because you wouldn’t be able to distinguish between which answer to give, in general; in your case, it would just generate twice the same card, which is useless). Just remove on of the two card templates.

Is there a way that I can do this without deleting all of the cards that use the template?

No, that’s the whole point! You seem a little bit confused about this card template story, I would recommend reading the card templates section of the manual. The problem is that you currently have redundancy in your collection, and Anki doesn’t like that. You should just get rid of that redundancy and everything will be fine.

EDIT: just to be clear, if you’re afraid you don’t really know what you are doing and fear loosing part of your collection, I would recommending backing up before doing anything. However, you must also know that by deleting a card template, you are not deleting your notes (ie. what you type when you add new stuff to your collection), and it’s as easy as recreating that card template to instantly recreate all the cards you have deleted this way.

2 Likes

To restate things a bit more clearly: you have two copies of every card. Removing the second template will just remove the duplicates.

1 Like