melissatalley

Variable file name with geoprocessing service?

Discussion created by melissatalley on Nov 7, 2011
Latest reply on Nov 7, 2011 by melissatalley
I currently have a model which attaches a datestamp to every file it creates so as to allow different users to run it at the same time on the web and produce different files. The variable is calculated in my model and is called date so all the files are named %date%something in the model. The output is named %date%final.shp

This isn't a problem when I run the model from the toolbox. However when I publish it as a geoprocessing service and try and run it I get an error that says

"ERROR Invalid return value: C:\Users\WinSSHD_VirtualUsers\Downloads\WebGIS project\Counties00_08_web\scratch\%date%final.shp

2011-11-05 21:30:37

webGIS/Shock_Models.GPServerSync "

I can see why it doesn't like the return value since the name isn't actually %date%final.shp. Is there a way to indicate that the name isn't constant so that I can run it as a service?

Outcomes