Card template 23 has a problem

I keep getting this message when I try to upload a deck
Import failed. Debugging info:
Traceback (most recent call last):
File “aqt/importing.py”, line 404, 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 “anki/importing/apkg.py”, line 44, in run
File “anki/importing/anki2.py”, line 41, in run
File “anki/importing/anki2.py”, line 64, in _import
File “/Users/sandragad/Library/Application Support/Anki2/addons21/1102281552/init.py”, line 69, in newImportNotes
shouldAdd = self._uniquifyNote(note)
File “anki/importing/anki2.py”, line 189, in _uniquifyNote
File “/Users/NAME/Library/Application Support/Anki2/addons21/1102281552/init.py”, line 287, in _mid
self.dst.models.update(model)
File “anki/models.py”, line 231, in update
File “anki/rsbackend_gen.py”, line 414, in add_or_update_notetype
File “anki/rsbackend.py”, line 267, in _run_command
anki.rsbackend.TemplateError: Card template ⁨23⁩ has a problem.

This is not enough information to help you.
If it is a deck uploaded somewhere, you could point us to it, otherwise you could upload the deck somewhere, and link us to it, so we can inspect it.

Assuming you’ve run Tools>Check Database in your collection first and it doesn’t help, and the issue occurs with add-ons disabled, it’s likely the shared deck has an invalid template, which recent Anki versions won’t accept. Please let the deck author know.

You can probably work around the issue by downgrading to 2.1.15, importing the deck, and then updating again.

1 Like

I have all of my decks under a main deck, and when i try to export the main deck, i get the following error.

I tried changing the location I export to but still get the error.
I can export the subdecks one at a time, but before doing that one-by-one I wanted to see what’s causing this error.
I also tried it in safemode but still nothing.
I was successful in exporting my anki as a collection however.

Thanks in advance,

Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2

Platform: Mac 10.16

Flags: frz=True ao=False sv=2

Add-ons, last update check: 2021-01-14 16:51:20

Caught exception:

Traceback (most recent call last):

File “aqt/taskman.py”, line 87, in _on_closures_pending

File “aqt/taskman.py”, line 59, in

File “aqt/exporting.py”, line 167, 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 161, in do_export

File “anki/exporting.py”, line 325, in exportInto

File “anki/exporting.py”, line 333, in doExport

File “anki/exporting.py”, line 238, in exportInto

File “anki/models.py”, line 231, in update

File “anki/rsbackend_gen.py”, line 414, in add_or_update_notetype

File “anki/rsbackend.py”, line 267, in _run_command

anki.rsbackend.TemplateError: Card template ⁨23⁩ has a problem.

Please see the answer on the topic I will join this one to.

1 Like