Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.