Errors in the card field


I’m using Anki to learn chinese and when some card pop up I’ve got the erroe message that the hanzi field cannot be found.

here is the code of the card



I’m using a card deck called James W. Heisig - Remembering Simplified Hanzi 1 & 2
Has anyone else has this kind of errors?
The error appeared when I updated Anki. Apparently new versions of anki are more strict about errors about the code , so that my be why this error appears now.

Anyway, any help is more that welcome.

Someone posted a solution to the issue in the deck page here: James W. Heisig - Remembering Simplified Hanzi 1 & 2 - AnkiWeb

Basically, just change {{hanzi}} in the card template to {{Hanzi}}


Thanks for you asnwer! Unfortunatelly I tried what your idea and it didn’t work. I still have the same error message.

Did you change the third card template? (I think that’s the one that has the problem).

Changing this fixed the problem for me:

1 Like

Thanks for your help Abdo. As you say the problem comes from the third card template.
I managed to edit it but it appears that Hanzi is already written with a capital letter.

How many changes am I supposed t make? Should I also edit “styling”?
Does everytime the word “hanzi” appears it should be with a capital H?

Every time Hanzi appears in curly brackets like {{Hanzi}} it should be capitalized.
I only had to change the third card template to fix the problem for a newly downloaded deck. So I’m not sure why it doesn’t work for you.
Maybe you made other changes to the note type previously? Could you post screenshots of the editor when the note type of the deck is selected or, even better, export the deck and upload it somewhere (like so I can test it?

1 Like


My problem is solved! I were missing a hankiin my card template. I needed to change 2 words instead of one! Thanks again for your help!
I have another question: I’ve made a vocabulary package and I would like to change the deck. The chinese vocabulary cards are now with my japanese deck and I would like to put these card pack to my chinese deck.
All I need is to export it and re-import it but I’ve also made notes (pinyin reading translation) for better use of my cards. When you change a card pack from deck to another one the notes are lost aren’ t they? What should I do?

A fatal error occurred, and Anki must close. Please report this message on the forums.
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=False sv=?
Add-ons, last update check: 2021-12-22 00:01:08

Caught exception:
Traceback (most recent call last):
File “aqt\”, line 101, in on_closures_pending
File “aqt\”, line 71, in
File "aqt\operations_init
.py", line 214, in wrapped_done
File “concurrent\”, line 432, in result
File “concurrent\”, line 388, in get_result
File “concurrent\futures\”, line 57, in run
File "aqt\operations_init
.py", line 199, in wrapped_op
File “aqt\”, line 544, in
File “anki\”, line 191, in fields_check
File “anki_backend\”, line 355, in note_fields_check
File "anki_backend_init
.py", line 126, in _run_command
pyo3_runtime.PanicException: called Result::unwrap() on an Err value: PoisonError { … }

Can someone help me ? thanks

You can simply use the Change Deck option in the browser under the Cards menu to move cards from one deck to another. The notes won’t be lost if this is all you want to do and if I understand your question correctly.
See Browsing - Anki Manual

1 Like

If it keeps happening after restarting, please see if there’s another error message hidden behind the first one.

Hi i resolved the problem thanks for helping