RemiVD

Error when trying to create Map Area :

Discussion created by RemiVD on Jun 18, 2018

Hi,

 

I've got the following error while trying to create Map Area using Create Map Area—ArcGIS REST API: Packaging Service | ArcGIS for Developers :

"type": "esriJobMessageTypeError",
"description": "Error accessing item 51175a5a8cec4b2e8adaad3fc337bdc0"

 

Here is the post request used :

 

var settings = {
"async": true,
"crossDomain": true,
"url": "https://packaging.arcgis.com/arcgis/rest/services/OfflinePackaging/GPServer/CreateMapArea/submitJob",
"method": "POST",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Cache-Control": "no-cache",
"Postman-Token": "a79da436-b0ad-4b07-9406-b37184cc8040"
},
"data": {
"f": "json",
"token": "MY_TOKEN",
"mapItemId": "51175a5a8cec4b2e8adaad3fc337bdc0",
"extent": "{\n \t\"xmin\" : 3.225, \n \t\"ymin\" : 50.173, \n \t\"xmax\" : 3.241, \n \t\"ymax\" :50.179 \n\t}"
}
}

$.ajax(settings).done(function (response) {
console.log(response);
});

 

And here is the full error message when I'm requesting the job status :

 

{
"jobId": "j812b8dd7409242ac9c5f4aaee99648a3",
"jobStatus": "esriJobFailed",
"messages": [
{
"type": "esriJobMessageTypeInformative",
"description": "Submitted."
},
{
"type": "esriJobMessageTypeInformative",
"description": "Executing..."
},
{
"type": "esriJobMessageTypeInformative",
"description": "Start Time: Monday, June 18, 2018 12:27:20 PM"
},
{
"type": "esriJobMessageTypeInformative",
"description": "Running script CreateMapArea..."
},
{
"type": "esriJobMessageTypeError",
"description": "Error accessing item 51175a5a8cec4b2e8adaad3fc337bdc0"
},
{
"type": "esriJobMessageTypeInformative",
"description": "Completed script CreateMapArea..."
},
{
"type": "esriJobMessageTypeError",
"description": "Failed to execute (CreateMapArea)."
},
{
"type": "esriJobMessageTypeInformative",
"description": "Failed at Monday, June 18, 2018 12:27:28 PM (Elapsed Time: 7.66 seconds)"
},
{
"type": "esriJobMessageTypeError",
"description": "Failed."
}
]
}

 

Could you help me to understand why I'm facing this error ?

The Web Map "Cambrai" (id : 51175a5a8cec4b2e8adaad3fc337bdc0)  used is public and offline enabled.

 

Thanks,

Rémi.

Outcomes