<?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 Synchronization for offline edition is not working for ArcGIS Runtime application in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/synchronization-for-offline-edition-is-not-working/m-p/415832#M4967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We created a desktop application&amp;nbsp;with the usage of ArcGIS Runtime for .NET 100.2.1.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are testing application on development&amp;nbsp;environment&amp;nbsp;and a separate on test&amp;nbsp;environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make offline edition available in runtime desktop application&amp;nbsp;we set all necessary&amp;nbsp;requirements:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;Global Id available&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Sync option available when publishing&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Versioning&amp;nbsp;available for&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;feature class&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;that offline edition is referring to.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also select option to create version for each offline map when publishing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/433566_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;T&lt;/STRONG&gt;&lt;STRONG&gt;he problem is that synchronization for the offline edition is working on a development environment but it&lt;/STRONG&gt;&lt;STRONG&gt;’s not working on the test&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;environment.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For the&amp;nbsp;test environment, only first download of gdb file for the offline edition is working but synchronizing changes is not working (delta changes).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice one difference in when I’m listing version in ArcMap:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;For a development environment version looks like this:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/433583_2.png" /&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;You can see replicas are created correctly for every version&amp;nbsp;on downloaded gdb.&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;2. For the test environment it’s like this:&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/433584_3.png" /&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Replicas are created from&amp;nbsp;dbo.DEFAULT version(only one example of creating a separate version), which in my opinion is not correct.&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN&gt;Synchronization for this environment is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;I don't know if this is related to the lack of synchronization, but it's the only difference I found between those two environments.&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;How to change creating a version from every downloaded map in a different&amp;nbsp;way than from published service properties?&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Why it's working differently (with the same settings)?&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Or maybe synchronization is not working&amp;nbsp;for another reason?&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jan 2019 15:16:35 GMT</pubDate>
    <dc:creator>EwaWalewska</dc:creator>
    <dc:date>2019-01-17T15:16:35Z</dc:date>
    <item>
      <title>Synchronization for offline edition is not working for ArcGIS Runtime application</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/synchronization-for-offline-edition-is-not-working/m-p/415832#M4967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We created a desktop application&amp;nbsp;with the usage of ArcGIS Runtime for .NET 100.2.1.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are testing application on development&amp;nbsp;environment&amp;nbsp;and a separate on test&amp;nbsp;environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make offline edition available in runtime desktop application&amp;nbsp;we set all necessary&amp;nbsp;requirements:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;Global Id available&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Sync option available when publishing&lt;/LI&gt;&lt;LI style="margin-left: 0in;"&gt;Versioning&amp;nbsp;available for&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;feature class&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;that offline edition is referring to.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also select option to create version for each offline map when publishing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/433566_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;T&lt;/STRONG&gt;&lt;STRONG&gt;he problem is that synchronization for the offline edition is working on a development environment but it&lt;/STRONG&gt;&lt;STRONG&gt;’s not working on the test&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;environment.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For the&amp;nbsp;test environment, only first download of gdb file for the offline edition is working but synchronizing changes is not working (delta changes).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice one difference in when I’m listing version in ArcMap:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL style="margin-top: 0in;"&gt;&lt;LI style="margin-left: 0in;"&gt;For a development environment version looks like this:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/433583_2.png" /&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;You can see replicas are created correctly for every version&amp;nbsp;on downloaded gdb.&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;2. For the test environment it’s like this:&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/433584_3.png" /&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Replicas are created from&amp;nbsp;dbo.DEFAULT version(only one example of creating a separate version), which in my opinion is not correct.&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN&gt;Synchronization for this environment is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;I don't know if this is related to the lack of synchronization, but it's the only difference I found between those two environments.&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;How to change creating a version from every downloaded map in a different&amp;nbsp;way than from published service properties?&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Why it's working differently (with the same settings)?&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Or maybe synchronization is not working&amp;nbsp;for another reason?&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 15:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/synchronization-for-offline-edition-is-not-working/m-p/415832#M4967</guid>
      <dc:creator>EwaWalewska</dc:creator>
      <dc:date>2019-01-17T15:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronization for offline edition is not working for ArcGIS Runtime application</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/synchronization-for-offline-edition-is-not-working/m-p/415833#M4968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible that in the Test environment when the replicas were generated it was defined as download only and not bidirectional?&amp;nbsp; When a download only replica is created it will not create a version, but is associated to default (or whatever version the source service is generated from).&amp;nbsp; This is certainly what you would see in this case, and also trying to do a bidirectional sync would fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A word of warning:&amp;nbsp; V&lt;/STRONG&gt;ersioned synchronization does not scale so if you plan to deploy to a&amp;nbsp;large user base I would consider finding a workflow that allows you to use an archive enabled database instead of versioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 16:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/synchronization-for-offline-edition-is-not-working/m-p/415833#M4968</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2019-01-17T16:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronization for offline edition is not working for ArcGIS Runtime application</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/synchronization-for-offline-edition-is-not-working/m-p/415834#M4969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you describe what you mean with the sync is not working? Do you get errors from the sync call on the Runtime side? Do you get errors returned as part of the sync objects? Or is it that the sync goes through but you cannot see the edits after that?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2019 18:08:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/synchronization-for-offline-edition-is-not-working/m-p/415834#M4969</guid>
      <dc:creator>AnttiKajanus3</dc:creator>
      <dc:date>2019-01-17T18:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronization for offline edition is not working for ArcGIS Runtime application</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/synchronization-for-offline-edition-is-not-working/m-p/415835#M4970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On Runtime side I'm getting an empty error. Logs on ArcGIS Server look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error executing tool. SyncFeatureServiceReplica Job ID: jfd86296bb12148ce81ddd73f663e3e12 : ErrorMsg@SyncGPService:{"code":400,"description":""} Failed to execute (Sync Feature Service Replica).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And code for synchronization&amp;nbsp;is look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;public async Task SyncGeodatabase()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var taskParameters = new SyncGeodatabaseParameters()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RollbackOnFailure = false,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;GeodatabaseSyncDirection = SyncDirection.Bidirectional&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var syncTask = await GeodatabaseSyncTask.CreateAsync(new Uri(configurationRepository.GetFeatureServiceUrl()));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var gdb = await Geodatabase.OpenAsync(this.geodatabasePath.Get());&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;foreach (GeodatabaseFeatureTable table in gdb.GeodatabaseFeatureTables)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;long tableId = table.ServiceLayerId;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SyncLayerOption option = new SyncLayerOption(tableId);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;option.SyncDirection = SyncDirection.Bidirectional;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;taskParameters.LayerOptions.Add(option);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SyncGeodatabaseJob job = syncTask.SyncGeodatabase(taskParameters, gdb);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;job.JobChanged += (s, e) =&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;EM&gt;if (job.Status == JobStatus.Succeeded)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;EM&gt;this.log.Debug(this.logHeader, "Synchronization is complete!");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;else if (job.Status == JobStatus.Failed)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;EM&gt;this.log.Debug(this.logHeader, job.Error.Message);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;else&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;this.log.Debug(this.logHeader, "Sync in progress ...");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;};&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;var result = await job.GetResultAsync();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 11:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/synchronization-for-offline-edition-is-not-working/m-p/415835#M4970</guid>
      <dc:creator>EwaWalewska</dc:creator>
      <dc:date>2019-01-18T11:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronization for offline edition is not working for ArcGIS Runtime application</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/synchronization-for-offline-edition-is-not-working/m-p/415836#M4971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said in my previous post, to me it looks like something weird happened when the replicas were generated and they are not bidirectional replicas.&amp;nbsp; I would try and sync just the one pointing to the child version.&amp;nbsp; However, it is possible that even that one is 'broken.'&amp;nbsp; There are issues with versioned sync and once a replica fails it will never work again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I warn you again....This approach of using a non-federated server with versioned synchronization &lt;STRONG&gt;will fail&lt;/STRONG&gt; down the line.&amp;nbsp; The sync versions start to collide and syncs start to fail, and once a replica has failed it needs to be replaced because it will never sync again.&amp;nbsp; Even esri will tell you this approach is bound to fail, because there are just too many versions all trying to post to default at the same time.&amp;nbsp; &lt;EM&gt;Please heed my warnings before it is too late&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 13:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/synchronization-for-offline-edition-is-not-working/m-p/415836#M4971</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2019-01-18T13:21:10Z</dc:date>
    </item>
  </channel>
</rss>

