<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Attachment Sync Bug? in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/attachment-sync-bug/m-p/1179705#M7389</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;When generating offline geodatabase, we don't want to download existing feature attachments but do want to be able to add offline attachments and sync the added attachments to the server.&lt;/P&gt;&lt;P&gt;To do it we&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. set&amp;nbsp;AGSGenerateGeodatabaseParameters.returnAttachments = false to not include existing attachments.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. set&amp;nbsp;AGSGenerateGeodatabaseParameters&lt;/SPAN&gt;.attachmentSyncDirection = AGSAttachmentSyncDirection.&lt;SPAN&gt;upload.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then we are able to add attachments to offline features. But the problem is that when sync the offline database, the added attachments failed to be synced to the server!!! Is this a bug or what am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, if set the&amp;nbsp;AGSGenerateGeodatabaseParameters.returnAttachments = true, the added offline attachments could be synced to the server. But the problem is that the existing attachments were downloaded to the offline database which we don't want...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;These are my previous posts about the issue for your information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/questions-about-geodatabase-feature-attachments/m-p/1176272#M7381" target="_blank"&gt;https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/questions-about-geodatabase-feature-attachments/m-p/1176272#M7381&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-geodatabase-attachments/m-p/653941" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-geodatabase-attachments/m...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shimin&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2022 02:15:51 GMT</pubDate>
    <dc:creator>ShiminCai</dc:creator>
    <dc:date>2022-06-03T02:15:51Z</dc:date>
    <item>
      <title>Attachment Sync Bug?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/attachment-sync-bug/m-p/1179705#M7389</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;When generating offline geodatabase, we don't want to download existing feature attachments but do want to be able to add offline attachments and sync the added attachments to the server.&lt;/P&gt;&lt;P&gt;To do it we&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. set&amp;nbsp;AGSGenerateGeodatabaseParameters.returnAttachments = false to not include existing attachments.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. set&amp;nbsp;AGSGenerateGeodatabaseParameters&lt;/SPAN&gt;.attachmentSyncDirection = AGSAttachmentSyncDirection.&lt;SPAN&gt;upload.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then we are able to add attachments to offline features. But the problem is that when sync the offline database, the added attachments failed to be synced to the server!!! Is this a bug or what am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, if set the&amp;nbsp;AGSGenerateGeodatabaseParameters.returnAttachments = true, the added offline attachments could be synced to the server. But the problem is that the existing attachments were downloaded to the offline database which we don't want...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;These are my previous posts about the issue for your information:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/questions-about-geodatabase-feature-attachments/m-p/1176272#M7381" target="_blank"&gt;https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/questions-about-geodatabase-feature-attachments/m-p/1176272#M7381&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-geodatabase-attachments/m-p/653941" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-geodatabase-attachments/m...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shimin&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 02:15:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/attachment-sync-bug/m-p/1179705#M7389</guid>
      <dc:creator>ShiminCai</dc:creator>
      <dc:date>2022-06-03T02:15:51Z</dc:date>
    </item>
  </channel>
</rss>

