[Juris-M] "error updating your document. cannot generate JSON"
Upon upgrading to Juris-M from MLZ, this is the error that I ran into in Word. (Plugin 3.1.20)
"Zotero experienced an error updating your document. Cannot generate JSON from changed item."
What gives?
"Zotero experienced an error updating your document. Cannot generate JSON from changed item."
What gives?
To pin down the underlying error, I've put up a beta version here:
https://github.com/Juris-M/zotero/releases/tag/v4.0.27.1m33beta
The beta should include a note of the changed-fields records in the error message, which will help to pin down the source of the bug.
Does this make sense?
What are the conditions under which the error is triggered:
* Does it trigger on any document?
* If on a specific document, does it trigger on refresh, or when inserting a reference?
It appears that it triggers on this specific manuscript that I'm working on. I haven't tried other documents, but a brand-new document doesn't trigger the error.
On this specific document, it triggers both on refresh and when inserting a reference.
https://github.com/Juris-M/zotero/releases/tag/v4.0.27.1m33beta
I don't think this will clear the failure that you are seeing, but give it a try. If your error triggers again, beta3 will include the key of the item. If you pop the key string into the search box, it should open the item that caused the failure, so we can get a handle on the cause.
What do I do with the key? I put the key in the search box in Juris-M, but nothing comes up. (The key is TZ23K3TC.)
BTW, I already know which item that caused failure, because the error triggers when I try to insert a new reference, if that's what you're looking for.
It is triggered when records with MLZ-encoded data are synced down to an official Zotero client, and then added to a document (using official Zotero for Firefox or Standalone). When the document is later opened with MLZ (or Juris-M), the client attempts to decode the record contained in the document, and it throws this error.
I'll need to investigate a little further. I have a late-night online meeting coming up in the next few minutes, but I'll try to get this sorted out in the next few hours.
https://github.com/Juris-M/zotero/releases/tag/v4.0.27.1m33beta
If this fixes the error you have been getting, I'll make it a final release.
Thanks for your patience over this.
Just tried to work on a document I hadn't worked on for some months. When I try to update the document, Juris-M only shows
"Cannot generate JSON from changed item: {"key":"TEWH5N2Q","changed":{},"primaryData":false,"itemData":false,"itemDataAlt":false,"creators":false,"altCreators":{"0":{"en":true}},"deleted":false,"note":false,"source":false,"attachmentData":false}".
Updating the same document in Zotero Standalone works fine. I am using Juris-M 4.0.27.5m33 in Firefox.
(The Juris-M plugins are not updating automatically at the moment, hence the need to update manually. Auto updates will return soon I hope, when I find time to work on it.)
I still get the same error message, both with the plugin and the standalone.
However, what I wanted to post was that, for both inserting and editing citations, just trying multiple times works! The error pops up on the first one or two tries, and then it doesn't and the citation has been fixed - or occasionally, the error will pop up but the citation will be fixed anyway. Very mysterious, and I know, it seems absurd that any computer problem could be solved by just trying multiple times, but it's working for me. Also inconvenient, but at least workable for now as a quick fix.
I just tried again to add a cititation, it still throws the same error message (now with a different key, I assume the last time I tried to cite a different argument). Following amlai's advice, I tried several times, the fifth time it finally worked. However, I had the same problem again when I tried to insert the next citation, so that's not really an option.
After the error message, Libreoffice always jumped back to a particular paragraph in the document, which contains several long citations (for multiple sources).
Before trying, I had manually installed the newest Juris-M version.
Would it help if I delete this paragraph and cite all sources again? Would only try if this has at least a chance of success :)
The error message:
Cannot generate JSON from changed item: {"key":"RZFQ43C9","changed":{},"primaryData":false,"itemData":false,"itemDataAlt":false,"creators":false,"altCreators":{"0":{"en":true},"1":{"en":true},"2":{"en":true}},"deleted":false,"note":false,"source":false,"attachmentData":false
I feel that I am always only coming back to the Forum when something does not work. So on a more positive note, thank you for all the work you've put into Juris-M so far, it is very useful to me!
I only tested with a single creator, but your error relates to an item with three creators, and (although I didn't test for it) that may be relevant in this case.
I've made up a release (v4.0.28.7m52) and had it signed. Give it a try - if the error persists, we can dig a bit deeper.
Also, and I forgot to mention that before, before the error message I get the dialog that one of my references has been changed manually, asking if I want to keep the changes. Not sure if the two are related, but as I cannot successfully refresh the document I can not get rid of the first one either.
Also, if you copy-paste the bad paragraph into a fresh document, does it still throw the error there?
(For the moment, though, I think we can assume that the changed-item dialog and the refresh error are unrelated. I have another idea to try out for reproducing the problem here. To test, I'll need to sync my account, and it's currently occupied with a large library download. Committee meetings coming up, more news in a few hours.)
I am also getting that error every time I make a citation in Word. The second try it works, however. I am wondering about the Word plugin. Does it need to be cleared somehow or is it working from as soon as Juris-M is installed in FF over Zotero?
Zotero experienced an error updating your document.
Cannot generate JSON from changed item: {"key":"P8BXWQ4J","changed":{},"primaryData":false,"itemData":{"1261":true},"itemDataAlt":false,"creators":false,"altCreators":false,"deleted":false,"note":false,"source":false,"attachmentData":false}
* Be sure you have the latest version of Juris-M installed, from https://juris-m.github.io (JM Standalone or Juris-M for Firefox).
* If you are running JM Standalone alongside Firefox, be sure that (a) any official Zotero is disabled in Firefox, and (b) any Z/JM Word Integration plugin in Firefox is disabled.
Information on the item:
In Juris-M, set the quick search box (in the toolbar) to "All Fields & Tags," and paste the key ("P8BXWQ4J") into the box. That should pull up the item that is causing the error.
(1) If you can tell me what the item type of the item is, that will be helpful.
(2) If you can take a screenshot of the item data, post it to an image service like https://imgur.com, and post the URL back to this thread, that will be even more helpful.
(If you save aside a copy of the bad document, it will be useful as a worked example of the error.)
I have found that it is functional now that I am on a different Word doc. If the error returns I will post.