<?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 Query distinct fail on 10.5 with field longer than 22 char in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235608#M1170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;I'm trying to get the domain of value for a field with 23 characters and it fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;Here is the query I'm doing on 10.5:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;queryf=json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;where=1=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;returnGeometry=false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;spatialRel=esriSpatialRelIntersects&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;outFields=UTILISATEURMODIFICATION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;returnDistinctValues=true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;orderByFields=UTILISATEURMODIFICATION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;It returns&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000000; font-size: 13px;"&gt;{"error":{"code":400,"message":"Failed to execute query.","details":[]}}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;When I remove the returnDistinctValues, it works fine but I get every records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;I tried the same exact query on 10.3 with the same MXD and data and the returnDistinct works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;Here is the log from the server:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE style="background-color: #ffffff;"&gt;&lt;TBODY&gt;&lt;TR class="" style="height: 45px;"&gt;&lt;TD class="" style="font-weight: bold; font-size: 0.9em; margin: 0px 0px 3px; padding: 3px 11px 5px 0px; height: 45px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;Geodatabase error: Attribute column not found [42S22:[Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'UTILISATEURMODIFICATIO'.] .&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;It seems the last characters are truncated. I have the same problem with other fields:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;STRONG style="color: #000000; font-size: 13px;"&gt;Geodatabase error: Attribute column not found [42S22:[Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'INDICATEURPROTECTIONGE'.]&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Oct 2017 18:22:38 GMT</pubDate>
    <dc:creator>FrancisGagne</dc:creator>
    <dc:date>2017-10-13T18:22:38Z</dc:date>
    <item>
      <title>Query distinct fail on 10.5 with field longer than 22 char</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235608#M1170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;I'm trying to get the domain of value for a field with 23 characters and it fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;Here is the query I'm doing on 10.5:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;queryf=json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;where=1=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;returnGeometry=false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;spatialRel=esriSpatialRelIntersects&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;outFields=UTILISATEURMODIFICATION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;returnDistinctValues=true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;&amp;amp;orderByFields=UTILISATEURMODIFICATION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;It returns&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000000; font-size: 13px;"&gt;{"error":{"code":400,"message":"Failed to execute query.","details":[]}}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;When I remove the returnDistinctValues, it works fine but I get every records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;I tried the same exact query on 10.3 with the same MXD and data and the returnDistinct works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;Here is the log from the server:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE style="background-color: #ffffff;"&gt;&lt;TBODY&gt;&lt;TR class="" style="height: 45px;"&gt;&lt;TD class="" style="font-weight: bold; font-size: 0.9em; margin: 0px 0px 3px; padding: 3px 11px 5px 0px; height: 45px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;Geodatabase error: Attribute column not found [42S22:[Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'UTILISATEURMODIFICATIO'.] .&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px;"&gt;It seems the last characters are truncated. I have the same problem with other fields:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;STRONG style="color: #000000; font-size: 13px;"&gt;Geodatabase error: Attribute column not found [42S22:[Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid column name 'INDICATEURPROTECTIONGE'.]&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 18:22:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235608#M1170</guid>
      <dc:creator>FrancisGagne</dc:creator>
      <dc:date>2017-10-13T18:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query distinct fail on 10.5 with field longer than 22 char</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235609#M1171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you prepend the column name with "DISTINCT ", the field contents becomes 31 characters long, which happens to be the maximum column name length.&amp;nbsp; Very curious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 18:44:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235609#M1171</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-10-13T18:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Query distinct fail on 10.5 with field longer than 22 char</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235610#M1172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the limit have reduced since 10.3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 18:54:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235610#M1172</guid>
      <dc:creator>FrancisGagne</dc:creator>
      <dc:date>2017-10-13T18:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query distinct fail on 10.5 with field longer than 22 char</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235611#M1173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the underlying ArcSDE API constant, set to 32 (but not counting the string terminator) has not changed since SDE 3.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 18:57:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235611#M1173</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-10-13T18:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Query distinct fail on 10.5 with field longer than 22 char</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235612#M1174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the character length of your request URL? Are you using GET or POST?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 19:01:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235612#M1174</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2017-10-13T19:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Query distinct fail on 10.5 with field longer than 22 char</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235613#M1175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any update on this? I managed to get around by querying my data directly but some others might not be able to do that easily.&lt;/P&gt;&lt;P&gt;I just tried again on the service and I still have the same problem with long fields.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 19:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235613#M1175</guid>
      <dc:creator>FrancisGagne</dc:creator>
      <dc:date>2018-05-24T19:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query distinct fail on 10.5 with field longer than 22 char</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235614#M1176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This appears to be unexpected behavior when querying with Return Distinct Values. This issue has been reported to the Product Team for further investigation as&amp;nbsp;BUG-000117499 : Query fails at REST with 'Unable to perform query operation' when returning Distinct Values with outField that has name over 22 characters long. Hopefully we will see this issue addressed soon! Thanks, Cheryl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:10:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235614#M1176</guid>
      <dc:creator>CherylHagevik</dc:creator>
      <dc:date>2018-10-17T15:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Query distinct fail on 10.5 with field longer than 22 char</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235615#M1177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has there been an update on this Vince.&amp;nbsp; Is it repaired. It was still active in 10.6.1 .&amp;nbsp; Setting up a 10.7.1 or 10.8 back end soon.&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 11:55:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235615#M1177</guid>
      <dc:creator>WillStafford</dc:creator>
      <dc:date>2020-02-14T11:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Query distinct fail on 10.5 with field longer than 22 char</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235616#M1178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheryl reported the bug number -&amp;nbsp;BUG-000117499 -&amp;nbsp; which does not appear to have any updates.&lt;BR /&gt;I don't have anything to add here.&amp;nbsp; You might want to try Tech Support, adding your&amp;nbsp;e-mail to the&lt;BR /&gt;notifications on this issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2020 16:37:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/query-distinct-fail-on-10-5-with-field-longer-than/m-p/235616#M1178</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2020-02-14T16:37:57Z</dc:date>
    </item>
  </channel>
</rss>

