<?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 Feature Service based on a SQL Server database not working in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/feature-service-based-on-a-sql-server-database-not/m-p/1211931#M59781</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I want to publish a Feature Service (also as Map Image service and WFS and WMS), using data that comes from a SQL Server database. I'm not the owner of that database, but I have access to some views that I have to use as the basis for that service (the service is a "read only" way to those views).&lt;/P&gt;&lt;P&gt;The views have an (SQL Server, 8 bytes) "bigint" Id field, that is turned into a "double" field when I add the view to an ArcGIS Map (I guess because that's the only 8 bytes type available to ArcGIS...). Not being able to use an integer field as primary key, ArcGIS creates "on the fly" an ESRI_OID field in the added layers.&lt;/P&gt;&lt;P&gt;I can publish the map as a service without any problem, but only the Map Image and WMS services seem to be working. When I add the Feature Service to a new map, nothing is shown (both in ArcGIS PRO and in ArcGIS Enterprise Map Viewer).&lt;/P&gt;&lt;P&gt;Using Fiddler, I can see the requests that ArcGIS Pro is launching:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ESRI_OID_request.png" style="width: 401px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51013i8C6C7FFD0C2DDCE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="ESRI_OID_request.png" alt="ESRI_OID_request.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The ArcGIS Pro requests are using the ESRI_OID field, a field that has no real existence in the database, and the operation causes this in the server log:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ESRI_OID_server_log.png" style="width: 627px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51014iDC933B651093FFB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="ESRI_OID_server_log.png" alt="ESRI_OID_server_log.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The ESRI_OID field is shown as one of the available fields in the service definition (according to the REST API documentation):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ESRI_OID_field.png" style="width: 970px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51015i35E08C1F59072DB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="ESRI_OID_field.png" alt="ESRI_OID_field.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I try to manually launch the same request removing the ESRI_OID field references, the service gives the expected response. So it looks like the service is working (kind of...), but ArcGIS Pro is not composing the right requests...&lt;/P&gt;&lt;P&gt;Is there a way of removing that field from the list of fields shared in the service? Or some other solution? Am I missing something? I guess, if I understand the docs, it could work if I had a different Id field that could be used directly by ESRI, saving me of having that ESRI_OID field...but as I said, I don't own the data.&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Pro 2.9.4 and ArcGIS Servre 10.9.1&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 10:25:44 GMT</pubDate>
    <dc:creator>RafaEsteveMartínez</dc:creator>
    <dc:date>2022-09-13T10:25:44Z</dc:date>
    <item>
      <title>Feature Service based on a SQL Server database not working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-service-based-on-a-sql-server-database-not/m-p/1211931#M59781</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I want to publish a Feature Service (also as Map Image service and WFS and WMS), using data that comes from a SQL Server database. I'm not the owner of that database, but I have access to some views that I have to use as the basis for that service (the service is a "read only" way to those views).&lt;/P&gt;&lt;P&gt;The views have an (SQL Server, 8 bytes) "bigint" Id field, that is turned into a "double" field when I add the view to an ArcGIS Map (I guess because that's the only 8 bytes type available to ArcGIS...). Not being able to use an integer field as primary key, ArcGIS creates "on the fly" an ESRI_OID field in the added layers.&lt;/P&gt;&lt;P&gt;I can publish the map as a service without any problem, but only the Map Image and WMS services seem to be working. When I add the Feature Service to a new map, nothing is shown (both in ArcGIS PRO and in ArcGIS Enterprise Map Viewer).&lt;/P&gt;&lt;P&gt;Using Fiddler, I can see the requests that ArcGIS Pro is launching:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ESRI_OID_request.png" style="width: 401px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51013i8C6C7FFD0C2DDCE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="ESRI_OID_request.png" alt="ESRI_OID_request.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The ArcGIS Pro requests are using the ESRI_OID field, a field that has no real existence in the database, and the operation causes this in the server log:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ESRI_OID_server_log.png" style="width: 627px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51014iDC933B651093FFB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="ESRI_OID_server_log.png" alt="ESRI_OID_server_log.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The ESRI_OID field is shown as one of the available fields in the service definition (according to the REST API documentation):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ESRI_OID_field.png" style="width: 970px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51015i35E08C1F59072DB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="ESRI_OID_field.png" alt="ESRI_OID_field.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I try to manually launch the same request removing the ESRI_OID field references, the service gives the expected response. So it looks like the service is working (kind of...), but ArcGIS Pro is not composing the right requests...&lt;/P&gt;&lt;P&gt;Is there a way of removing that field from the list of fields shared in the service? Or some other solution? Am I missing something? I guess, if I understand the docs, it could work if I had a different Id field that could be used directly by ESRI, saving me of having that ESRI_OID field...but as I said, I don't own the data.&lt;/P&gt;&lt;P&gt;I'm using ArcGIS Pro 2.9.4 and ArcGIS Servre 10.9.1&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 10:25:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-service-based-on-a-sql-server-database-not/m-p/1211931#M59781</guid>
      <dc:creator>RafaEsteveMartínez</dc:creator>
      <dc:date>2022-09-13T10:25:44Z</dc:date>
    </item>
  </channel>
</rss>

