<?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 Error 500 with JSON in Find operation in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-500-with-json-in-find-operation/m-p/443776#M2097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the Find operation to query one of my layers, and it works in the html form view, returning the expected features. But when I switch to output format Json "&amp;amp;f=json", I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{"error":{"code":500,"message":"Object reference not set to an instance of an object.","details":[]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Url that returns correct data (in html):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myservername&amp;gt;/ArcGIS/rest/services/&amp;lt;myservicename&amp;gt;/MapServer/find?searchText=Kulla&amp;amp;searchFields=SITE%2CFULLNAME&amp;amp;layers=0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Url that returns the error data (in json):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myservername&amp;gt;/ArcGIS/rest/services/&amp;lt;myservicename&amp;gt;/MapServer/find?searchText=Kulla&amp;amp;searchFields=SITE%2CFULLNAME&amp;amp;layers=0&amp;amp;f=json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Niklas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Aug 2010 12:10:08 GMT</pubDate>
    <dc:creator>NiklasRingdahl</dc:creator>
    <dc:date>2010-08-27T12:10:08Z</dc:date>
    <item>
      <title>Error 500 with JSON in Find operation</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-500-with-json-in-find-operation/m-p/443776#M2097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the Find operation to query one of my layers, and it works in the html form view, returning the expected features. But when I switch to output format Json "&amp;amp;f=json", I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{"error":{"code":500,"message":"Object reference not set to an instance of an object.","details":[]}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Url that returns correct data (in html):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myservername&amp;gt;/ArcGIS/rest/services/&amp;lt;myservicename&amp;gt;/MapServer/find?searchText=Kulla&amp;amp;searchFields=SITE%2CFULLNAME&amp;amp;layers=0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Url that returns the error data (in json):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myservername&amp;gt;/ArcGIS/rest/services/&amp;lt;myservicename&amp;gt;/MapServer/find?searchText=Kulla&amp;amp;searchFields=SITE%2CFULLNAME&amp;amp;layers=0&amp;amp;f=json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Niklas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 12:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-500-with-json-in-find-operation/m-p/443776#M2097</guid>
      <dc:creator>NiklasRingdahl</dc:creator>
      <dc:date>2010-08-27T12:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error 500 with JSON in Find operation</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-500-with-json-in-find-operation/m-p/443777#M2098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know its been awhile since you posted this but I ran into a similar situation when the rows being returned contain special characters like ' " / \ etc. Not sure which version you are using but after we installed the latest update or service pack our problem was fixed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 20:04:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-500-with-json-in-find-operation/m-p/443777#M2098</guid>
      <dc:creator>EricPaitz</dc:creator>
      <dc:date>2010-10-12T20:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error 500 with JSON in Find operation</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-500-with-json-in-find-operation/m-p/443778#M2099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! I'll look into that. What version or patch did you upgrade to?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- N&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 06:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-500-with-json-in-find-operation/m-p/443778#M2099</guid>
      <dc:creator>NiklasRingdahl</dc:creator>
      <dc:date>2010-10-13T06:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error 500 with JSON in Find operation</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-500-with-json-in-find-operation/m-p/443779#M2100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just checked and our servers are all running 9.3.1. I have yet to install 9.3.1 SP1 or SP2 so I think it was the jump from 9.3. to 9.3.1 that did it. I also remember having to update our exported Web Service Handlers because our exposed web server is a Linux OS running Apache/Tomcat but our AGS 9.3.1 for the Java Platform is internal to the firewall running a Windows OS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 17:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-500-with-json-in-find-operation/m-p/443779#M2100</guid>
      <dc:creator>EricPaitz</dc:creator>
      <dc:date>2010-10-13T17:08:27Z</dc:date>
    </item>
  </channel>
</rss>

