Geoprocessing Service not working for 4.21

290
0
05-24-2022 11:12 PM
NadirHussain
Occasional Contributor II

Dear All

I am facing problem when i execute arcgis geoprocessing rest service by using arcgis api 4.21.

This is my below code i am executing.

var gpUrl= "url";

params = { "Web_Map_as_JSON": "", "": , "":  ": "":, "": , "": };

geoprocessor.execute(gpUrl, params, options).then(showResults, OnError);

it nothing returns.no exception no error.

But when i execute the same service with arcgis api 3.29.It runs and i get a pdf file in response.

var gpUrl= new Geoprocessor("url");
params = { "Web_Map_as_JSON": "", "": , "":  ": "":, "": , "": };
gp.execute(params, showResults, OnError);


Please help me to solve this issue.i have to finish this task.

 

Thanks in advance.

 

Tags (2)
0 Kudos
0 Replies