added a comment -
2010-05-06 00:17:14 EDT This is frustrating since I can't repeat it reliably, but just now with 1.6 and latest sync I got this payload that throws 'object deleted will be resaved' exception. Looking at the payload, the persistentset 'delete' for uuid is clearly wrong. I am moving it to 'current' release and will continue to search for repeatable workflow.
failing payload example:
<items><SyncItem containedType="org.openmrs.PatientIdentifier" key="25196c84-40b3-4088-ab94-d1b71007101a" state="NEW"><content><
Unable to render embedded object: File (00:33.593-0500</dateCreated><uuid type="string">25196c84-40b3-4088-ab94-d1b71007101a</uuid><preferred type="boolean">false</preferred><identifierType type="org.openmrs.PatientIdentifierType">8d79403a-c2cc-11de-8d13-0010c6dffd0f</identifierType><identifier type="string">222222</identifier><creator type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</creator></org.openmrs.PatientIdentifier>) not found.[type="string">9637a2f0-154c-4836-b4f0-eda36febf604</uuid></org.openmrs.PatientIdentifier>|CDATA
[<org.openmrs.PatientIdentifier><uuid]]></content></SyncItem><SyncItem containedType="org.openmrs.Patient" key="2f5b91b4-23bc-4977-ac48-582374cacc87" state="UPDATED"><content><
Unable to render embedded object: File (00:33.593-0500</personDateChanged><personVoided type="boolean">false</personVoided><dateChanged type="timestamp">2010-05-04T10:00:33.593-0500</dateChanged><creator type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</creator><changedBy type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</changedBy><personChangedBy type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</personChangedBy><patient type="boolean">true</patient><personDateCreated type="timestamp">2010-05-04T09:52:23.000-0500</personDateCreated><voided type="boolean">false</voided><birthdate type="timestamp">1977-01-01T00:00:00.000-0600</birthdate><gender type="string">F</gender><dateCreated type="timestamp">2010-05-04T09:52:23.000-0500</dateCreated><uuid type="string">2f5b91b4-23bc-4977-ac48-582374cacc87</uuid><dead type="boolean">false</dead></org.openmrs.Patient>) not found.[type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</changedBy><middleName type="string">patid</middleName><person type="org.openmrs.Person">2f5b91b4-23bc-4977-ac48-582374cacc87</person><voided type="boolean">false</voided><familyName type="string">test2</familyName><dateCreated type="timestamp">2010-05-04T09:52:23.000-0500</dateCreated><givenName type="string">synco</givenName><uuid type="string">79a71053-fee4-4b49-afda-6ec97e93aa96</uuid><preferred type="boolean">true</preferred><dateChanged type="timestamp">2010-05-04T10:00:33.593-0500</dateChanged><creator type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</creator></org.openmrs.PersonName>|CDATA
[<org.openmrs.PersonName><changedBy]]></content></SyncItem><SyncItem containedType="org.openmrs.PatientIdentifier" key="019778a2-03dd-49b4-9ccc-84633ef21f8b" state="UPDATED"><content><
Unable to render embedded object: File (00:09.000-0500</dateCreated><uuid type="string">019778a2-03dd-49b4-9ccc-84633ef21f8b</uuid><voidReason type="string">Removed from new patient screen</voidReason><preferred type="boolean">false</preferred><dateVoided type="timestamp">2010-05-04T10:00:33.593-0500</dateVoided><identifierType type="org.openmrs.PatientIdentifierType">8d79403a-c2cc-11de-8d13-0010c6dffd0f</identifierType><identifier type="string">111111</identifier><creator type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</creator></org.openmrs.PatientIdentifier>) not found.[type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</voidedBy><patient type="org.openmrs.Patient">2f5b91b4-23bc-4977-ac48-582374cacc87</patient><location type="org.openmrs.Location">cd0613cf-c264-46fc-a954-5c849de98ed3</location><voided type="boolean">true</voided><dateCreated type="timestamp">2010-05-04T10:00:09.000-0500</dateCreated><uuid type="string">38009fee-226e-4605-a81a-d488be54c8e7</uuid><voidReason type="string">Removed from new patient screen</voidReason><preferred type="boolean">false</preferred><dateVoided type="timestamp">2010-05-04T10:00:33.593-0500</dateVoided><identifierType type="org.openmrs.PatientIdentifierType">8d79403a-c2cc-11de-8d13-0010c6dffd0f</identifierType><identifier type="string">1111112</identifier><creator type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</creator></org.openmrs.PatientIdentifier>|CDATA
[<org.openmrs.PatientIdentifier><voidedBy]]></content></SyncItem><SyncItem containedType="org.openmrs.PatientIdentifier" key="78729f54-f8b5-4602-aa5b-033eb0cd91ec" state="UPDATED"><content><
Unable to render embedded object: File (00:09.000-0500</dateCreated><uuid type="string">78729f54-f8b5-4602-aa5b-033eb0cd91ec</uuid><voidReason type="string">Removed from new patient screen</voidReason><preferred type="boolean">false</preferred><dateVoided type="timestamp">2010-05-04T10:00:33.593-0500</dateVoided><identifierType type="org.openmrs.PatientIdentifierType">8d79403a-c2cc-11de-8d13-0010c6dffd0f</identifierType><identifier type="string">12121-7</identifier><creator type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</creator></org.openmrs.PatientIdentifier>) not found.[type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</voidedBy><patient type="org.openmrs.Patient">2f5b91b4-23bc-4977-ac48-582374cacc87</patient><location type="org.openmrs.Location">8d6c993e-c2cc-11de-8d13-0010c6dffd0f</location><voided type="boolean">true</voided><dateCreated type="timestamp">2010-05-04T10:00:09.000-0500</dateCreated><uuid type="string">7266d2cf-4003-4922-9d2d-186eb96253e2</uuid><voidReason type="string">Removed from new patient screen</voidReason><preferred type="boolean">false</preferred><dateVoided type="timestamp">2010-05-04T10:00:33.593-0500</dateVoided><identifierType type="org.openmrs.PatientIdentifierType">8d79403a-c2cc-11de-8d13-0010c6dffd0f</identifierType><identifier type="string">333333synco</identifier><creator type="org.openmrs.User">ca836af4-4c1a-11df-a301-6248447b9da3</creator></org.openmrs.PatientIdentifier>|CDATA
[<org.openmrs.PatientIdentifier><voidedBy]]></content></SyncItem><SyncItem containedType="org.hibernate.collection.PersistentSortedSet" key="2f5b91b4-23bc-4977-ac48-582374cacc87|identifiers" state="UPDATED"><content><![action="update" properyName="identifiers" type="org.openmrs.Patient" uuid="2f5b91b4-23bc-4977-ac48-582374cacc87"/><entry action="update" type="org.openmrs.PatientIdentifier" uuid="019778a2-03dd-49b4-9ccc-84633ef21f8b"/><entry action="update" type="org.openmrs.PatientIdentifier" uuid="38009fee-226e-4605-a81a-d488be54c8e7"/><entry action="update" type="org.openmrs.PatientIdentifier" uuid="78729f54-f8b5-4602-aa5b-033eb0cd91ec"/><entry action="update" type="org.openmrs.PatientIdentifier" uuid="7266d2cf-4003-4922-9d2d-186eb96253e2"/><entry action="update" type="org.openmrs.PatientIdentifier" uuid="25196c84-40b3-4088-ab94-d1b71007101a"/><entry action="delete" type="org.openmrs.PatientIdentifier" uuid="9637a2f0-154c-4836-b4f0-eda36febf604"/></org.hibernate.collection.PersistentSortedSet>|CDATA
[<org.hibernate.collection.PersistentSortedSet><owner]]></content></SyncItem></items>
I was able to pass a voided identifier across when in 1.5 and the sync module.
Do you have a repeatable workflow to cause this bug Maros?