Don't know how to write special parameter 'InputRaster' of type 'JSON Array' with value

1093
1
09-28-2016 04:01 PM
LukeCatania
New Contributor III

I created a model using "Raster To Geodatabase (multiple)" tool.  I am trying to copy the raster result of my Observer points GP Tool in runtime to another GDB, so I am using another GP tool.  My thought is to append the temporary result from runtime to my other database which would unfortunately also be saved in a temporary location, but I plan to then use a java Files.copy method to copy the entire GDB to another location.  Sounds weird and confusing, but I am looking for  way to keep my results and have them be copied to an existing GBD outside of runtime's temp location and runtime has no build in copy method. Using just the Java SDK Files.copy will just overwrite the GDB.  I have not found any other way to get my temp results to persist in another location.

I receive the error message:


com.esri.core.io.EsriServiceException: Bad request: GET GPServer/AppendResult/execute Dont know how to write special parameter 'InputRaster' of type 'JSON Array' with value '{"format":"tif","url":"http://127.0.0.1:50000/6T1dcw/arcgis/rest/services/ObserverPointsInline10.2.gpk/MapServer/jobs/j93d4..."}'
at com.esri.core.io.EsriServiceException.fromJson(Unknown Source)

0 Kudos
1 Reply
nita14
by
Occasional Contributor III

Hi Luke,

Why don't you expose the data you want to copy as a geoporcessing service ouput parameter? Then, you are able to download it using any http library. Sounds weird to download the data from local server to local machine, but....I did not find any workaround.

Another option is to find catalog with "jobId" name in the OS system, and get scratch.gdb inside of it. Then try to access your data using runtime SDK.

Hope this helps,

Adam

0 Kudos