It's all about the answers!

Ask a question

Attachments get deleted from RTC and CQ by CQ synchronizer after upgrade from to

Eric Jodet (6.3k5111120) | asked Jun 08 '12, 8:51 a.m.
Upon upgrading from RTC to,
I found that the CQ Gateway is deleting attachments upon synchronization.
Is this a bug?
Is there a workaround?

One answer

permanent link
Eric Jodet (6.3k5111120) | answered Jun 08 '12, 8:53 a.m.
This issue was identified as a regression and will be fixed with defect Invalid attachments field names gathered by the Change Event cause attachment deletion during incoming sync (204959)

Issue: we found that the latest version of the JazzInterop package introduces a regression that could cause the Attachments field name gathered by the Change Event to be invalid, which in turn causes attachments to be deleted.

This regression was likely introduced during implementation of CQ Synchronizer not handling multiple attachment fields even though sync rule is not syncing them (158915)

Workaround: revert the JazzInterop package to a version less than 1.10
or manually apply the following modification ot the CQ schema:
1. Enable package editing
At a dos command prompt, type the following, substituting the values as appropriate such as schema-repo-name, username, password, and username.
packageutil enablepackageediting -dbset schema-repo-name username password -enable username

2. In CQ designer, checkout the schema and locate this method "addAttachmentsRecords" (you can use "Find in Hook" with the CQ windows designer for this)

3. In the for loop, find this line
$field_value .= "<field name=\"$attachfield->GetFieldName()\"";

and replace it with
$field_value .= "<field name=\"Attachments\"";

4. Checkin the schema and upgrade the user database.

Your answer

Register or to post your answer.