<?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 Layer query issue with 10.1 update in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-query-issue-with-10-1-update/m-p/346287#M31973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a query that specifies "Return Fields". For some reason, that is too complicated to explain, we have to pass in a field name even if it does not exist as a return field. With 10.0, it just used to ignore it, if it was not a valid field. But with 10.1, if we pass a fieldname that does not exist, it throws an error: Invalid or missing input parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a setting in Arc that I can ignore parameters in query if they do not exist than to throw and error? Or if anyone can suggest a workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example using 2 ESRI services one using 10.0 or less and other one 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using 10.0, if I add "dummy" as a return value, it ignores it still works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/1/query?&amp;amp;where=POP1999%3E15000000&amp;amp;outFields=STATE_NAME%2CPOP1999%2Cdummy&amp;amp;f=json"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/1/query?&amp;amp;where=POP1999%3E15000000&amp;amp;outFields=STATE_NAME%2CPOP1999%2Cdummy&amp;amp;f=json&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using 10.1, if I add "dummy" as a return value, it gives an error back:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/MapServer/0/query?where=pool_permit%3D0&amp;amp;outFields=apn%2Cdummy&amp;amp;f=json"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/MapServer/0/query?where=pool_permit%3D0&amp;amp;outFields=apn%2Cdummy&amp;amp;f=json&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2013 16:08:34 GMT</pubDate>
    <dc:creator>JatinPatel</dc:creator>
    <dc:date>2013-02-14T16:08:34Z</dc:date>
    <item>
      <title>Layer query issue with 10.1 update</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-query-issue-with-10-1-update/m-p/346287#M31973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a query that specifies "Return Fields". For some reason, that is too complicated to explain, we have to pass in a field name even if it does not exist as a return field. With 10.0, it just used to ignore it, if it was not a valid field. But with 10.1, if we pass a fieldname that does not exist, it throws an error: Invalid or missing input parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a setting in Arc that I can ignore parameters in query if they do not exist than to throw and error? Or if anyone can suggest a workaround?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example using 2 ESRI services one using 10.0 or less and other one 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;using 10.0, if I add "dummy" as a return value, it ignores it still works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/1/query?&amp;amp;where=POP1999%3E15000000&amp;amp;outFields=STATE_NAME%2CPOP1999%2Cdummy&amp;amp;f=json"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/1/query?&amp;amp;where=POP1999%3E15000000&amp;amp;outFields=STATE_NAME%2CPOP1999%2Cdummy&amp;amp;f=json&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using 10.1, if I add "dummy" as a return value, it gives an error back:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/MapServer/0/query?where=pool_permit%3D0&amp;amp;outFields=apn%2Cdummy&amp;amp;f=json"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/PoolPermits/MapServer/0/query?where=pool_permit%3D0&amp;amp;outFields=apn%2Cdummy&amp;amp;f=json&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 16:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layer-query-issue-with-10-1-update/m-p/346287#M31973</guid>
      <dc:creator>JatinPatel</dc:creator>
      <dc:date>2013-02-14T16:08:34Z</dc:date>
    </item>
  </channel>
</rss>

