<?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: Ability to serve non-sde table in Open Data in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/ability-to-serve-non-sde-table-in-open-data/m-p/501319#M2534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;After much discussion with support the problem is related to using ESRI_OID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use ESRI_OID in query layers to overcome the problem of not having a naively assigned unique column. It appears that queries generated from Open Data don't adequately account for this field. This is odd because querying ESRI_OID from the REST endpoint works. Too bad it isn't recognized through the Open Data spec. &lt;BR /&gt;Recommendation from ESRI rep was to add a unique column to all tables shared out to Open Data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a related note, for those struggling to get accurate row counts in Query Layers, assigning a new field with a unique value is possible:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt;"&gt; &lt;SPAN style="color: fuchsia;"&gt;ROW_NUMBER&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;()&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;OVER &lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;ORDER&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;BY&lt;/SPAN&gt; parcel&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;AS&lt;/SPAN&gt; row_num&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt;"&gt;&amp;nbsp;table&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Aug 2017 19:46:11 GMT</pubDate>
    <dc:creator>PhilLarkin1</dc:creator>
    <dc:date>2017-08-04T19:46:11Z</dc:date>
    <item>
      <title>Ability to serve non-sde table in Open Data</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/ability-to-serve-non-sde-table-in-open-data/m-p/501315#M2530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solution: Don't use ESRI_OID.&lt;BR /&gt;&lt;BR /&gt;TLDR: Downloading CSV's fails on Open Data. Data is served from Map Services hosting Query Layers from non-sde databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tables in MSSQL databases that I would like to offer on our Open Data site. I have published map services with these tables added as Query Layers, connected as either NT user ArcGISSOC and a&amp;nbsp;database account. The service publishes fine and I'm able to see rows in the Data and Table tabs of AGOL and Open Data Admin site. REST queries to these services returns data as expected. Unfortunately when attempting to download the data as a spreadsheet I receive a generic error '...Something went wrong with the server....'. Logs on the server give a string of errors: 'General geodatabase error occurred , Error performing query operation. Wait time of the request to the service ... has expired, Unable to process request, no instances for .... were available for 60 seconds.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Environment:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGIS Server 10.3&lt;/P&gt;&lt;P&gt;SQL Server 2008 R2&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.spokanecounty.org/arcgis/rest/services/Temp/OpenData_TableTest/MapServer/1/query?where=site_str_nbr+%3D+3808&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;outFields=&amp;amp;returnGeometry=false&amp;amp;returnTrueCurves=false&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;returnIdsOnly=true&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;returnDistinctValues=false&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;f=html"&gt;Example REST Endpoint&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://spokanecounty.maps.arcgis.com/home/item.html?id=1b3a009302d94ba384da246cc38bd99e"&gt;AGOL layer page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gisdatacatalog-spokanecounty.opendata.arcgis.com/datasets/09dde4f53dc14c9eb59a1135c3d6afdd_1?uiTab=table"&gt;Open data page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to know if Open Data is configured to accept Map Services with Query Layers configured in this way. If this isn't accepted, I'd like to know if there is an alternative that does not involve uploading CSV's to AGOL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/43773"&gt;Courtney Claessens&lt;/A&gt;‌ ,&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/45234"&gt;Klara Schmitt&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 00:01:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/ability-to-serve-non-sde-table-in-open-data/m-p/501315#M2530</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2017-05-12T00:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to serve non-sde table in Open Data</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/ability-to-serve-non-sde-table-in-open-data/m-p/501316#M2531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table should work. I recommend filing a ticket with support so they can get to the bottom of the errors you're seeing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, I noticed that you're on a very old version of the Open Data app. Do you have plans to upgrade soon? The new versions are more stable and offer more functionality.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -&lt;/P&gt;&lt;P&gt;Courtney&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 15:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/ability-to-serve-non-sde-table-in-open-data/m-p/501316#M2531</guid>
      <dc:creator>CourtneyClaessens</dc:creator>
      <dc:date>2017-05-12T15:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to serve non-sde table in Open Data</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/ability-to-serve-non-sde-table-in-open-data/m-p/501317#M2532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Courtney, thanks for your reply.&amp;nbsp;I'll see what support has to say.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our Open Data site is at v1.9. We are transitioning to 2.0.&lt;/P&gt;&lt;P&gt;This issue occurs at the new version as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="stand alone table v2 Open Data" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/350948_2017-05-12_9-26-09.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 16:23:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/ability-to-serve-non-sde-table-in-open-data/m-p/501317#M2532</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2017-05-12T16:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to serve non-sde table in Open Data</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/ability-to-serve-non-sde-table-in-open-data/m-p/501318#M2533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be related to a timeout setting. Smaller tables work fine. (string formatting in CSV is a bit mangled, but that is a different issue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temporary Example:&amp;nbsp;&lt;A class="link-titled" href="http://gisdatacatalog-spokanecounty.opendata.arcgis.com/datasets/f11faa797aec41a99de0360fbd81c7f5_3?uiTab=table" title="http://gisdatacatalog-spokanecounty.opendata.arcgis.com/datasets/f11faa797aec41a99de0360fbd81c7f5_3?uiTab=table"&gt;Dataset | Spokane County GIS Data Catalog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried bumping up the &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/tuning-and-configuring-services.htm"&gt;timeout duration&lt;/A&gt; on the service but that didn't help.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 16:49:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/ability-to-serve-non-sde-table-in-open-data/m-p/501318#M2533</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2017-05-12T16:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to serve non-sde table in Open Data</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/ability-to-serve-non-sde-table-in-open-data/m-p/501319#M2534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;After much discussion with support the problem is related to using ESRI_OID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use ESRI_OID in query layers to overcome the problem of not having a naively assigned unique column. It appears that queries generated from Open Data don't adequately account for this field. This is odd because querying ESRI_OID from the REST endpoint works. Too bad it isn't recognized through the Open Data spec. &lt;BR /&gt;Recommendation from ESRI rep was to add a unique column to all tables shared out to Open Data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a related note, for those struggling to get accurate row counts in Query Layers, assigning a new field with a unique value is possible:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt;"&gt; &lt;SPAN style="color: fuchsia;"&gt;ROW_NUMBER&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;()&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;OVER &lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;ORDER&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;BY&lt;/SPAN&gt; parcel&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;AS&lt;/SPAN&gt; row_num&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt;"&gt;&amp;nbsp;table&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 19:46:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/ability-to-serve-non-sde-table-in-open-data/m-p/501319#M2534</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2017-08-04T19:46:11Z</dc:date>
    </item>
  </channel>
</rss>

