Submitting GP service fail The 2019 Stack Overflow Developer Survey Results Are Inerror while running a geoprocessing service using IGPServerESRI Geoprocessing service and other serversSharing a Geoprocessing Service Hangs on Publishing serviceError submitting job Arcgis serverUploading Geocode Service Definition Continues To FailFail to publish GP as a serviceArcGIS Server Geoprocessing Service fail to run a WeightedOverlay processAvoiding Feature limit exceeded on layer in ArcGIS JavaScript API?Geoprocessing Service Failed: Could not service requestSubmitting job for GP Service?
Landlord wants to switch my lease to a "Land contract" to "get back at the city"
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
Time travel alters history but people keep saying nothing's changed
Can you compress metal and what would be the consequences?
What is the motivation for a law requiring 2 parties to consent for recording a conversation
Is there any way to tell whether the shot is going to hit you or not?
Can a flute soloist sit?
Are USB sockets on wall outlets live all the time, even when the switch is off?
One word riddle: Vowel in the middle
Does the shape of a die affect the probability of a number being rolled?
Aging parents with no investments
Can someone be penalized for an "unlawful" act if no penalty is specified?
Resizing object distorts it (Illustrator CC 2018)
Is flight data recorder erased after every flight?
Multiply Two Integer Polynomials
Can we generate random numbers using irrational numbers like π and e?
Did 3000BC Egyptians use meteoric iron weapons?
Did Section 31 appear in Star Trek: The Next Generation?
FPGA - DIY Programming
Earliest use of the term "Galois extension"?
How can I autofill dates in Excel excluding Sunday?
What does ひと匙 mean in this manga and has it been used colloquially?
Is an up-to-date browser secure on an out-of-date OS?
Submitting GP service fail
The 2019 Stack Overflow Developer Survey Results Are Inerror while running a geoprocessing service using IGPServerESRI Geoprocessing service and other serversSharing a Geoprocessing Service Hangs on Publishing serviceError submitting job Arcgis serverUploading Geocode Service Definition Continues To FailFail to publish GP as a serviceArcGIS Server Geoprocessing Service fail to run a WeightedOverlay processAvoiding Feature limit exceeded on layer in ArcGIS JavaScript API?Geoprocessing Service Failed: Could not service requestSubmitting job for GP Service?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to download the feature layer which I input as a string parameter to my GP service. When I run the script I got the following errors.
First time when I run it:
job-submitted gp_service_run2.php:110
job-failed
When I reload the page:
MapView.js:381 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(anonymous) @ MapView.js:381 set @ MapView.js:380 m.updateDependencies @ MapView.js:436 updateDependencies @ MapView.js:432 onResume @ MapView.js:349
b.resume @ MapView.js:351 (anonymous) @ MapView.js:362 m @ dojo.js:1079
p.onInstall @ MapView.js:362 b @ MapView.js:432 m.installHandlers @ MapView.js:433 g._connect @ MapView.js:342 (anonymous) @ MapView.js:341
(anonymous) @ dojo.js:1077 a @ dojo.js:363 m @ dojo.js:364 p @ dojo.js:370
(anonymous) @ dojo.js:374 gp_service_run2.php:110
job-submitted gp_service_run2.php:110
job-executinggp_service_run2.php:110
job-failed
In all other occasions when reloading same error and:
job-submitted gp_service_run2.php:110
job-failed
Where I have made the mistake in my code?
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/layers/FeatureLayer",
"esri/tasks/Geoprocessor",
//"esri/tasks/FeatureSet",
"esri/views/MapView",
"esri/layers/support/ImageParameters"
],
function(
Map,MapView, FeatureLayer,Geoprocessor,ImageParameters,FeatureSet )
var gpUrl="http://www.xxxxxxxxxxxxxxxxxxxxxxx/GPServer/Script";
var map = new Map(
basemap: "gray"
);
var view = new MapView(
container: "viewDiv",
map: map,
center: [80.9,7.8],
zoom: 8
);
var featureLayer2 = new FeatureLayer(
url:"http://www.xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FeatureServer",
outFields:["*"],
popupTemplate:
title:"Parcel Deatils",
content:"Lot No:"+"sht_pg_id"
);
map.add(featureLayer2);
var gp =new Geoprocessor(gpUrl);
//gp.outSpatialReference = map.spatialReference;
gp.outSpatialReference =
wkid: 5235
;
var params =
"sheet": featureLayer2,
"Plan_No":"28006103S001"
;
gp.submitJob(params).then(drawResultData, errBack, progTest);
function drawResultData(result)
//var resultLayer = gp.getResultData(result.jobId);
//map.add(resultLayer);
//document.getElementById("demo").innerHTML = ""+result.jobId;
if (result.jobStatus == "job-succeeded")
gp.getResultData(result.jobId,"save",downloadFile);
;
function progTest(value)
//message.innerText = "Job status: " + "'" + value.jobStatus + "'";
console.log(value.jobStatus);
function errBack(error)
//message.innerText = "";
console.log("gp error: ", error);
);
</script>
arcgis-server geoprocessing-service arcgis-javascript-api-4
New contributor
suda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I want to download the feature layer which I input as a string parameter to my GP service. When I run the script I got the following errors.
First time when I run it:
job-submitted gp_service_run2.php:110
job-failed
When I reload the page:
MapView.js:381 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(anonymous) @ MapView.js:381 set @ MapView.js:380 m.updateDependencies @ MapView.js:436 updateDependencies @ MapView.js:432 onResume @ MapView.js:349
b.resume @ MapView.js:351 (anonymous) @ MapView.js:362 m @ dojo.js:1079
p.onInstall @ MapView.js:362 b @ MapView.js:432 m.installHandlers @ MapView.js:433 g._connect @ MapView.js:342 (anonymous) @ MapView.js:341
(anonymous) @ dojo.js:1077 a @ dojo.js:363 m @ dojo.js:364 p @ dojo.js:370
(anonymous) @ dojo.js:374 gp_service_run2.php:110
job-submitted gp_service_run2.php:110
job-executinggp_service_run2.php:110
job-failed
In all other occasions when reloading same error and:
job-submitted gp_service_run2.php:110
job-failed
Where I have made the mistake in my code?
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/layers/FeatureLayer",
"esri/tasks/Geoprocessor",
//"esri/tasks/FeatureSet",
"esri/views/MapView",
"esri/layers/support/ImageParameters"
],
function(
Map,MapView, FeatureLayer,Geoprocessor,ImageParameters,FeatureSet )
var gpUrl="http://www.xxxxxxxxxxxxxxxxxxxxxxx/GPServer/Script";
var map = new Map(
basemap: "gray"
);
var view = new MapView(
container: "viewDiv",
map: map,
center: [80.9,7.8],
zoom: 8
);
var featureLayer2 = new FeatureLayer(
url:"http://www.xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FeatureServer",
outFields:["*"],
popupTemplate:
title:"Parcel Deatils",
content:"Lot No:"+"sht_pg_id"
);
map.add(featureLayer2);
var gp =new Geoprocessor(gpUrl);
//gp.outSpatialReference = map.spatialReference;
gp.outSpatialReference =
wkid: 5235
;
var params =
"sheet": featureLayer2,
"Plan_No":"28006103S001"
;
gp.submitJob(params).then(drawResultData, errBack, progTest);
function drawResultData(result)
//var resultLayer = gp.getResultData(result.jobId);
//map.add(resultLayer);
//document.getElementById("demo").innerHTML = ""+result.jobId;
if (result.jobStatus == "job-succeeded")
gp.getResultData(result.jobId,"save",downloadFile);
;
function progTest(value)
//message.innerText = "Job status: " + "'" + value.jobStatus + "'";
console.log(value.jobStatus);
function errBack(error)
//message.innerText = "";
console.log("gp error: ", error);
);
</script>
arcgis-server geoprocessing-service arcgis-javascript-api-4
New contributor
suda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
you'll need to add more information. You've provided a snippet of JS which from a quick scan looks ok, but you're referencing PHP errors. How are you running the code? If you run the GP Service from ArcMap or Pro, does it work there? (that'll explain if the error is in the service or the JS/PHP code)
– KHibma
Apr 5 at 12:39
When I connect to GP server through arcmap,it is working and output feature layer automatically add to the window.(i am running this php file using localhost.)
– suda
Apr 6 at 6:08
Your problem is probably in thedrawResultDatafunction. You're callinggetResultDatatwice. 1) you're calling it probably before the submitJob == finished and 2) you're calling it again, after succeeded, but looking more like filedownload, than featurelayer draw. You'll need to go back and re-work your JS code.
– KHibma
2 days ago
Thank you for your valuable idea.i have edited as you said above. Actually, I need to download the relevant feature layer rather than adding it into the map. The edited code is mentioned above. I think this is the code you expected. But still, this is not working. But i forget very import thing tell you. That is, when i run the programme( mentioned above before) first time on the day it said the job-succeeded.next time when I reload it, it gave the above errors.
– suda
yesterday
add a comment |
I want to download the feature layer which I input as a string parameter to my GP service. When I run the script I got the following errors.
First time when I run it:
job-submitted gp_service_run2.php:110
job-failed
When I reload the page:
MapView.js:381 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(anonymous) @ MapView.js:381 set @ MapView.js:380 m.updateDependencies @ MapView.js:436 updateDependencies @ MapView.js:432 onResume @ MapView.js:349
b.resume @ MapView.js:351 (anonymous) @ MapView.js:362 m @ dojo.js:1079
p.onInstall @ MapView.js:362 b @ MapView.js:432 m.installHandlers @ MapView.js:433 g._connect @ MapView.js:342 (anonymous) @ MapView.js:341
(anonymous) @ dojo.js:1077 a @ dojo.js:363 m @ dojo.js:364 p @ dojo.js:370
(anonymous) @ dojo.js:374 gp_service_run2.php:110
job-submitted gp_service_run2.php:110
job-executinggp_service_run2.php:110
job-failed
In all other occasions when reloading same error and:
job-submitted gp_service_run2.php:110
job-failed
Where I have made the mistake in my code?
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/layers/FeatureLayer",
"esri/tasks/Geoprocessor",
//"esri/tasks/FeatureSet",
"esri/views/MapView",
"esri/layers/support/ImageParameters"
],
function(
Map,MapView, FeatureLayer,Geoprocessor,ImageParameters,FeatureSet )
var gpUrl="http://www.xxxxxxxxxxxxxxxxxxxxxxx/GPServer/Script";
var map = new Map(
basemap: "gray"
);
var view = new MapView(
container: "viewDiv",
map: map,
center: [80.9,7.8],
zoom: 8
);
var featureLayer2 = new FeatureLayer(
url:"http://www.xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FeatureServer",
outFields:["*"],
popupTemplate:
title:"Parcel Deatils",
content:"Lot No:"+"sht_pg_id"
);
map.add(featureLayer2);
var gp =new Geoprocessor(gpUrl);
//gp.outSpatialReference = map.spatialReference;
gp.outSpatialReference =
wkid: 5235
;
var params =
"sheet": featureLayer2,
"Plan_No":"28006103S001"
;
gp.submitJob(params).then(drawResultData, errBack, progTest);
function drawResultData(result)
//var resultLayer = gp.getResultData(result.jobId);
//map.add(resultLayer);
//document.getElementById("demo").innerHTML = ""+result.jobId;
if (result.jobStatus == "job-succeeded")
gp.getResultData(result.jobId,"save",downloadFile);
;
function progTest(value)
//message.innerText = "Job status: " + "'" + value.jobStatus + "'";
console.log(value.jobStatus);
function errBack(error)
//message.innerText = "";
console.log("gp error: ", error);
);
</script>
arcgis-server geoprocessing-service arcgis-javascript-api-4
New contributor
suda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I want to download the feature layer which I input as a string parameter to my GP service. When I run the script I got the following errors.
First time when I run it:
job-submitted gp_service_run2.php:110
job-failed
When I reload the page:
MapView.js:381 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
(anonymous) @ MapView.js:381 set @ MapView.js:380 m.updateDependencies @ MapView.js:436 updateDependencies @ MapView.js:432 onResume @ MapView.js:349
b.resume @ MapView.js:351 (anonymous) @ MapView.js:362 m @ dojo.js:1079
p.onInstall @ MapView.js:362 b @ MapView.js:432 m.installHandlers @ MapView.js:433 g._connect @ MapView.js:342 (anonymous) @ MapView.js:341
(anonymous) @ dojo.js:1077 a @ dojo.js:363 m @ dojo.js:364 p @ dojo.js:370
(anonymous) @ dojo.js:374 gp_service_run2.php:110
job-submitted gp_service_run2.php:110
job-executinggp_service_run2.php:110
job-failed
In all other occasions when reloading same error and:
job-submitted gp_service_run2.php:110
job-failed
Where I have made the mistake in my code?
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/layers/FeatureLayer",
"esri/tasks/Geoprocessor",
//"esri/tasks/FeatureSet",
"esri/views/MapView",
"esri/layers/support/ImageParameters"
],
function(
Map,MapView, FeatureLayer,Geoprocessor,ImageParameters,FeatureSet )
var gpUrl="http://www.xxxxxxxxxxxxxxxxxxxxxxx/GPServer/Script";
var map = new Map(
basemap: "gray"
);
var view = new MapView(
container: "viewDiv",
map: map,
center: [80.9,7.8],
zoom: 8
);
var featureLayer2 = new FeatureLayer(
url:"http://www.xxxxxxxxxxxxxxxxxxxxxxxxxxxx/FeatureServer",
outFields:["*"],
popupTemplate:
title:"Parcel Deatils",
content:"Lot No:"+"sht_pg_id"
);
map.add(featureLayer2);
var gp =new Geoprocessor(gpUrl);
//gp.outSpatialReference = map.spatialReference;
gp.outSpatialReference =
wkid: 5235
;
var params =
"sheet": featureLayer2,
"Plan_No":"28006103S001"
;
gp.submitJob(params).then(drawResultData, errBack, progTest);
function drawResultData(result)
//var resultLayer = gp.getResultData(result.jobId);
//map.add(resultLayer);
//document.getElementById("demo").innerHTML = ""+result.jobId;
if (result.jobStatus == "job-succeeded")
gp.getResultData(result.jobId,"save",downloadFile);
;
function progTest(value)
//message.innerText = "Job status: " + "'" + value.jobStatus + "'";
console.log(value.jobStatus);
function errBack(error)
//message.innerText = "";
console.log("gp error: ", error);
);
</script>
arcgis-server geoprocessing-service arcgis-javascript-api-4
arcgis-server geoprocessing-service arcgis-javascript-api-4
New contributor
suda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
suda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited yesterday
suda
New contributor
suda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Apr 5 at 9:40
sudasuda
13
13
New contributor
suda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
suda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
suda is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
you'll need to add more information. You've provided a snippet of JS which from a quick scan looks ok, but you're referencing PHP errors. How are you running the code? If you run the GP Service from ArcMap or Pro, does it work there? (that'll explain if the error is in the service or the JS/PHP code)
– KHibma
Apr 5 at 12:39
When I connect to GP server through arcmap,it is working and output feature layer automatically add to the window.(i am running this php file using localhost.)
– suda
Apr 6 at 6:08
Your problem is probably in thedrawResultDatafunction. You're callinggetResultDatatwice. 1) you're calling it probably before the submitJob == finished and 2) you're calling it again, after succeeded, but looking more like filedownload, than featurelayer draw. You'll need to go back and re-work your JS code.
– KHibma
2 days ago
Thank you for your valuable idea.i have edited as you said above. Actually, I need to download the relevant feature layer rather than adding it into the map. The edited code is mentioned above. I think this is the code you expected. But still, this is not working. But i forget very import thing tell you. That is, when i run the programme( mentioned above before) first time on the day it said the job-succeeded.next time when I reload it, it gave the above errors.
– suda
yesterday
add a comment |
1
you'll need to add more information. You've provided a snippet of JS which from a quick scan looks ok, but you're referencing PHP errors. How are you running the code? If you run the GP Service from ArcMap or Pro, does it work there? (that'll explain if the error is in the service or the JS/PHP code)
– KHibma
Apr 5 at 12:39
When I connect to GP server through arcmap,it is working and output feature layer automatically add to the window.(i am running this php file using localhost.)
– suda
Apr 6 at 6:08
Your problem is probably in thedrawResultDatafunction. You're callinggetResultDatatwice. 1) you're calling it probably before the submitJob == finished and 2) you're calling it again, after succeeded, but looking more like filedownload, than featurelayer draw. You'll need to go back and re-work your JS code.
– KHibma
2 days ago
Thank you for your valuable idea.i have edited as you said above. Actually, I need to download the relevant feature layer rather than adding it into the map. The edited code is mentioned above. I think this is the code you expected. But still, this is not working. But i forget very import thing tell you. That is, when i run the programme( mentioned above before) first time on the day it said the job-succeeded.next time when I reload it, it gave the above errors.
– suda
yesterday
1
1
you'll need to add more information. You've provided a snippet of JS which from a quick scan looks ok, but you're referencing PHP errors. How are you running the code? If you run the GP Service from ArcMap or Pro, does it work there? (that'll explain if the error is in the service or the JS/PHP code)
– KHibma
Apr 5 at 12:39
you'll need to add more information. You've provided a snippet of JS which from a quick scan looks ok, but you're referencing PHP errors. How are you running the code? If you run the GP Service from ArcMap or Pro, does it work there? (that'll explain if the error is in the service or the JS/PHP code)
– KHibma
Apr 5 at 12:39
When I connect to GP server through arcmap,it is working and output feature layer automatically add to the window.(i am running this php file using localhost.)
– suda
Apr 6 at 6:08
When I connect to GP server through arcmap,it is working and output feature layer automatically add to the window.(i am running this php file using localhost.)
– suda
Apr 6 at 6:08
Your problem is probably in the
drawResultData function. You're calling getResultData twice. 1) you're calling it probably before the submitJob == finished and 2) you're calling it again, after succeeded, but looking more like filedownload, than featurelayer draw. You'll need to go back and re-work your JS code.– KHibma
2 days ago
Your problem is probably in the
drawResultData function. You're calling getResultData twice. 1) you're calling it probably before the submitJob == finished and 2) you're calling it again, after succeeded, but looking more like filedownload, than featurelayer draw. You'll need to go back and re-work your JS code.– KHibma
2 days ago
Thank you for your valuable idea.i have edited as you said above. Actually, I need to download the relevant feature layer rather than adding it into the map. The edited code is mentioned above. I think this is the code you expected. But still, this is not working. But i forget very import thing tell you. That is, when i run the programme( mentioned above before) first time on the day it said the job-succeeded.next time when I reload it, it gave the above errors.
– suda
yesterday
Thank you for your valuable idea.i have edited as you said above. Actually, I need to download the relevant feature layer rather than adding it into the map. The edited code is mentioned above. I think this is the code you expected. But still, this is not working. But i forget very import thing tell you. That is, when i run the programme( mentioned above before) first time on the day it said the job-succeeded.next time when I reload it, it gave the above errors.
– suda
yesterday
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
suda is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317882%2fsubmitting-gp-service-fail%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
suda is a new contributor. Be nice, and check out our Code of Conduct.
suda is a new contributor. Be nice, and check out our Code of Conduct.
suda is a new contributor. Be nice, and check out our Code of Conduct.
suda is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f317882%2fsubmitting-gp-service-fail%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
you'll need to add more information. You've provided a snippet of JS which from a quick scan looks ok, but you're referencing PHP errors. How are you running the code? If you run the GP Service from ArcMap or Pro, does it work there? (that'll explain if the error is in the service or the JS/PHP code)
– KHibma
Apr 5 at 12:39
When I connect to GP server through arcmap,it is working and output feature layer automatically add to the window.(i am running this php file using localhost.)
– suda
Apr 6 at 6:08
Your problem is probably in the
drawResultDatafunction. You're callinggetResultDatatwice. 1) you're calling it probably before the submitJob == finished and 2) you're calling it again, after succeeded, but looking more like filedownload, than featurelayer draw. You'll need to go back and re-work your JS code.– KHibma
2 days ago
Thank you for your valuable idea.i have edited as you said above. Actually, I need to download the relevant feature layer rather than adding it into the map. The edited code is mentioned above. I think this is the code you expected. But still, this is not working. But i forget very import thing tell you. That is, when i run the programme( mentioned above before) first time on the day it said the job-succeeded.next time when I reload it, it gave the above errors.
– suda
yesterday