ItemTypeId and sync error [answered]
I submitted a problem with sync, where the conflict resolution wizard closes abrubtly after a few pages and the sync fails with the message "ItemID not set before loading data". Unfortunately nobody has picked up the problem, so I started debugging. I'm new to Zotero code and some help would be appreciated.
From what I can see, sync fails when the remote object causing the exception has the following attributes:
_id = null
_itemTypeID = 1
_itemDataLoaded = false
The corresponding local object is deleted. The other remote objects in my sync list have _id = null, _itemTypeID = 14, and _itemDataLoaded = true. My guess is that the different value for _itemTypeID is causing some error in parsing the data received from the server.
Can someone clarify (give pointers to the javascript code about) the meaning of the different values of ItemTypeID? Please note that I might have been using different localized versions of Zotero (US and Italian) - I hope it doesn't depend on sort order.
Thanks,
marcello
Answer: ItemTypeID = 1 is a note item.
From what I can see, sync fails when the remote object causing the exception has the following attributes:
_id = null
_itemTypeID = 1
_itemDataLoaded = false
The corresponding local object is deleted. The other remote objects in my sync list have _id = null, _itemTypeID = 14, and _itemDataLoaded = true. My guess is that the different value for _itemTypeID is causing some error in parsing the data received from the server.
Can someone clarify (give pointers to the javascript code about) the meaning of the different values of ItemTypeID? Please note that I might have been using different localized versions of Zotero (US and Italian) - I hope it doesn't depend on sort order.
Thanks,
marcello
Answer: ItemTypeID = 1 is a note item.