"Item x in this citation no longer exists in your Zotero database"
PROBLEM: When I attempt to add a new Zotero citation, or edit an old one, I get the error "Item X in this citation no longer exists in your Zotero database" with an offer to replace it. This happens for many, but not all, items in the document. I do not wish to replace all the items, as Zotero does not make it clear which item needs replacing, so finding the new citation ID is difficult.
BACKGROUND: Unfortunately, a complicated history! I use Zotero on two different Linux boxes (my desktop and my laptop). My old laptop (on which I used to edit this paper, along with the desktop) recently broke and I purchased a new one. This is the first time I am using Zotero on the new laptop. (I copied my entire home directory from old laptop to new laptop, so that is how the Zotero database got copied over.)
Additionally, since it has been several months since I have last attempted to edit the paper, the Zotero plugin has upgraded in the meantime. When I first opened the document, I was told that it needed to be upgraded "to work with Zotero 2.1 or later." I allowed the upgrade.
Desktop: Firefox 3.6.17, Ubuntu 10.04 (lucid), Zotero 2.1.5
Laptop: Firefox 3.6.17, Ubuntu 10.10 (maverick), Zotero 2.1.6
WHAT I'VE TRIED:
Laptop: using an old version of zotero.sqlite and re-syncing. This actually appeared to work for a while and I was able to add some new references, but then the problem recurred. (I don't know what I did to make the problem recur -- I don't think I did anything!)
I also tried copying zotero.sqlite from the desktop to the laptop. This never seemed to fix the problem.
I also tried editing the file directly on the desktop (the old version, not the version that I had edited on the laptop, so it did ask me to upgrade it again). This never seemed to fix the problem.
I am mailing a copy of the document to support@zotero.org.
I see that there has been a lot of discussion about similar problems on this forum and have tried to follow those suggestions but have had no success so far. Apologies if I did something dumb.
Thanks so much for any help you can give!
BACKGROUND: Unfortunately, a complicated history! I use Zotero on two different Linux boxes (my desktop and my laptop). My old laptop (on which I used to edit this paper, along with the desktop) recently broke and I purchased a new one. This is the first time I am using Zotero on the new laptop. (I copied my entire home directory from old laptop to new laptop, so that is how the Zotero database got copied over.)
Additionally, since it has been several months since I have last attempted to edit the paper, the Zotero plugin has upgraded in the meantime. When I first opened the document, I was told that it needed to be upgraded "to work with Zotero 2.1 or later." I allowed the upgrade.
Desktop: Firefox 3.6.17, Ubuntu 10.04 (lucid), Zotero 2.1.5
Laptop: Firefox 3.6.17, Ubuntu 10.10 (maverick), Zotero 2.1.6
WHAT I'VE TRIED:
Laptop: using an old version of zotero.sqlite and re-syncing. This actually appeared to work for a while and I was able to add some new references, but then the problem recurred. (I don't know what I did to make the problem recur -- I don't think I did anything!)
I also tried copying zotero.sqlite from the desktop to the laptop. This never seemed to fix the problem.
I also tried editing the file directly on the desktop (the old version, not the version that I had edited on the laptop, so it did ask me to upgrade it again). This never seemed to fix the problem.
I am mailing a copy of the document to support@zotero.org.
I see that there has been a lot of discussion about similar problems on this forum and have tried to follow those suggestions but have had no success so far. Apologies if I did something dumb.
Thanks so much for any help you can give!
I would love, love, love suggestions on how to keep this from happening again. I have come to dread coming back to any project with Zotero footnotes in it after an appreciable gap, as there always seems to be something unfixably wrong with the document. What am I doing wrong? I am using ODT, not DOC. OpenOffice, not Word. Allowing the plugin to upgrade (maybe that's my problem?).
Any help appreciated! Thanks,
Jessica
It is possible it actually IS all of them; as I am working through the document, giving it new references to replace the ones it can't find, it just keeps offering me more. It skips some, but then comes back to some -- maybe we are going to go through the whole document, out of order; I can't tell.
As I correct each error, I am offered a new one. Periodically it does not offer me a new one, but instead complains that it can't update the document because a reference is missing (yeah, you think?). If I then try to add a reference or edit a reference, it starts offering me more references to find replacements for -- different ones from before. Since the document still doesn't say it's been edited, I am a little worried that all this work is just going straight down the drain.
Jessica
I created a new document and was able to add the same citation to that one, no problem.
Is my document just completely hosed? Do I have to start entirely from scratch? I am trying not to get all stressed out about this, but I can feel myself starting to slide down the slope :)
Jessica
If you check your messages on zotero.org, I can supply you with a copy of Zotero 2.1.6 that has the latest version of the citeproc-js processor. I can't guarantee a positive result, but I would be very interested to know whether the problems in your document heal up with the processor revision.
Frank, why would a processor issue affect the ability of Zotero to find an item in the database?
Technical note: One issue I've fixed that might be relevant relates to previewing. If the processor crashed for some reason while generating the preview string, it threw an error that Zotero would step past. This left the processor registry out of harmony with the actual state of the document, which could cause various errors. An empty preview box does suggest, at least, that there may be an issue there in Jessica's document.
(Edit: to clarify, by "step past", I mean that the processor crash would hang the plugin popup, but would not bring down Zotero. Any subsequent edit or insert attempts would then have unpredictable results, because the processor registry contents are incomplete or incorrect.)
Would you like to see a copy of the newest version of the document, in which I replaced all the references, which now will not let me edit/add new references? (I should say: it does not let me edit it on my laptop; I tried copying it to my desktop, where I got the old "item X does not exist in your database" error.)
I still wonder if the fact that I got a new laptop a few months ago has anything to do with this. I did try to clean up my database by using an older version of zotero.sqlite. Is there something else I can do? (My desktop has not been changed; I get the same error there; but perhaps syncing with the laptop db broke that.) Can I completely get rid of zotero.sqlite and download a clean db from your server?
1) Hover over a citation bookmark that shows as missing, and you should see a URI that includes an 8-character key, e.g., "AB2G6WBW". (If using fields in Word, you would have to right-click and select Toggle Field Codes.)
2) In your Firefox address bar, paste this URL: Replace "AB2G6WBW" with the key from the bookmark.
If the item does exist in your library, you should see a generated report with its data.
It sounds like the item does not exist in my library -- but I see it there, so I guess the ID is just wrong. So then it is NOT a processor problem?
(Dan: btw, sorry about the confusion on the General forum -- I meant to discuss a broader problem, not reopen this one.)
And I understood that you were trying to discuss a broader problem, but there's nothing to discuss in the abstract—we can only debug specific, reproducible problems.
My guess is that you manually deleted duplicates or otherwise cleaned out your library a few days ago, and so citation links were lost. That's really all there is to it.
Duplicate detection functionality that preserves citation links is forthcoming.
I still don't know why the new version of the document won't let me add or edit citations. I guess the way forward there is to just cut and paste and redo that from scratch.
ajlyon: I never exported and reimported my library, but I did move my local database to my new laptop. I am still unsure if that is what broke things. All I did to move it was copy my home directory from old to new laptop. Do you know if there is a different way that I should have copied it over (that I should deal with this the next time I get a new computer)?
I swear to god it was broken yesterday and that I stopped and restarted Oo and Firefox before posting about it.
I seem to be entirely unstuck now and moving forward. Frustrated that this was such a nebulous problem to report and sympathetic that it was a nebulous problem to try to debug. Thanks for all the help.
Jessica