3 Replies Latest reply on Oct 13, 2010 10:08 AM by epaitz-esristaff

    Error 500 with JSON in Find operation

    nringdahl
      Hi.

      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 "&f=json", I get:

      {"error":{"code":500,"message":"Object reference not set to an instance of an object.","details":[]}}

      Url that returns correct data (in html):
      http://<myservername>/ArcGIS/rest/services/<myservicename>/MapServer/find?searchText=Kulla&searchFields=SITE%2CFULLNAME&layers=0

      Url that returns the error data (in json):
      http://<myservername>/ArcGIS/rest/services/<myservicename>/MapServer/find?searchText=Kulla&searchFields=SITE%2CFULLNAME&layers=0&f=json

      Any ideas?

      Best regards,
      - Niklas