New Clozes/Edits Being Deleted Despite Using Text Field Protect Tag

I have noticed recently that edits I make to the Text field in AnKing have been getting deleted. I know this to be true because I will create new clozes out of existing AnKing cards and flag them blue, and in subsequent days I’ll be met with the “No cloze found” card that shows up when there is a cloze registered but the card it correlates to can’t be found, and this card is blue-flagged as well.

The error message is below. It specifically showed up when I tried to protect the Text field by right clicking the card in Browser and clicking the Protect Fields option:

Would anyone be able to provide some insight as to why this might be happening?

Error message (don't change this)
Anki 24.11 (87ccd24e)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):

  File "aqt.taskman", line 144, in _on_closures_pending

  File "aqt.taskman", line 88, in <lambda>

  File "aqt.taskman", line 108, in wrapped_done

  File "C:\Users\[redacted]\AppData\Roaming\Anki2\addons21\1322529746\gui\browser\browser.py", line 258, in on_done
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "concurrent.futures.thread", line 58, in run

  File "C:\Users\[redacted]\AppData\Roaming\Anki2\addons21\1322529746\gui\browser\browser.py", line 255, in update_note_tags
    aqt.mw.col.merge_undo_entries(undo_entry_id)

  File "anki.collection", line 1057, in merge_undo_entries

  File "anki._backend_generated", line 266, in merge_undo_entries

  File "anki._backend", line 172, in _run_command

anki.errors.InvalidInput: target undo op not found

Sentry link (for developers)

Please use AnkiHub > Help > Upload logs and data and let us know the filename shown.

@abdo.nh

1 Like

Also, just to make sure: can you confirm that all of your add-ons are up to date?

This can be done within Anki by going to Tools - Add-ons - Check for updates.

Just to make sure it’s not something immediately obvious staring us in the face. :slight_smile:

Yup all add-ons are up to date!

I’ll reply with the AnkiHub uploaded filename after it finishes

Here is the filename!

ankihub_addon_debug_info_5a2f0_1735511527.zip

Please let me know if there are any other steps or info I can provide

I suspect that error is due to some weird interaction with an add-on. Can you disable all add-ons except AnkiHub temporarily then try protecting the field?