Select to view content in your preferred language

unknown operation: GET MapServer/jobs/......

874
5
11-14-2019 04:03 AM
Sharan_saiGudibanda_Nagesh
New Contributor

After start of geprocessing service, I was facing this type of error.

The example of code is taken from Local server geoprocessing | ArcGIS for Developers 

in .xaml.cs file

// Create a map image layer to show the results

ArcGISMapImageLayer myMapImageLayer = new ArcGISMapImageLayer(new Uri(gpServiceResultUrl));

// Load the layer

await myMapImageLayer.LoadAsync();

at await myMapImageLayer.LoadAsync(); it was getting load error  "unknown operation:Get Mapserver/jobs/j89....

please resolve the issue

Michael Branscomb‌ 

0 Kudos
5 Replies
MichaelBranscomb
Esri Frequent Contributor
0 Kudos
Sharan_saiGudibanda_Nagesh
New Contributor

Hi,

Yes instead of using rasterhillshade.tpk I am using india.mmpk

Is there any other example on geoprocessing with complete file.

Hoping for solution

Regards

G N Sharan SAI

Get Outlook for Android<https://aka.ms/ghei36>

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Hi,

Can you share the full code section where you are initializing the local geoprocessing service and executing the job? 

Note .TPK (image tile cache) and .MMPK (mobile map package) files provide map content - they are not directly related to geoprocessing.

Cheers

Mike

0 Kudos
Sharan_saiGudibanda_Nagesh
New Contributor

Hi,

As I mentioned the earlier example, i just used the complete code and replaced tpk with mmpk

G N sharan SAI

Get Outlook for Android<https://aka.ms/ghei36>

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Sharan sai Gudibanda Nagesh

Your reply was routed through the Geonet email... but it found me with a little help from the Geonet admins:

Hi,

 

I have checked the code again and solved the issue, the problem I was facing is

 

on creating geoprocessing service

_gpService = new LocalGeoprocessingService(gppath, GeoprocessingServiceType.AsynchronousSubmitWithMapServiceResult)

In that above code i forgot include GeoprocessingServiceType. Later on i have added and solved the issue.

 

I have a doubt how can we know, which type of geoprocessing service requires specific GeoprocessingServiceTYpe

 

Thanks and Regards

G N Sharan Sai

To answer your question: 

As the developer you choose the service type depending on your requirements. These help topics explain more:

A quick tour of publishing a geoprocessing service—Documentation | ArcGIS Enterprise 

Overview of geoprocessing task settings—Documentation | ArcGIS Enterprise 

Geoprocessing service settings: Parameters—Documentation | ArcGIS Enterprise 

Cheers

Mike

0 Kudos