Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a published toolbox that is using conditional execution in one of its models:

ModelBuilder model showing two possible branches

This works fine in ArcGIS Desktop 10.0, and each sub model\script works fine when run separately from this model via the geoprocessing service. It appears that ArcGIS Server does not like having a nonassigned model parameter. When this model is run via a geoprocessing service, ArcGIS Server sends a Invalid return value error regarding the first dataset of the branch that does not execute.

I could move the conditional branch to the client or to a middle wrapping web service instead. However, I would like to keep the client side execution of this as simple as possible. Has anyone here run into this problem or know of a workaround that doesn't require a separate web service or conditional logic in the client?

share|improve this question
I've tried including the Merge Branch tool but the invalid return value still persists on the intermediate value on the non-executed branch. – Peter Smith Jul 10 '12 at 20:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.