PKM-er / obsidian-zotlit

A third-party project that aims to facilitate the integration between Obsidian.md and Zotero, by providing a set of community plugins for both Obsidian and Zotero.
https://zotlit.aidenlx.top
MIT License
674 stars 29 forks source link

Cannot create literature notes after upgrade to zotero 7 #383

Open springset opened 2 months ago

springset commented 2 months ago

I can no longer create literature notes from zotero items added/created after the upgrade to zotero 7. Older items (added before the switch) still generate literature notes using the exact same settings in zotero 7 and the plugins.

When trying to create a literature note from a recently added/created item, obsidian throws up the error message "Item not found" followed by a four digit code. (I presume the four digit value meant to appear as the "zt-attachment" property?) The issue persists for both items with and without attachments added after the update, but does not occur with items added before the update.

Screenshot 2024-09-14 at 11 09 48 AM

This is what the console shows each time I try to generate. The 4150 following id matches the missing item in the error message: Received URL action Object action : "zotero/export" items[0] : "{\"key\":\"TBSIB385\",\"id\":4150,\"libraryID\":1}" type : "item" version : "1.0.1" [[Prototype]] : Object

Any help figuring out how to get this working with newly added items is greatly appreciated!!

TrillStones commented 2 months ago

https://zotlit.aidenlx.top/zh-CN

Download the latest zotero and obsidian plug-ins

springset commented 1 month ago

Thank you, I did and the issue can to some extent be fixed by updating and refreshing, but persist whenever new items are added. It then takes a restart of zotero to allow for the creation of notes from newly added items. Somehow, links to item ids can only be found once the program has been shut down and restarted since the addition of any entries.