Select to view content in your preferred language

Geoprocessing Error

719
4
01-27-2011 01:48 PM
by Anonymous User
Not applicable
Greetings!

I am working through Geoprocessing 101 and have successfully created and published the sample "Buffer and Clip" geoprocess from the tutorials. I opted to publish the geoprocess along with the map service that consumes it and and am able to successfully create and run a web application using the 'New Web App' wizard on the ArcGIS Server Manager web page.

The problem I'm having is try to consume the same geoprocess from a Flex API web app. I have "borrowed" the code from the 'Query Using GP Result' on the samples page and modified it to use my map service and geoprocess service. When I click the map (to submit a point to then start the geoprocessing) I get the following error message captured in the GPFault event:

Unexpected fault:
[FaultEvent fault=[RPC Fault faultString="Error Executing Task. The coordinates or measures are out of bounds." faultCode="500" faultDetail=""] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]

I cannot seem to find any information pertinent to this error message and I've confirmed that the map point clicked falls within my application extents so I'm wondering if perhaps there is something else at work here.  If anyone has seen this or has any information about how to resolve this I would be extremely grateful!

Thanks in advance for any helpful resonses to this inquiry!
Tags (2)
0 Kudos
4 Replies
MehulChoksey
Esri Contributor
Hi Bob,
One of the cause could be the coordinates  sent would be in different spatial reference than what is expected by server.
Could you capture HTTP REST request and response(using firebug/fiddler) to see whats going on behind the scenes?
0 Kudos
by Anonymous User
Not applicable
Hi Bob,
One of the cause could be the coordinates  sent would be in different spatial reference than what is expected by server.
Could you capture HTTP REST request and response(using firebug/fiddler) to see whats going on behind the scenes?


Mehul -

    I was hoping to avoid a 'sniffer' if I could, though if you think that would help get to the root of the problem I would certainly entertain getting my hands on one of those programs your recommended. As I mentioned in my original post, I've confirmed that the map point that gets fed to the geoprocess falls within my mapping application extents, the same that was published along with the geoprocess from the outset. I've also read that the geoprocess should just work independent of whatever the spatial reference of the application calling it - or did I misunderstand that? I'm working to try and get the 'Buffer and Clip' geoprocess to run (or even buffer!) but might you recommend an even simpler one I could test to help get to the root of this problem? I am able to run the geoprocessing code found in the Flex API sample apps but unfortunately do not have access to the models/scripts used to create the processes to see what steps I might have missed or have gotten wrong, so any ideas you can suggest would be greatly appreciated!

- Bob
0 Kudos
MehulChoksey
Esri Contributor
Flex api communicates with the server using REST API and sniffer tool such as Firebug /Fiddler captures that communicationa. Using that requuest we could take the Flex API out of the picture and send REST request directly using Browser and see if its working or not.
If you could captuire REST request/ response that would be helpful to find the cause...

Mehul
0 Kudos
by Anonymous User
Not applicable
Flex api communicates with the server using REST API and sniffer tool such as Firebug /Fiddler captures that communicationa. Using that requuest we could take the Flex API out of the picture and send REST request directly using Browser and see if its working or not.
If you could captuire REST request/ response that would be helpful to find the cause...

Mehul


Mehul -

Sorry in the delay of my reply. Am still working with our IT support to see about pursuing the sniffer approach, but was exploring some other avenues in the meanwhile.  One thing that would be helpful would be the ability to write the output of a geoprocess to a log file that would contain more useful information than the error response returned to the REST API. Is there an option for that? Thanks again for your help ...

- Bob

ps -- I've partially answered my own question by playing around with the Geoprocessing options in ArcCatalog and the geoprocessing services properties. I enabled messages and the returned error messages are now far more useful. The log files I also found but I'm not finding them as useful. Anyway, will let you know what the results of the sniffer tests are ...Thanks again for the help!
0 Kudos