Help with bulk suggesting notes ERROR

OK, I found the source of the error. PDF2-Anki is apparently generating large IDs that AnkiHub can’t handle and this was causing a database error. Please follow the steps to fix the issue:

  1. Back up your collection to be safe using File > Create Backup.
  2. Select all PDF2-Anki notes in the browser.
  3. Open the debug console and paste the following code:
from anki.utils import guid64
from aqt import dialogs, mw

browser = dialogs.open("Browser", mw)
notes = []
for nid in browser.selected_notes():
    note = mw.col.get_note(nid)
    note.guid = guid64()
    notes.append(note)

mw.col.update_notes(notes)
  1. Press Ctrl+Enter and close the debug console.

You should now able to suggest the notes.

2 Likes