Select to view content in your preferred language

Geoprocessing service not returning features

3718
3
09-25-2013 01:45 PM
danielchaboya
Regular Contributor
I'm not sure what's going on here.  I have a tool that uses a boolean value that if checked will performe some simple tasks( Select By Attribute, Copy Features). This tool is published (in Async mode) and I can use it in arcmap as a geoprocessing service.  When I bring this tool into the Viewer, it will execute successfully and add the output to the TOC.  However, the output dataset is empty.  If I remove the Select By Attribute tool, leaving Copy Features tools, the geoprocessing service works fine.  Is it somehow not performing the selection? But then why would it work in arcmp as a geoprocessing tool?

Any thoughts?

EDIT: I removed the Select By Attribute tool and simply used the Query Builder function in the Make Feature Layer Tool.  Again, once published it works as a geoprocessing service in arcmap but does not in the Viewer.


ArcGIS 10.0
ArcGIS Server 10.0
ArcGIS Viewer for Silverlight 3.1
0 Kudos
3 Replies
danielchaboya
Regular Contributor
Anyone?  I modified the model a bit.  To me this is a very basic tool that should work in Viewer.  Again, this works as a geoprocessing service in ArcMap, but does not work in Viewer (returns an empty dataset).  However, if I exclude the expresssion, it works (i.e the output is essentially a copy of the input).  Any ESRI peeps have a clue as to what is going on?
0 Kudos
danielchaboya
Regular Contributor
Would anyone be kind enough to test this functionallity on there system?  I'm using ArcGIS Server 10.1 with ArcGIS Viewer for Silverlight 3.1.  I just want to know if this is a bug or if it's operator error.
0 Kudos
by Anonymous User
Not applicable
Original User: PietaS175

Daniel,

two things:
- how is the field Washrooms defined? Boolean or text? Make sure that the filter string is correct. First try it out in normal definition query or select by attribute to ensure that it is in correct format. You could try defining a look-up list to filter on in stead of typing the value. Another thing is that different database types define fields differently. Might need to use brackets [ ] in stead of " e.g [washrooms]
- %scratchworkspace% - is this defined? Maybe try another location as output e.g. c:\temp\parks.shp
0 Kudos