<?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 Re: ApplyDeltaAsync giving Update failure in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/applydeltaasync-giving-update-failure/m-p/1561215#M13136</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Since this is a local geodatabase, could the reason be that there is a db-lock that indicates editing going on? Maybe the client application has to disconnect from the database.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 13:35:24 GMT</pubDate>
    <dc:creator>HaraldLund</dc:creator>
    <dc:date>2024-11-21T13:35:24Z</dc:date>
    <item>
      <title>ApplyDeltaAsync giving Update failure</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/applydeltaasync-giving-update-failure/m-p/1561190#M13135</link>
      <description>&lt;P&gt;Semi-offline WPF app. We sync a local Geodatabase from a version-enabled FeatureServer, with "create new version for each downloaded map" = true (AGE).&lt;/P&gt;&lt;P&gt;I am using REST API calls, not the SDK methods, as I have some special needs.&lt;/P&gt;&lt;P&gt;Situation:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have created a new gdb by calling /createReplica&lt;/LI&gt;&lt;LI&gt;I edited a feature in default via a web interface (attribute value change)&lt;/LI&gt;&lt;LI&gt;I edited the same feature in my WPF app (geometry change)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When I want to synchronize the local gdb with server, I do&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;GeodatabaseSyncTask.ExportDeltaAsync()&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;call to /uploads/upload with the local delta&lt;/LI&gt;&lt;LI&gt;call to /synchronizeReplica with&amp;nbsp;&lt;OL&gt;&lt;LI&gt;syncDirection=upload&lt;/LI&gt;&lt;LI&gt;editsUploadID=ID that I got from the upload&lt;/LI&gt;&lt;LI&gt;async=true&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;I poll the job status until completion&lt;/LI&gt;&lt;LI&gt;call to /versions/{myReplicaVersion}/reconcile&lt;OL&gt;&lt;LI&gt;wrapped in start and stop of reading and editing&lt;/LI&gt;&lt;LI&gt;abortIfConflicts=false&lt;/LI&gt;&lt;LI&gt;conflictDetection=byAttribute&lt;/LI&gt;&lt;LI&gt;withPost=true&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;call to&amp;nbsp;/synchronizeReplica with&lt;OL&gt;&lt;LI&gt;syncDirection = download&lt;/LI&gt;&lt;LI&gt;async=true&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;I poll the job status until completion&lt;OL&gt;&lt;LI&gt;here I get a "remote" delta geodatabase&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;GeodatabaseSyncTask.ApplyDeltaAsync(gdb, remoteDeltaFile)&lt;OL&gt;&lt;LI&gt;here I get "Service error code 3070: Update failure. There are pending edits on the feature. This feature will not be synchronized."&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see my local changes have been applied to default.&lt;/P&gt;&lt;P&gt;I can understand why I am getting the error in point 8. What do I do to make the ApplyDelta work?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 12:22:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/applydeltaasync-giving-update-failure/m-p/1561190#M13135</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2024-11-21T12:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyDeltaAsync giving Update failure</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/applydeltaasync-giving-update-failure/m-p/1561215#M13136</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Since this is a local geodatabase, could the reason be that there is a db-lock that indicates editing going on? Maybe the client application has to disconnect from the database.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 13:35:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/applydeltaasync-giving-update-failure/m-p/1561215#M13136</guid>
      <dc:creator>HaraldLund</dc:creator>
      <dc:date>2024-11-21T13:35:24Z</dc:date>
    </item>
  </channel>
</rss>

