<h2>Unable to capture attachments in the sys_update_set and sys_update_version tables</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Description</h3><section><div> <div>Attachment is missing in the following scenarios:<br /></div> </div> <div id="activity_5c8c2ceedb3f201092bb0b55ca961903"> <div> <div>- When reverting a file to a previous version [or]</div> <div>- When capturing the changes of file with attachment via update set and committing in other instance.</div> <br /></div> <div><br /></div> <div>STEPS TO REPRODUCE:</div> <div> <div>Scenario 1: When reverting a file[ex., script include] to a previous version:</div> <div>- Add an attachment in the script include and save the record.</div> <div>- Now revert it to a previous version.</div> <div>- We will notice that the attachment is missing</div> <div>Scenario 2: When capturing the changes of file[ex., script include] with attachment via update set and committing in other instance:</div> <div>- Make the update set current.</div> <div>- Add an attachment in the script include and update the short description.</div> <div>- Now mark the update set as complete.</div> <div>- Commit the update set in the target instance.</div> <div>- Only the change related to the short description was modified but the attachment was not added to the script include.</div> </div> </div></section></div><div ><h3 >Cause</h3><section><div>- Attribute "synch_attachments" was not marked as true on the table.</div> <div>- synch_attachments: Similar to update_synch but writes the file attachments of the record to update sets.</div></section></div><div ><h3 >Resolution</h3><section><div>Add the attribute - "synch_attachments=true" on the dictionary record of type - "collection" on the table</div> <div>1. Go sys_dictionary.LIST</div> <div>- Filter type=collection and table=<tablename></div> <div>- Add the attrbute - "synch_attachments=true"</div> <div>It will fix the issue.</div> <div>Please refer the documentation for the details of attribute:synch_attachments=true</div> <div><a href="https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/reference-pages/concept/c_DictionaryAttributes.html" rel="nofollow">https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/reference-pages/concept/c_DictionaryAttributes.html</a></div></section></div></article></div>