Geoprocessing Tool Tif output to Map Service does not work

4539
8
01-15-2014 07:45 AM
DougBrowning
MVP Frequent Contributor
I have a simple geoprcessing tool running the Minus tool with a .tif output.  In the output parameters of the service if I leave the View result as a Map Service unchecked it runs fine and gives me back a link to the result .tif as show here.
[ATTACH=CONFIG]30526[/ATTACH]

But I want the output to the map.  But when I check the View result as a Map Service box I get a error in Flex and in the server logs as show here.  The server is yelling about the inputs but it works fine not as a map service.
[ATTACH=CONFIG]30527[/ATTACH]
[ATTACH=CONFIG]30528[/ATTACH]

I have tried every kind of option check and uncheck I can think of.  I think my settings are correct on the Desktop side and the model side since it does work as a link.  But still i tried all types of parameter and output vars and settings with no luck.  It does not have to be a tif out but even when i give a grid as output it still gives me a tif anyways.  I have also tried the View as Output checkbox in the Flex Geoprocessing widget on and off.

These layers are part of a raster catalog connected to the time slider if that makes any diff (but again the link works fine).

Any input would be great, i am out of ideas.  No the map is not public, I can not do that.

I am using 10.2 Desktop and Server and Flex 3.6.  Using the app builder for this simple test.

Thanks a lot
0 Kudos
8 Replies
by Anonymous User
Not applicable
Original User: GISDev01

I have a simple geoprcessing tool running the Minus tool with a .tif output.  In the output parameters of the service if I leave the View result as a Map Service unchecked it runs fine and gives me back a link to the result .tif as show here.
[ATTACH=CONFIG]30526[/ATTACH]

But I want the output to the map.  But when I check the View result as a Map Service box I get a error in Flex and in the server logs as show here.  The server is yelling about the inputs but it works fine not as a map service.
[ATTACH=CONFIG]30527[/ATTACH]
[ATTACH=CONFIG]30528[/ATTACH]

I have tried every kind of option check and uncheck I can think of.  I think my settings are correct on the Desktop side and the model side since it does work as a link.  But still i tried all types of parameter and output vars and settings with no luck.  It does not have to be a tif out but even when i give a grid as output it still gives me a tif anyways.  I have also tried the View as Output checkbox in the Flex Geoprocessing widget on and off.

These layers are part of a raster catalog connected to the time slider if that makes any diff (but again the link works fine).

Any input would be great, i am out of ideas.  No the map is not public, I can not do that.

I am using 10.2 Desktop and Server and Flex 3.6.  Using the app builder for this simple test.

Thanks a lot



Have you been able to publish any simple geoprocessing service with an output of a map service? Looks like your ArcGIS Server configuration might not be allowing it to generate a new map service on the fly.

Is your geoprocessing service and ArcGIS Server 10.2 set up to allow the most verbose logging available? I was hoping you would have more INFO messages than just that 1 Error message in your ArcGIS Server log.
0 Kudos
DougBrowning
MVP Frequent Contributor
Thanks. 

Where is the setting for allowing a service to be created?  I dug through every setting in the server and do not see it. 

No I have not tried any other tool.  Its just a test server.  My model is just one tool (minus) so i could not really make it any simpler.

I turned on debug log but still the only error listed at all is the one i posted.  All else seems to work fine.  Log from just 1 run of the tool is below. 

Thanks a lot.


Level Time Message Source
DEBUG Jan 16, 2014, 4:13:55 PM Time (ms): 14 (/arcgis/rest/services/Baseline7/GPServer/Baseline/jobs/j4c23f12ed46f49828a15a5f0f1a342ff) Rest
DEBUG Jan 16, 2014, 4:13:55 PM Got Response: (Baseline7, GPServer) Rest
DEBUG Jan 16, 2014, 4:13:55 PM Posting response from worker thread. Server
FINE Jan 16, 2014, 4:13:55 PM REST request successfully processed. Response size is 282 characters. Baseline7.GPServer
FINE Jan 16, 2014, 4:13:55 PM REST request received. Request size is 21 characters. Baseline7.GPServer
DEBUG Jan 16, 2014, 4:13:55 PM Request received in worker thread. Server
DEBUG Jan 16, 2014, 4:13:55 PM Waiting for response from worker thread - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:55 PM Sending request to worker thread - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:55 PM Delegating request to GPServer - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:55 PM Request type = - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:55 PM Got Service: (Baseline7, GPServer) Rest
DEBUG Jan 16, 2014, 4:13:55 PM Handling request: (Baseline7, GPServer) Rest
DEBUG Jan 16, 2014, 4:13:55 PM Cache HIT: gpserver:Baseline7 Rest
DEBUG Jan 16, 2014, 4:13:55 PM In gpjob Rest
DEBUG Jan 16, 2014, 4:13:55 PM Cache HIT: gpserver:Baseline7 Rest
DEBUG Jan 16, 2014, 4:13:55 PM Handler: GPJobHandler Rest
DEBUG Jan 16, 2014, 4:13:55 PM In AdminSecurityPreHandler Rest
INFO Jan 16, 2014, 4:13:55 PM Request user: Anonymous user, Service: Baseline7/GPServer Rest
DEBUG Jan 16, 2014, 4:13:55 PM Cache HIT: com.esri.discovery.app.security.DiscoverySecurity Rest
DEBUG Jan 16, 2014, 4:13:55 PM ARCGIS_TOKEN Authentication, Token is not available in the request, request is treated as anonymous Server
DEBUG Jan 16, 2014, 4:13:55 PM Cache HIT: folder:/ Rest
DEBUG Jan 16, 2014, 4:13:55 PM Cache HIT: WebContextURL Rest
DEBUG Jan 16, 2014, 4:13:55 PM Cache HIT: Discovery.CustomServerObjectTokens Rest
DEBUG Jan 16, 2014, 4:13:55 PM In RServlet Rest
VERBOSE Jan 16, 2014, 4:13:52 PM Load job j4c23f12ed46f49828a15a5f0f1a342ff message type REST message size 122 Baseline7.GPServer
VERBOSE Jan 16, 2014, 4:13:52 PM Load job j4c23f12ed46f49828a15a5f0f1a342ff message type REST message size 122 Baseline7.GPServer
VERBOSE Jan 16, 2014, 4:13:52 PM GPServerSync.Deactivate Baseline7.GPServer
FINE Jan 16, 2014, 4:13:52 PM String request successfully processed. Response size is 378 characters. Baseline7.GPServer
VERBOSE Jan 16, 2014, 4:13:52 PM Save job j4c23f12ed46f49828a15a5f0f1a342ff message type REST message size 378 Baseline7.GPServer
DEBUG Jan 16, 2014, 4:13:52 PM Posting response from worker thread. Server
SEVERE Jan 16, 2014, 4:13:52 PM Error executing tool. Baseline7.GPServer
SEVERE Jan 16, 2014, 4:13:52 PM ERROR 010414: Error in creating a Raster from a geodataset. Failed to execute (Minus). Failed to execute (Baseline). Failed to execute (Baseline). Baseline7.GPServer
VERBOSE Jan 16, 2014, 4:13:52 PM Execute job j4c23f12ed46f49828a15a5f0f1a342ff Baseline7.GPServer
DEBUG Jan 16, 2014, 4:13:52 PM Time (ms): 20 (/arcgis/rest/info) Rest
DEBUG Jan 16, 2014, 4:13:52 PM Cache HIT: com.esri.discovery.app.security.DiscoverySecurity Rest
DEBUG Jan 16, 2014, 4:13:52 PM Handler: InfoHandler Rest
DEBUG Jan 16, 2014, 4:13:52 PM In AdminSecurityPreHandler Rest
DEBUG Jan 16, 2014, 4:13:52 PM Cache HIT: WebContextURL Rest
DEBUG Jan 16, 2014, 4:13:52 PM Cache HIT: Discovery.CustomServerObjectTokens Rest
DEBUG Jan 16, 2014, 4:13:52 PM In RServlet Rest
DEBUG Jan 16, 2014, 4:13:51 PM e:\arcgisserver\directories\arcgisjobs\baseline7_gpserver\j4c23f12ed46f49828a15a5f0f1a342ff\scratch Baseline7.GPServer
DEBUG Jan 16, 2014, 4:13:51 PM Create directory succeeded: e:\arcgisserver\directories\arcgisjobs\baseline7_gpserver\j4c23f12ed46f49828a15a5f0f1a342ff\scratch Baseline7.GPServer
VERBOSE Jan 16, 2014, 4:13:51 PM Load job message type REST message size 122 Baseline7.GPServer
DEBUG Jan 16, 2014, 4:13:51 PM Job Directory: e:\arcgisserver\directories\arcgisjobs\baseline7_gpserver\j4c23f12ed46f49828a15a5f0f1a342ff Baseline7.GPServer
FINE Jan 16, 2014, 4:13:51 PM String request received. Request size is 433 characters. Baseline7.GPServer
VERBOSE Jan 16, 2014, 4:13:51 PM GPServerSync.Activate Baseline7.GPServer
DEBUG Jan 16, 2014, 4:13:51 PM Setting job information in server environment. Server
DEBUG Jan 16, 2014, 4:13:51 PM Updating log level from VERBOSE to DEBUG Server
DEBUG Jan 16, 2014, 4:13:51 PM Request received in worker thread. Server
DEBUG Jan 16, 2014, 4:13:51 PM Waiting for response from worker thread - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:51 PM Sending request to worker thread - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:51 PM Looking up GPServerSync object by name 'esri/services/GPServerSync/Baseline7'. Server
DEBUG Jan 16, 2014, 4:13:51 PM Time (ms): 25 (/arcgis/rest/services/Baseline7/GPServer/Baseline/submitJob) Rest
DEBUG Jan 16, 2014, 4:13:51 PM Got Response: (Baseline7, GPServer) Rest
DEBUG Jan 16, 2014, 4:13:51 PM Submitting job with ID 'j4c23f12ed46f49828a15a5f0f1a342ff' - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:51 PM Created new job ID 'j4c23f12ed46f49828a15a5f0f1a342ff' for request - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:51 PM Posting response from worker thread. Server
FINE Jan 16, 2014, 4:13:51 PM REST request successfully processed. Response size is 75 characters. Baseline7.GPServer
VERBOSE Jan 16, 2014, 4:13:51 PM Job j4c23f12ed46f49828a15a5f0f1a342ff is successfully submitted. Baseline7.GPServer
FINE Jan 16, 2014, 4:13:51 PM REST request received. Request size is 122 characters. Baseline7.GPServer
DEBUG Jan 16, 2014, 4:13:51 PM Updating log level from VERBOSE to DEBUG Server
DEBUG Jan 16, 2014, 4:13:51 PM Request received in worker thread. Server
DEBUG Jan 16, 2014, 4:13:51 PM Waiting for response from worker thread - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:51 PM Sending request to worker thread - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:51 PM This is a SUBMIT_JOB request. Request is pre-processed by GPServer - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:51 PM Request type = submitJob - Baseline7.GPServer. Server
DEBUG Jan 16, 2014, 4:13:51 PM Got Service: (Baseline7, GPServer) Rest
DEBUG Jan 16, 2014, 4:13:51 PM Handling request: (Baseline7, GPServer) Rest
DEBUG Jan 16, 2014, 4:13:51 PM Cache HIT: gpserver:Baseline7 Rest
DEBUG Jan 16, 2014, 4:13:51 PM In submitJob Rest
DEBUG Jan 16, 2014, 4:13:51 PM Cache HIT: gpserver:Baseline7 Rest
DEBUG Jan 16, 2014, 4:13:51 PM Handler: GPTaskHandler Rest
DEBUG Jan 16, 2014, 4:13:51 PM In AdminSecurityPreHandler Rest
INFO Jan 16, 2014, 4:13:51 PM Request user: Anonymous user, Service: Baseline7/GPServer Rest
DEBUG Jan 16, 2014, 4:13:51 PM Cache HIT: com.esri.discovery.app.security.DiscoverySecurity Rest
DEBUG Jan 16, 2014, 4:13:51 PM ARCGIS_TOKEN Authentication, Token is not available in the request, request is treated as anonymous Server
DEBUG Jan 16, 2014, 4:13:51 PM Cache HIT: folder:/ Rest
DEBUG Jan 16, 2014, 4:13:51 PM Cache HIT: WebContextURL Rest
DEBUG Jan 16, 2014, 4:13:51 PM Cache HIT: Discovery.CustomServerObjectTokens Rest
DEBUG Jan 16, 2014, 4:13:51 PM In RServlet Rest
0 Kudos
by Anonymous User
Not applicable
Original User: GISDev01

Ok, that output is very helpful. Have you tried running the GP service within ArcMap through your ArcGIS Server Connection? Does it let you do that properly? It depends on how your tool is set up before you published it. Is your tool just a toolbox tool or an actual python script?


Where is the setting for allowing a service to be created? I dug through every setting in the server and do not see it.

I didn't state that very well I guess. I meant that it might be the entire functionality that is not working on your ArcGIS Server right now of it being able to create a new service, instead of maybe an issue with just the GP service. There is no setting, just a possible configuration/permissions issue.
0 Kudos
DougBrowning
MVP Frequent Contributor
No it does not work within arcmap through a connection.  Just says Submitting, Executing, Failed in the results window.

It is a Model in a toolbox.  The Model just has one tool - the SA Minus.

i should add that it does list a Map Service with the same name as geoprocessing but it is blank (can not click on it, no content).

Thanks
0 Kudos
by Anonymous User
Not applicable
Original User: GISDev01

Ok, I would try to use 2 inputs that are both just single raster files like .tif's, instead of rasters in a geodataset, and see what happens. It doesn't like a flex side issue right now, since it won't run in Desktop either.

Are both input rasters to your Minus tool being specified on the client side in the flexviewer using the geoprocessing widget or another way?


Since the error says: ERROR 010414: Error in creating a Raster from a geodataset.

Possibly try to create the output Raster in a scratch folder.
0 Kudos
DougBrowning
MVP Frequent Contributor
The simple map with just 2 rasters worked.  Looks like it does not like Raster Catalogs yet again.

Initial tests look like Mosaic Datasets does work.  I still am creating a full copy of all 100+ rasters in a Mosaic Dataset to check.

Also i just upgraded to 10.2.1 (desktop and server) and some things changed.  The Raster Catalog colors no longer go weird but instead in the middle of the slider it changes to a poly box.  The first raster in the Mosaic Dataset seems to now display the first raster (but more testing is needed).

Will report back.

Thanks a lot.
0 Kudos
by Anonymous User
Not applicable
Original User: mrcolwin@ncsu.edu

I think I am having a similar issue. I have a geoprocessing service created from a Model. The model is fairly simple. It takes a polygon shapefile, creates a new point shapefile of the polygon centroids, then runs a Natural Neighbor interpolation on those points using one of the attribute columns (cost). The output is a raster, so I have been trying to create a Result Map Service so I can display the geoprocessing results in a Viewer for Flex application.

If I do not check the "View results with a map service", I am able to publish the map service, but since the output is a GPRasterDataLayer, I cannot display this using the Geoprocessing widget in Flex. If I check the "View results with a map service" box, I simply get an error in the Service Editor in ArcMap saying that it failed to publish the service. If I try to turn on the "view results with a map service" option from within the Server Manager, I get an error saying the service failed to start. I tried to get the log and have posted it below, but I'm still relatively new to this so if there is a more detailed log that someone trying to help me needs, please let me know.

[ATTACH=CONFIG]32292[/ATTACH]
0 Kudos
KathyMulcahy
New Contributor
Have you been able to publish any simple geoprocessing service with an output of a map service? Looks like your ArcGIS Server configuration might not be allowing it to generate a new map service on the fly.

Is your geoprocessing service and ArcGIS Server 10.2 set up to allow the most verbose logging available? I was hoping you would have more INFO messages than just that 1 Error message in your ArcGIS Server log.


I have the same problem:

hello, I used modelbuilder to interpolate some climate data, the tool i used is kriging, the output showing raster in ArcMap, however, I published into ArcGIS server as a geoprocessing service, then in Flexviews, output i had no choice then the raster come out as a link then it download as a .TIFF file and as a white image there.
I also have the same problem, please help me.
in the arcgisjobs directory, the image is generated as .TIFF file and its a �??white image�?�
http://129.130.86.81/flexviewers/suproject/
here is my tool
thank you for the help

Please help any solutions?
0 Kudos