<?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: Offline Data editing on Versioned Data in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-data-editing-on-versioned-data/m-p/112971#M1070</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the error infos, it looks to me that creating offline replica from versioned data works like sde database replication that requires data being registered as versioned without the option to move edits to base table. I think, in order to create a replica from versioned data, you would have to register your data as versioned without ticking that option box. However, to achieve your goal of showing data edits &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;immediately&lt;/SPAN&gt; after sync, would you consider setting up desktop processes of reconcile and post to run in a timely manner to move edits from delta to base and refresh the services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shimin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2016 22:50:13 GMT</pubDate>
    <dc:creator>ShiminCai</dc:creator>
    <dc:date>2016-04-05T22:50:13Z</dc:date>
    <item>
      <title>Offline Data editing on Versioned Data</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-data-editing-on-versioned-data/m-p/112968#M1067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have registered my layer as "Registered as&amp;nbsp; versioned" with the "Register the selected objects with the option to move edits to base". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can publish the the data the feature server with "Sync" features on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data can be used online, but when trying to "download the map" for "offline" use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The application logs says :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Error Domain=NSCocoaErrorDomain Code=400 "Failed to create replica." UserInfo={NSURL=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F52.28.226.146%2Farcgis%2Frest%2Fservices%2Fyyy%2Fyyyy%2FFeatureServer%2Fjobs%2Fj57ac7b5825c446e0a9e29de2faee7700%3Ff%3Djson%26token%3DQE3SFRWbxkrxEbwfgxz3w-54a8amIH1Rv7rcIAnrfGv1mM5C8pbi1QVr0rB_KjFC" rel="nofollow" target="_blank"&gt;http://52.28.226.146/arcgis/rest/services/yyy/yyyy/FeatureServer/jobs/j57ac7b5825c446e0a9e29de2faee7700?f=json&amp;amp;token=QE3SFRWbxkrxEbwfgxz3w-54a8amIH1Rv7rcIAnrfGv1mM5C8pbi1QVr0rB_KjFC&lt;/A&gt;&lt;SPAN&gt;, responseJSON={&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; error =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; code = 400;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; description = "Failed to create replica.";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastUpdatedTime = 1458648838000;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; replicaName = "";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultUrl = "";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = Failed;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; submissionTime = 1458648835000;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;}, NSLocalizedFailureReason=Failed to create replica.}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when checked "Arcgis server Manager" logs &lt;STRONG&gt;2 error occurs :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error 1&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Error executing tool.: ErrorMsg@SyncGPService:{"code":400,"description":"Failed to create replica."} Failed to execute (Create Feature Service Replica).&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Error 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Error: An error occurred while adding an entry to the FEATUREDATASET_CLASSES or the FEATURECLASSES table. [Read only data or unversioned data cannot be replicated. Data versioned with the option to move edits to base cannot be replicated. GlobalIDs are required for two way and one way replica data. Creating one way replica using archiving requires archiving the replicated parent data.].&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;The achivement goal is :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Publish a feature server to use on mobile for online/offline editing with versioned data and all changes and updates shown on service immediately. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What i have already tried :&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Read the prepare offline map and feature documentation and made sure that i had Global ID&lt;/LI&gt;&lt;LI&gt;When i do not use "Register the selected objects with the option to move edits to base" for data versioning option. Data is not displaying on the server when sync in offline mods.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why we need versioning :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To be able to change and edit on Arcmap and webservices for multiple users.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 12:37:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-data-editing-on-versioned-data/m-p/112968#M1067</guid>
      <dc:creator>ozcandurak</dc:creator>
      <dc:date>2016-03-22T12:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Offline Data editing on Versioned Data</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-data-editing-on-versioned-data/m-p/112969#M1068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not done this but I do see that your AGS error 2 says:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data versioned with the option to move edits to base cannot be replicated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens when you turn off that flag?&lt;/P&gt;&lt;P&gt;I assume you've checked your permissions in the database to verify the user taking the data off line has edit permissions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW - I'm working on scripting edits of versioned data and it's not trivial. &lt;/P&gt;&lt;P&gt;Not the same problem as yours but what I am learning is that there are a number of steps that have to be done in the right order.&lt;/P&gt;&lt;P&gt;There is a decent overview of editing versions, while it's just the PPT slides and it's not related to offline data, maybe something in here will spark a clue for you:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-1837?q=editting ver"&gt;https://community.esri.com/docs/DOC-1837?q=editting ver&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 18:16:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-data-editing-on-versioned-data/m-p/112969#M1068</guid>
      <dc:creator>PaulDavidson1</dc:creator>
      <dc:date>2016-04-05T18:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Offline Data editing on Versioned Data</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-data-editing-on-versioned-data/m-p/112970#M1069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ozcan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the issue that not able to create replica, my recommendation is first using this proxy application tool called “Charles” to capture the create replica request that triggered from Xcode simulator to server, and then you can save that request parameters in a file and copy&amp;amp;paste those parameters directly on REST (&lt;A href="http://52.28.226.146/arcgis/rest/services/yyy/" title="http://52.28.226.146/arcgis/rest/services/yyy/"&gt;http://52.28.226.146/arcgis/rest/services/yyy/&lt;/A&gt;FeatureServer/createReplica) to see if you can still get 400 error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="charlesReturnAttachment.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/193975_charlesReturnAttachment.png" style="width: 620px; height: 388px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can narrow down the issue if it is related to Server or SDK. Most likely, this is still reproduced on REST. Then you probably need to review this online documentation about how to prepare a versioned data for offline map: &lt;A href="http://server.arcgis.com/en/server/10.3/publish-services/linux/offline-maps-and-versioned-data.htm" title="http://server.arcgis.com/en/server/10.3/publish-services/linux/offline-maps-and-versioned-data.htm"&gt;Offline maps and versioned data—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 18:42:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-data-editing-on-versioned-data/m-p/112970#M1069</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-04-05T18:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Offline Data editing on Versioned Data</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-data-editing-on-versioned-data/m-p/112971#M1070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the error infos, it looks to me that creating offline replica from versioned data works like sde database replication that requires data being registered as versioned without the option to move edits to base table. I think, in order to create a replica from versioned data, you would have to register your data as versioned without ticking that option box. However, to achieve your goal of showing data edits &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;immediately&lt;/SPAN&gt; after sync, would you consider setting up desktop processes of reconcile and post to run in a timely manner to move edits from delta to base and refresh the services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shimin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 22:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-data-editing-on-versioned-data/m-p/112971#M1070</guid>
      <dc:creator>ShiminCai</dc:creator>
      <dc:date>2016-04-05T22:50:13Z</dc:date>
    </item>
  </channel>
</rss>

