<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error when trying to create Map Area :  in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-when-trying-to-create-map-area/m-p/50466#M217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got the following error while trying to create Map Area using&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/packaging/api-reference/create-map-area.htm" title="https://developers.arcgis.com/rest/packaging/api-reference/create-map-area.htm"&gt;Create Map Area—ArcGIS REST API: Packaging Service | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;"type": "esriJobMessageTypeError",&lt;BR /&gt; "description": "Error accessing item 51175a5a8cec4b2e8adaad3fc337bdc0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the post request used :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var settings = {&lt;BR /&gt; "async": true,&lt;BR /&gt; "crossDomain": true,&lt;BR /&gt;&lt;SPAN&gt; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fpackaging.arcgis.com%2Farcgis%2Frest%2Fservices%2FOfflinePackaging%2FGPServer%2FCreateMapArea%2FsubmitJob" rel="nofollow" target="_blank"&gt;https://packaging.arcgis.com/arcgis/rest/services/OfflinePackaging/GPServer/CreateMapArea/submitJob&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt; "method": "POST",&lt;BR /&gt; "headers": {&lt;BR /&gt; "Content-Type": "application/x-www-form-urlencoded",&lt;BR /&gt; "Cache-Control": "no-cache",&lt;BR /&gt; "Postman-Token": "a79da436-b0ad-4b07-9406-b37184cc8040"&lt;BR /&gt; },&lt;BR /&gt; "data": {&lt;BR /&gt; "f": "json",&lt;BR /&gt; "token": "MY_TOKEN",&lt;BR /&gt; "mapItemId": "51175a5a8cec4b2e8adaad3fc337bdc0",&lt;BR /&gt; "extent": "{\n \t\"xmin\" : 3.225, \n \t\"ymin\" : 50.173, \n \t\"xmax\" : 3.241, \n \t\"ymax\" :50.179 \n\t}"&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$.ajax(settings).done(function (response) {&lt;BR /&gt; console.log(response);&lt;BR /&gt;});&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is the full error message when I'm requesting the job status :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{&lt;BR /&gt; "jobId": "j812b8dd7409242ac9c5f4aaee99648a3",&lt;BR /&gt; "jobStatus": "esriJobFailed",&lt;BR /&gt; "messages": [&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Submitted."&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Executing..."&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Start Time: Monday, June 18, 2018 12:27:20 PM"&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Running script CreateMapArea..."&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeError",&lt;BR /&gt; "description": "Error accessing item 51175a5a8cec4b2e8adaad3fc337bdc0"&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Completed script CreateMapArea..."&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeError",&lt;BR /&gt; "description": "Failed to execute (CreateMapArea)."&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Failed at Monday, June 18, 2018 12:27:28 PM (Elapsed Time: 7.66 seconds)"&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeError",&lt;BR /&gt; "description": "Failed."&lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me to understand why I'm facing this error ?&lt;/P&gt;&lt;P&gt;The Web Map "Cambrai" (id :&amp;nbsp;51175a5a8cec4b2e8adaad3fc337bdc0)&amp;nbsp; used is public and offline enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rémi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2018 12:38:44 GMT</pubDate>
    <dc:creator>RémiVan_Damme</dc:creator>
    <dc:date>2018-06-18T12:38:44Z</dc:date>
    <item>
      <title>Error when trying to create Map Area :</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-when-trying-to-create-map-area/m-p/50466#M217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got the following error while trying to create Map Area using&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/packaging/api-reference/create-map-area.htm" title="https://developers.arcgis.com/rest/packaging/api-reference/create-map-area.htm"&gt;Create Map Area—ArcGIS REST API: Packaging Service | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;"type": "esriJobMessageTypeError",&lt;BR /&gt; "description": "Error accessing item 51175a5a8cec4b2e8adaad3fc337bdc0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the post request used :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var settings = {&lt;BR /&gt; "async": true,&lt;BR /&gt; "crossDomain": true,&lt;BR /&gt;&lt;SPAN&gt; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fpackaging.arcgis.com%2Farcgis%2Frest%2Fservices%2FOfflinePackaging%2FGPServer%2FCreateMapArea%2FsubmitJob" rel="nofollow" target="_blank"&gt;https://packaging.arcgis.com/arcgis/rest/services/OfflinePackaging/GPServer/CreateMapArea/submitJob&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt; "method": "POST",&lt;BR /&gt; "headers": {&lt;BR /&gt; "Content-Type": "application/x-www-form-urlencoded",&lt;BR /&gt; "Cache-Control": "no-cache",&lt;BR /&gt; "Postman-Token": "a79da436-b0ad-4b07-9406-b37184cc8040"&lt;BR /&gt; },&lt;BR /&gt; "data": {&lt;BR /&gt; "f": "json",&lt;BR /&gt; "token": "MY_TOKEN",&lt;BR /&gt; "mapItemId": "51175a5a8cec4b2e8adaad3fc337bdc0",&lt;BR /&gt; "extent": "{\n \t\"xmin\" : 3.225, \n \t\"ymin\" : 50.173, \n \t\"xmax\" : 3.241, \n \t\"ymax\" :50.179 \n\t}"&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;$.ajax(settings).done(function (response) {&lt;BR /&gt; console.log(response);&lt;BR /&gt;});&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is the full error message when I'm requesting the job status :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{&lt;BR /&gt; "jobId": "j812b8dd7409242ac9c5f4aaee99648a3",&lt;BR /&gt; "jobStatus": "esriJobFailed",&lt;BR /&gt; "messages": [&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Submitted."&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Executing..."&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Start Time: Monday, June 18, 2018 12:27:20 PM"&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Running script CreateMapArea..."&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeError",&lt;BR /&gt; "description": "Error accessing item 51175a5a8cec4b2e8adaad3fc337bdc0"&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Completed script CreateMapArea..."&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeError",&lt;BR /&gt; "description": "Failed to execute (CreateMapArea)."&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeInformative",&lt;BR /&gt; "description": "Failed at Monday, June 18, 2018 12:27:28 PM (Elapsed Time: 7.66 seconds)"&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "type": "esriJobMessageTypeError",&lt;BR /&gt; "description": "Failed."&lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me to understand why I'm facing this error ?&lt;/P&gt;&lt;P&gt;The Web Map "Cambrai" (id :&amp;nbsp;51175a5a8cec4b2e8adaad3fc337bdc0)&amp;nbsp; used is public and offline enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rémi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 12:38:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/error-when-trying-to-create-map-area/m-p/50466#M217</guid>
      <dc:creator>RémiVan_Damme</dc:creator>
      <dc:date>2018-06-18T12:38:44Z</dc:date>
    </item>
  </channel>
</rss>

