Citations unlink in Google Docs when copied and pasted into a new document
Hello,
I hope you can help. I have a problem when using Zotero with Google Docs - all of my citations unlink when I copy and paste text between documents. I tried using the keyboard shortcuts, as well as the copy/paste commands from the 'Edit' menu in Gooogle Docs, and the result is the same in both cases.
I use Firefox (v 111.0.1 (64-bit)), my Zotero Connector (v5.0.107) is installed and available, my Zotero desktop app is open, and I am the only person working on on the documents in question.
The issue seems to be the same as the one described here: https://forums.zotero.org/discussion/90041/bug-report-google-docs-citations-are-unlinked-if-i-cut-and-paste-them however I am using Firefox, not Chrome
I have also noticed the instruction here: https://forums.zotero.org/discussion/89640/unlinked-citations-in-google-docs that the new document needs to be fully loaded first before copying and pasting the text, and so I ensured it is, but that didn't help.
My debug output log ID capturing this problem is the following: D1306427049
And the Report ID: 730762742
Steps to reproduce:
1. Open previously saved Doc1 (containing text with in-text citations and bibliography created by zotero) in Google Docs
2. Create a (new) Doc2 in Google Docs.
3. Copy and paste text with citations from Doc1 to Doc2
4. In Doc2, go to the ‘Zotero’ menu and click ‘refresh’ (or any other command)
5. All the citations become unlinked. Error message "You must insert a citation before performing this operation"
If you need any other information please let me know. Many thanks in advance for looking into it.
I hope you can help. I have a problem when using Zotero with Google Docs - all of my citations unlink when I copy and paste text between documents. I tried using the keyboard shortcuts, as well as the copy/paste commands from the 'Edit' menu in Gooogle Docs, and the result is the same in both cases.
I use Firefox (v 111.0.1 (64-bit)), my Zotero Connector (v5.0.107) is installed and available, my Zotero desktop app is open, and I am the only person working on on the documents in question.
The issue seems to be the same as the one described here: https://forums.zotero.org/discussion/90041/bug-report-google-docs-citations-are-unlinked-if-i-cut-and-paste-them however I am using Firefox, not Chrome
I have also noticed the instruction here: https://forums.zotero.org/discussion/89640/unlinked-citations-in-google-docs that the new document needs to be fully loaded first before copying and pasting the text, and so I ensured it is, but that didn't help.
My debug output log ID capturing this problem is the following: D1306427049
And the Report ID: 730762742
Steps to reproduce:
1. Open previously saved Doc1 (containing text with in-text citations and bibliography created by zotero) in Google Docs
2. Create a (new) Doc2 in Google Docs.
3. Copy and paste text with citations from Doc1 to Doc2
4. In Doc2, go to the ‘Zotero’ menu and click ‘refresh’ (or any other command)
5. All the citations become unlinked. Error message "You must insert a citation before performing this operation"
If you need any other information please let me know. Many thanks in advance for looking into it.
Does it work in a different browser? If you create a new document and insert fresh citations and then try to copy those? Do you see a "Zotero is updating your document" popup after pasting the text with citations in a new document? What if you manually insert some citations into the second document first?
Did you try disabling other extensions in Firefox?
With regards to your questions:
Q1. "Does it work in a different browser?"
- Safari - I am unable to check since Zotero Connector seems to require MacOS 11 or later, whilst I use 10.14.6
- Chrome - just checked, and the same problem occurs. The only difference is that once I paste the text into the new document and once Zotero is done updating it I get an error message saying: 'response not defined'. When I try to refresh the document afterwards, the citations unlink same as in the original problem. The Report ID for the problem in Chrome is the following: 1336844897
And steps to reproduce:
1. Open previously saved Doc1 (containing text with in-text citations and bibliography created by zotero) in Google Docs
2. Create a (new) Doc2 in Google Docs.
3. Copy and paste text with citations from Doc1 to Doc2
4. In Doc2 zotero updates the document and returns an error message 'response not defined'
4. In Doc2, go to the ‘Zotero’ menu and click ‘refresh’ (or any other command)
5. All the citations become unlinked. Error message "You must insert a citation before performing this operation"
Q2. "If you create a new document and insert fresh citations and then try to copy those?"
- This changes things a bit, however it doesn't fix the problem. Now, when I paste the text into the second document zotero updates it, then returns an error message saying 'response not defined'. When I click 'refresh' Zotero updates the document and doesn't unlink the citations. However, when I right-click on any of the citations and try to 'update it with zotero' it returns an error message 'Selected field b8iUll [the code changes with each citation] not returned from Docs backend'. The Report ID for this problem is the following: 1523047311
1. Create a (new) Doc2 in Google Docs. Add a citation with Zotero.
2. Open previously saved Doc1 (containing text with in-text citations and bibliography created by zotero) in Google Docs.
3. Copy and paste text with citations from Doc1 to Doc2
4. In Doc2 zotero updates the document and returns an error message 'response not defined'
5. In Doc2, go to the ‘Zotero’ menu and click ‘refresh’ (or any other command)
6. Zotero updates Doc2 and returns no notifications
7. Right-click on a citation in Doc2, click 'edit with zotero'
8. Zotero returns a message 'Selected field b8iUll not returned from Docs backend'
Q3. "Do you see a "Zotero is updating your document" popup after pasting the text with citations in a new document?"
- Yes, every time.
Q4. "What if you manually insert some citations into the second document first?"
- Same response as Q2
Q5. "Did you try disabling other extensions in Firefox?"
- Yes, and it does not change anything.
Also, if you refresh the original document, do you get a Zotero notification next to the Share button about unlinked citations?
And when I refresh the original document everything is fine - Zotero takes a moment to update it, and there are no notifications. All of the citations remain linked.
Thank you so much for all your help!
Can you confirm that if you press Refresh in the original document, the citations that you are trying to copy aren't flagged as unlinked?
Update ----
When I tried copy pasting another of these smaller sections I got the error message "The document citations are being edited by another Zotero user. Please try again later." The citations when pasted were unlinked. I unpasted, and refreshed both documents before attempting to copy paste again the same section, and it worked, but it is strange.
Also that might be related but sometimes when I try and "refresh" the citations in the document, it asks me to sign in again, as if I keep getting logged out.