Hoppa till huvudinnehållet

Intermittent JSON error in workflow

Kommentarer

4 kommentarer

  • Permanently deleted user

    Hello all,

    After playing with the application a few minutes it looks like the workflows don't like it when you do the same query a second time with the first query still in the search history.  Once it is deleted (manually at this point) from the search history, the workflow works fine.  Does anyone know how to see if the query exists in history?

    I name the collection 'Search by Address: 95 Franklin St' during the query for that address.  Can I remove all collections named that before the query is run?

    Thanks

    Mike G

    0
  • Permanently deleted user

    This is a known issue with the communication between the ESRI WPF API and the ArcGIS Server 10.1 Web Adaptor. The WPF API includes caching information in the headers of web requests from Query tasks and the like that is not understood by the Web Adaptor, so it returns an error message in the form of an HTML page. Since this is not a JSON response, you get the error that you are seeing.

    This typically happens on every second run, especially when testing, as the caching information appears to be attached to every second request for the same result set. Since you typically search for the same things over and over again when testing, the error can actually be much more apparent here than in production, but this issue will affect every workflow that talks to ArcGIS Server after an upgrade to ArcGIS Server 10.1.

    The best solution at the moment is to talk to ArcGIS Server directly from Workflow, rather than going through the Web Adaptor. Usually this just entails putting :6080 after the server name, so that the message goes to this port instead of the default port 80. 

    So for example, the REST endpoint:

    http://myserver/arcgis/rest/services

    Will become:

    http://myserver:6080/arcgis/rest/services 

    In the 3.11 release of Essentials an option to disable client caching on ESRI Tasks is planned, which will also work around this issue until it can be fixed.

    0
  • Permanently deleted user

    Was looking for a solution for this. Thanks.

    0
  • Permanently deleted user

    Where is this option to disable client caching of ESRI tasks? 

    Since our ArcGIS Server is behind a firewall (we use a Web Adaptor on a proxy machine), connecting directly to ArcGIS Server is not possible.

     

    EDIT

    Nevermind, I found it. It was the first In Argument property of the query task /customer/servlet/servlet.FileDownload?file=00P6000000e88HjEAI

    This fixed the problem for me!

    0

Du måste logga in om du vill lämna en kommentar.