Select to view content in your preferred language

how to set directory to local files as input in GP Service

3729
11
07-26-2016 01:26 PM
springzhang
Emerging Contributor

I have the ArcGIS desktop and ArcGIS server on the same machine. The input parameters of my GP service require the directory to TIFF files, e.g., C:\inputdata\image1.tif.

I can successfully run the gp service from ArcMap. When I gave the exactly same inputs, and run the gp service from the rest endpoint, it failed with the error "invalid input parameter". How could I appropriately set the directory as inputs when running gp service from rest endpoint?

Thanks

0 Kudos
11 Replies
JosiahCorona2
Deactivated User

For the output location of a buffer tool I was working with I used

%scratchworkspace%\BufferedPoints.shp

Worked well and I was able to upload as a service and use it with the geoprocessing widget.

0 Kudos
springzhang
Emerging Contributor

Yep, thanks!