<?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 ObjectId Field Type is getting switched to esriFieldTypeInteger with other field data type in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/objectid-field-type-is-getting-switched-to/m-p/860351#M5664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are working with ArcGIS Desktop + Server 10.5.1 and we are publishing 2 services with 2 views which are having minor changes in fields but we want those 2 different services because of some specific requirements.&lt;/P&gt;&lt;P&gt;We are following steps to publish the services are:&lt;/P&gt;&lt;P&gt;1. DB from which these 2 views are getting accessed are already registered with ArcGIS server&lt;/P&gt;&lt;P&gt;2. We are registering these 2 views with database in ArcMap by specifying ObjectId field, Geometry field, spatial reference and it is succeeded&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. We are changing datasource of the layer with this registered view(where icon of view is changed post registration)&lt;/P&gt;&lt;P&gt;4.Saving the MXD and publishing it&lt;/P&gt;&lt;P&gt;5. Post publishing, 1 service is having correct Field Type as esriFieldTypeOID and other service is having Object Id field type as esriFieldTypeInteger.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any help would be appreciated about what is causing this issue?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To rectify this field swap, we are following below steps:&lt;/P&gt;&lt;P&gt;1. When we are adding view to ArcMap,We are getting 'New querylayer' window&lt;/P&gt;&lt;P&gt;2. We are again selecting ObjectID field as unique identifier and saving that as data source and publishing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help why this is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amruta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2020 07:01:09 GMT</pubDate>
    <dc:creator>AmrutaBildikar</dc:creator>
    <dc:date>2020-05-27T07:01:09Z</dc:date>
    <item>
      <title>ObjectId Field Type is getting switched to esriFieldTypeInteger with other field data type</title>
      <link>https://community.esri.com/t5/geodatabase-questions/objectid-field-type-is-getting-switched-to/m-p/860351#M5664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are working with ArcGIS Desktop + Server 10.5.1 and we are publishing 2 services with 2 views which are having minor changes in fields but we want those 2 different services because of some specific requirements.&lt;/P&gt;&lt;P&gt;We are following steps to publish the services are:&lt;/P&gt;&lt;P&gt;1. DB from which these 2 views are getting accessed are already registered with ArcGIS server&lt;/P&gt;&lt;P&gt;2. We are registering these 2 views with database in ArcMap by specifying ObjectId field, Geometry field, spatial reference and it is succeeded&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. We are changing datasource of the layer with this registered view(where icon of view is changed post registration)&lt;/P&gt;&lt;P&gt;4.Saving the MXD and publishing it&lt;/P&gt;&lt;P&gt;5. Post publishing, 1 service is having correct Field Type as esriFieldTypeOID and other service is having Object Id field type as esriFieldTypeInteger.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any help would be appreciated about what is causing this issue?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To rectify this field swap, we are following below steps:&lt;/P&gt;&lt;P&gt;1. When we are adding view to ArcMap,We are getting 'New querylayer' window&lt;/P&gt;&lt;P&gt;2. We are again selecting ObjectID field as unique identifier and saving that as data source and publishing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help why this is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amruta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 07:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/objectid-field-type-is-getting-switched-to/m-p/860351#M5664</guid>
      <dc:creator>AmrutaBildikar</dc:creator>
      <dc:date>2020-05-27T07:01:09Z</dc:date>
    </item>
  </channel>
</rss>

