Anki Forums

Error when adding a new note

Today I came across the following error when I pressed Add after filling new note form. It happened to my few times on different computers - all with 2.1.29

An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. 
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem. 
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site. 
Debug info:
Anki 2.1.29 (bbff62bf) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-07-31 20:57:52

Caught exception:
Traceback (most recent call last):
  File "aqt\", line 490, in handler
  File "aqt\", line 479, in <lambda>
  File "aqt\", line 189, in _addCards
  File "aqt\", line 591, in saveAddModeVars
  File "lib\site-packages\anki\", line 87, in save
  File "lib\site-packages\anki\", line 231, in update
  File "lib\site-packages\anki\", line 414, in add_or_update_notetype
  File "lib\site-packages\anki\", line 265, in _run_command
anki.rsbackend.InvalidInput: InvalidInput { info: "attempt to save stale notetype" }

I didn’t either add or update any addon.
After closing the error message I could add a new note without further errors.

Can you reproduce the problem when you hold down the shift key while starting Anki to disable add-ons? If so, what steps should I take to trigger it?

Unfortunately (fortunately?) it hasn’t happened again… yet.