<?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: All points hide on a map in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/all-points-hide-on-a-map/m-p/194940#M7708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved... let me expand on my issue and the resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;I had two services going to two different MS SQL views.&lt;/P&gt;&lt;P&gt;View 1 only displayed icons on the map if all the icons were in the current map extent.&lt;/P&gt;&lt;P&gt;View 2 displayed icons on the map regardless if the icons were in the current map extent or not.&lt;/P&gt;&lt;P&gt;When I grabbed the View, I was casting the coordinates to numeric type. This process has worked fine over the past 3 years. This morning, I had the problem stated above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Things Discovered:&lt;/P&gt;&lt;P&gt;In ArcMAP, I could do an Identify on the layer after they disappeared from the map - no identify results would appear - but an 'Error' did appear on the Identify window. I was able to mouse over the Error and see a popup explaining it was having issues with converting the varchar type to numeric.&lt;/P&gt;&lt;P&gt;View 1 coordinates came to me, from MS SQL as varchar type.&lt;/P&gt;&lt;P&gt;View 2 coordinates came to me, from MS SQL as int type.&lt;/P&gt;&lt;P&gt;In ArcMAP, looking at the fields in the layer properties you can see the Appearance \ Number Format is set to Numeric for both Views. But the Field Details \ Data Type was set to Float for View 1 and Double in View 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resolution:&lt;/P&gt;&lt;P&gt;Perform a second CAST on View 1 to change the coordinates from varchar type to int type, then cast as numeric.&lt;/P&gt;&lt;P&gt;Like so:&lt;/P&gt;&lt;P&gt;CAST(CAST(Latitude AS int) AS numeric) /1000000 as latitude, &amp;nbsp;CAST(CAST(Longitude AS int) AS numeric) /-1000000 as longitude&lt;/P&gt;&lt;P&gt;The math part is to add the decimal and negative characters back into the values. The varchar and int type removes the decimal and negative characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jun 2017 16:25:33 GMT</pubDate>
    <dc:creator>MarkLittell</dc:creator>
    <dc:date>2017-06-30T16:25:33Z</dc:date>
    <item>
      <title>All points hide on a map</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/all-points-hide-on-a-map/m-p/194939#M7707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using ArcGIS 10.5 Desktop and Server pulling a Query Layer from a MS SQL View.&lt;/P&gt;&lt;P&gt;When I move the map where a point falls of the current map extent, hit refresh, all the points remove from the map.&lt;/P&gt;&lt;P&gt;It does this in ArcMap and as a published service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 14:56:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/all-points-hide-on-a-map/m-p/194939#M7707</guid>
      <dc:creator>MarkLittell</dc:creator>
      <dc:date>2017-06-30T14:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: All points hide on a map</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/all-points-hide-on-a-map/m-p/194940#M7708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved... let me expand on my issue and the resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;I had two services going to two different MS SQL views.&lt;/P&gt;&lt;P&gt;View 1 only displayed icons on the map if all the icons were in the current map extent.&lt;/P&gt;&lt;P&gt;View 2 displayed icons on the map regardless if the icons were in the current map extent or not.&lt;/P&gt;&lt;P&gt;When I grabbed the View, I was casting the coordinates to numeric type. This process has worked fine over the past 3 years. This morning, I had the problem stated above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Things Discovered:&lt;/P&gt;&lt;P&gt;In ArcMAP, I could do an Identify on the layer after they disappeared from the map - no identify results would appear - but an 'Error' did appear on the Identify window. I was able to mouse over the Error and see a popup explaining it was having issues with converting the varchar type to numeric.&lt;/P&gt;&lt;P&gt;View 1 coordinates came to me, from MS SQL as varchar type.&lt;/P&gt;&lt;P&gt;View 2 coordinates came to me, from MS SQL as int type.&lt;/P&gt;&lt;P&gt;In ArcMAP, looking at the fields in the layer properties you can see the Appearance \ Number Format is set to Numeric for both Views. But the Field Details \ Data Type was set to Float for View 1 and Double in View 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resolution:&lt;/P&gt;&lt;P&gt;Perform a second CAST on View 1 to change the coordinates from varchar type to int type, then cast as numeric.&lt;/P&gt;&lt;P&gt;Like so:&lt;/P&gt;&lt;P&gt;CAST(CAST(Latitude AS int) AS numeric) /1000000 as latitude, &amp;nbsp;CAST(CAST(Longitude AS int) AS numeric) /-1000000 as longitude&lt;/P&gt;&lt;P&gt;The math part is to add the decimal and negative characters back into the values. The varchar and int type removes the decimal and negative characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 16:25:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/all-points-hide-on-a-map/m-p/194940#M7708</guid>
      <dc:creator>MarkLittell</dc:creator>
      <dc:date>2017-06-30T16:25:33Z</dc:date>
    </item>
  </channel>
</rss>

