Error Faced While Syncing

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 23.12.1 (1a1d4d54)  (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.22621

Traceback (most recent call last):

  File "anki.notes", line 154, in _field_index

KeyError: 'Sketchy 2'


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

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

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 99, in sync_with_ankiweb
    future.result()

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

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

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 118, in _on_sync_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\HP\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 110, in <lambda>
    task=lambda: ah_deck_updater.update_decks_and_media(to_sync_ah_dids),

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 61, in update_decks_and_media
    self._update_decks(ah_dids)

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 84, in _update_decks
    should_continue = self._update_single_deck(ah_did)

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 98, in _update_single_deck
    result = self._fetch_and_apply_deck_updates(ankihub_did)

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\gui\deck_updater.py", line 135, in _fetch_and_apply_deck_updates
    import_result = self._importer.import_ankihub_deck(

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 147, in import_ankihub_deck
    dids = self._import_notes(

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 237, in _import_notes
    ) = self._prepare_notes(notes_data=upserted_notes_data)

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 308, in _prepare_notes
    note, operation = self._prepare_note(

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 595, in _prepare_note
    changed = self._prepare_note_inner(

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 637, in _prepare_note_inner
    changed_fields = self._prepare_fields(

  File "C:\Users\HP\AppData\Roaming\Anki2\addons21\1322529746\main\importing.py", line 685, in _prepare_fields
    if note[field.name] != field.value:

  File "anki.notes", line 159, in __getitem__

  File "anki.notes", line 156, in _field_index

KeyError: 'Sketchy 2'

Sentry link (for developers)

It’s an issue in one of your subscribed decks. Please see this:

1 Like

can you just delete the note from your side? I am a maintainer on this deck, and I cant seem to sync any card of the deck without encountering this error, so my deck essentially shows 0 cards.

1 Like

Looks like you deleted the note (from the website I think) and the error is no longer occurring.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.