<?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 saving feature layer using globalid in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/saving-feature-layer-using-globalid/m-p/637792#M16406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to save an ArcSDE feature item using the globalid rather than the objectid?&amp;nbsp; If you want the details of the scenario continue reading otherwise skip to 2) below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a load balanced environment so our servers, database and application are duplicated on 2 servers.&amp;nbsp; Users will be adding features on server 1 and server 2.&amp;nbsp; These features need to be available on both servers so we are using the Microsoft Sync Framework to sync the feature class tables.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're running into 2 problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Objectid's can be reused after being deleted.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a feature and it's assigned objectid 1000 on server 1.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Run the sync process to add objectid 1000 to server 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Delete objectid 1000 and sync so it's removed from both tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since objectid's are reused (they're not sequential) objectid 1000 might/will be reused and when it is reused it will not sync with the other table because it's in the change tracking table as being deleted when it was used the first time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) To avoid the problem in #1, I changed the primary key from objectid to globalid to make the sync framework work properly.&amp;nbsp; Now I have 2 different features in the table with the same objectid.&amp;nbsp; When I edit one, the other also gets updated.&amp;nbsp; Is it possible to save, delete, etc. based on globalid rather than objectid?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope I explained this well enough.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2013 15:31:57 GMT</pubDate>
    <dc:creator>JeffRogholt</dc:creator>
    <dc:date>2013-03-14T15:31:57Z</dc:date>
    <item>
      <title>saving feature layer using globalid</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/saving-feature-layer-using-globalid/m-p/637792#M16406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to save an ArcSDE feature item using the globalid rather than the objectid?&amp;nbsp; If you want the details of the scenario continue reading otherwise skip to 2) below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a load balanced environment so our servers, database and application are duplicated on 2 servers.&amp;nbsp; Users will be adding features on server 1 and server 2.&amp;nbsp; These features need to be available on both servers so we are using the Microsoft Sync Framework to sync the feature class tables.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're running into 2 problems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Objectid's can be reused after being deleted.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create a feature and it's assigned objectid 1000 on server 1.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Run the sync process to add objectid 1000 to server 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Delete objectid 1000 and sync so it's removed from both tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since objectid's are reused (they're not sequential) objectid 1000 might/will be reused and when it is reused it will not sync with the other table because it's in the change tracking table as being deleted when it was used the first time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) To avoid the problem in #1, I changed the primary key from objectid to globalid to make the sync framework work properly.&amp;nbsp; Now I have 2 different features in the table with the same objectid.&amp;nbsp; When I edit one, the other also gets updated.&amp;nbsp; Is it possible to save, delete, etc. based on globalid rather than objectid?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope I explained this well enough.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 15:31:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/saving-feature-layer-using-globalid/m-p/637792#M16406</guid>
      <dc:creator>JeffRogholt</dc:creator>
      <dc:date>2013-03-14T15:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: saving feature layer using globalid</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/saving-feature-layer-using-globalid/m-p/637793#M16407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I dug further into the Sync Framework and it's possible to clean up the delete entries of the _tracking table so I no longer need to use the GlobalID's.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 15:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/saving-feature-layer-using-globalid/m-p/637793#M16407</guid>
      <dc:creator>JeffRogholt</dc:creator>
      <dc:date>2013-03-15T15:44:10Z</dc:date>
    </item>
  </channel>
</rss>

