Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bypass Unresolved Attachment Keys in Notes #407

Open
Servinjesus1 opened this issue Jan 15, 2025 · 0 comments
Open

Bypass Unresolved Attachment Keys in Notes #407

Servinjesus1 opened this issue Jan 15, 2025 · 0 comments

Comments

@Servinjesus1
Copy link

I was getting a Uncaught (in promise) Error: annotation key not found: in Zotlit which turned out to be because Zotero notes for the item I was importing had links to annotations which referenced the old UID of the attachment. Somehow, ZotLit was trying to acquire the annotations from that UID instead of the attachment UID directly from the Item.

To reproduce, try:

  1. Create an annotation on a PDF in Zotero
  2. Add that annotation (drag and drop) onto a new Item note in Zotero
  3. Somehow update the attachment UID (without destroying the annotations?)
  4. Try importing the item into ZotLit (not the notes. I use the standard annotations template plus a backlink to the annotation page)

Confounding plugins might include Better Notes for Zotero which may change how Item Notes work or update.

For myself - if I see this error again - check the parentItem key in the individual annotation info versus the attachmentKey in the console error message.

  • Does changing the annotationKey also break? Not sure, it seems Zotero/BetterNotes updates the link in the note correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant