<?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 generate offline areas in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-trying-to-generate-offline-areas/m-p/822975#M2892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to automate the creation of a set of offline areas from a AGOL web map. I've created a couple of areas for this web map manually through AGOL with no problem. However, when attempting this with the Python API, I'm getting errors. My web map is very simple and only contains a vector basemap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on the source of this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example below, I use a bookmark for the area, but the same error occurs if I use an extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this command:&lt;/P&gt;&lt;P&gt;offlineItem = oWebMap.offline_areas.create(area='TAE', item_properties=oLine_properties)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;The bookmark itself:
{       "extent": {         "spatialReference": {           "wkid": 102100         },         "xmax": -9311960.288686637,         "xmin": -9457037.768371958,         "ymax": 3644687.9398760623,         "ymin": 3470105.7672726526       },       "name": "TAE"
}

oLine_properties = {'title': 'TAE1',
 'tags': ['DAT'],
 'snippet': 'Offline Map for TAE CWA'}&lt;/PRE&gt;&lt;P&gt;The error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000;"&gt;&lt;DIV style="color: #000000; background-color: #ffdddd; padding: 0.4em;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"code": 24, "messageCode": "OffPkg_ 24", "message": "Parameter extent is invalid or exceeded limit.", "params": {"name": "extent"}} Failed to execute (CreateMapArea). Failed.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000;"&gt;&lt;DIV style="padding: 0px 0.4em;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; padding: 0.4em;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Submitted. Executing... Start Time: Thursday, February 13, 2020 2:06:55 AM Running script CreateMapArea... {"code": 24, "messageCode": "OffPkg_ 24", "message": "Parameter extent is invalid or exceeded limit.", "params": {"name": "extent"}} Completed script CreateMapArea... Failed to execute (CreateMapArea). Failed at Thursday, February 13, 2020 2:06:55 AM (Elapsed Time: 0.15 seconds) Failed.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000;"&gt;&lt;DIV style="padding: 0px 0.4em;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; padding: 0.4em;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #e75c58;"&gt;---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;Exception&lt;/SPAN&gt;                                 Traceback (most recent call last)&lt;SPAN style="color: #00a250;"&gt;&amp;lt;ipython-input-55-699c796e29ec&amp;gt;&lt;/SPAN&gt; in &lt;SPAN style="color: #60c6c8;"&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;----&amp;gt; 1&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt; &lt;/SPAN&gt;offlineItem &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; oWebMap&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;offline_areas&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;create&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;area&lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;'TAE'&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; item_properties&lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt;oLine_properties&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;~/opt/anaconda3/lib/python3.7/site-packages/arcgis/mapping/_types.py&lt;/SPAN&gt; in &lt;SPAN style="color: #60c6c8;"&gt;create&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;(self, area, item_properties, folder, min_scale, max_scale, layers_to_ignore, refresh_schedule, refresh_rates)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1269&lt;/SPAN&gt;         &lt;SPAN style="color: #00a250;"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;geoprocessing&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_tool &lt;SPAN style="color: #00a250;"&gt;import&lt;/SPAN&gt; Toolbox&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1270&lt;/SPAN&gt;         pkg_tb &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; Toolbox&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;url&lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt;self&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_url&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; gis&lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt;self&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_gis&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;-&amp;gt; 1271&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;         &lt;/SPAN&gt;oma_result &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; pkg_tb&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;create_map_area&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;self&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_item&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;id&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; _bookmark&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; _extent&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; output_name&lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt;output_name&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1272&lt;/SPAN&gt;         &lt;SPAN style="color: #e75c58;"&gt;# endregion&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1273&lt;/SPAN&gt;  &lt;SPAN style="color: #00a250;"&gt;~/opt/anaconda3/lib/python3.7/site-packages/arcgis/geoprocessing/_tool.py&lt;/SPAN&gt; in &lt;SPAN style="color: #60c6c8;"&gt;create_map_area&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;(self, map_item_id, bookmark, extent, area_type, area, output_name)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    101&lt;/SPAN&gt;         &lt;SPAN style="color: #e75c58;"&gt;#    print(k + " =&amp;gt; " + str(v))&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    102&lt;/SPAN&gt; &lt;SPAN style="color: #00a250;"&gt;--&amp;gt; 103&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;         &lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;return&lt;/SPAN&gt; self&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_execute&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;kwargs&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    104&lt;/SPAN&gt; &lt;SPAN style="color: #007427; font-weight: bold;"&gt;    105&lt;/SPAN&gt;     code &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; call&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;__code__ &lt;SPAN style="color: #00a250;"&gt;~/opt/anaconda3/lib/python3.7/site-packages/arcgis/geoprocessing/_tool.py&lt;/SPAN&gt; in &lt;SPAN style="color: #60c6c8;"&gt;_execute&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;(self, params)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1004&lt;/SPAN&gt;             &lt;SPAN style="color: #00a250;"&gt;try&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1005&lt;/SPAN&gt;                 isCan &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #00a250;"&gt;False&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;-&amp;gt; 1006&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;                 &lt;/SPAN&gt;job_info &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; super&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_analysis_job_status&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;task_url&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; job_info&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1007&lt;/SPAN&gt;             &lt;SPAN style="color: #00a250;"&gt;except&lt;/SPAN&gt; KeyboardInterrupt&lt;SPAN style="color: #208ffb;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1008&lt;/SPAN&gt;                 cancel_url &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;"%s/jobs/%s/cancel"&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;%&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;task_url&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; job_info&lt;SPAN style="color: #208ffb;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;'jobId'&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;]&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;~/opt/anaconda3/lib/python3.7/site-packages/arcgis/geoprocessing/_tool.py&lt;/SPAN&gt; in &lt;SPAN style="color: #60c6c8;"&gt;_analysis_job_status&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;(self, task_url, job_info)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    505&lt;/SPAN&gt; &lt;SPAN style="color: #007427; font-weight: bold;"&gt;    506&lt;/SPAN&gt;                     &lt;SPAN style="color: #00a250;"&gt;if&lt;/SPAN&gt; job_response&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;get&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;"jobStatus"&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;"esriJobFailed"&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;--&amp;gt; 507&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;                         &lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;raise&lt;/SPAN&gt; Exception&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;"Job failed."&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    508&lt;/SPAN&gt;                     &lt;SPAN style="color: #00a250;"&gt;elif&lt;/SPAN&gt; job_response&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;get&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;"jobStatus"&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;"esriJobCancelled"&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    509&lt;/SPAN&gt;                         &lt;SPAN style="color: #00a250;"&gt;raise&lt;/SPAN&gt; Exception&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;"Job cancelled."&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;Exception&lt;/SPAN&gt;: Job failed.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000;"&gt;&lt;DIV style="color: #000000; padding: 0.4em;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:47:08 GMT</pubDate>
    <dc:creator>ParksCamp</dc:creator>
    <dc:date>2021-12-12T09:47:08Z</dc:date>
    <item>
      <title>Error when trying to generate offline areas</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-trying-to-generate-offline-areas/m-p/822975#M2892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to automate the creation of a set of offline areas from a AGOL web map. I've created a couple of areas for this web map manually through AGOL with no problem. However, when attempting this with the Python API, I'm getting errors. My web map is very simple and only contains a vector basemap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on the source of this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example below, I use a bookmark for the area, but the same error occurs if I use an extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this command:&lt;/P&gt;&lt;P&gt;offlineItem = oWebMap.offline_areas.create(area='TAE', item_properties=oLine_properties)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;The bookmark itself:
{       "extent": {         "spatialReference": {           "wkid": 102100         },         "xmax": -9311960.288686637,         "xmin": -9457037.768371958,         "ymax": 3644687.9398760623,         "ymin": 3470105.7672726526       },       "name": "TAE"
}

oLine_properties = {'title': 'TAE1',
 'tags': ['DAT'],
 'snippet': 'Offline Map for TAE CWA'}&lt;/PRE&gt;&lt;P&gt;The error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000;"&gt;&lt;DIV style="color: #000000; background-color: #ffdddd; padding: 0.4em;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{"code": 24, "messageCode": "OffPkg_ 24", "message": "Parameter extent is invalid or exceeded limit.", "params": {"name": "extent"}} Failed to execute (CreateMapArea). Failed.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000;"&gt;&lt;DIV style="padding: 0px 0.4em;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; padding: 0.4em;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Submitted. Executing... Start Time: Thursday, February 13, 2020 2:06:55 AM Running script CreateMapArea... {"code": 24, "messageCode": "OffPkg_ 24", "message": "Parameter extent is invalid or exceeded limit.", "params": {"name": "extent"}} Completed script CreateMapArea... Failed to execute (CreateMapArea). Failed at Thursday, February 13, 2020 2:06:55 AM (Elapsed Time: 0.15 seconds) Failed.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000;"&gt;&lt;DIV style="padding: 0px 0.4em;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; padding: 0.4em;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #e75c58;"&gt;---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;Exception&lt;/SPAN&gt;                                 Traceback (most recent call last)&lt;SPAN style="color: #00a250;"&gt;&amp;lt;ipython-input-55-699c796e29ec&amp;gt;&lt;/SPAN&gt; in &lt;SPAN style="color: #60c6c8;"&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;----&amp;gt; 1&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt; &lt;/SPAN&gt;offlineItem &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; oWebMap&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;offline_areas&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;create&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;area&lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;'TAE'&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; item_properties&lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt;oLine_properties&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;~/opt/anaconda3/lib/python3.7/site-packages/arcgis/mapping/_types.py&lt;/SPAN&gt; in &lt;SPAN style="color: #60c6c8;"&gt;create&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;(self, area, item_properties, folder, min_scale, max_scale, layers_to_ignore, refresh_schedule, refresh_rates)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1269&lt;/SPAN&gt;         &lt;SPAN style="color: #00a250;"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;geoprocessing&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_tool &lt;SPAN style="color: #00a250;"&gt;import&lt;/SPAN&gt; Toolbox&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1270&lt;/SPAN&gt;         pkg_tb &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; Toolbox&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;url&lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt;self&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_url&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; gis&lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt;self&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_gis&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;-&amp;gt; 1271&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;         &lt;/SPAN&gt;oma_result &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; pkg_tb&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;create_map_area&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;self&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_item&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;id&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; _bookmark&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; _extent&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; output_name&lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt;output_name&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1272&lt;/SPAN&gt;         &lt;SPAN style="color: #e75c58;"&gt;# endregion&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1273&lt;/SPAN&gt;  &lt;SPAN style="color: #00a250;"&gt;~/opt/anaconda3/lib/python3.7/site-packages/arcgis/geoprocessing/_tool.py&lt;/SPAN&gt; in &lt;SPAN style="color: #60c6c8;"&gt;create_map_area&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;(self, map_item_id, bookmark, extent, area_type, area, output_name)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    101&lt;/SPAN&gt;         &lt;SPAN style="color: #e75c58;"&gt;#    print(k + " =&amp;gt; " + str(v))&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    102&lt;/SPAN&gt; &lt;SPAN style="color: #00a250;"&gt;--&amp;gt; 103&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;         &lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;return&lt;/SPAN&gt; self&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_execute&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;kwargs&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    104&lt;/SPAN&gt; &lt;SPAN style="color: #007427; font-weight: bold;"&gt;    105&lt;/SPAN&gt;     code &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; call&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;__code__ &lt;SPAN style="color: #00a250;"&gt;~/opt/anaconda3/lib/python3.7/site-packages/arcgis/geoprocessing/_tool.py&lt;/SPAN&gt; in &lt;SPAN style="color: #60c6c8;"&gt;_execute&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;(self, params)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1004&lt;/SPAN&gt;             &lt;SPAN style="color: #00a250;"&gt;try&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1005&lt;/SPAN&gt;                 isCan &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #00a250;"&gt;False&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;-&amp;gt; 1006&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;                 &lt;/SPAN&gt;job_info &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; super&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;_analysis_job_status&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;task_url&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; job_info&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1007&lt;/SPAN&gt;             &lt;SPAN style="color: #00a250;"&gt;except&lt;/SPAN&gt; KeyboardInterrupt&lt;SPAN style="color: #208ffb;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;   1008&lt;/SPAN&gt;                 cancel_url &lt;SPAN style="color: #208ffb;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;"%s/jobs/%s/cancel"&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;%&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;task_url&lt;SPAN style="color: #208ffb;"&gt;,&lt;/SPAN&gt; job_info&lt;SPAN style="color: #208ffb;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;'jobId'&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;]&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;~/opt/anaconda3/lib/python3.7/site-packages/arcgis/geoprocessing/_tool.py&lt;/SPAN&gt; in &lt;SPAN style="color: #60c6c8;"&gt;_analysis_job_status&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;(self, task_url, job_info)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    505&lt;/SPAN&gt; &lt;SPAN style="color: #007427; font-weight: bold;"&gt;    506&lt;/SPAN&gt;                     &lt;SPAN style="color: #00a250;"&gt;if&lt;/SPAN&gt; job_response&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;get&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;"jobStatus"&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;"esriJobFailed"&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;--&amp;gt; 507&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;                         &lt;/SPAN&gt;&lt;SPAN style="color: #00a250;"&gt;raise&lt;/SPAN&gt; Exception&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;"Job failed."&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    508&lt;/SPAN&gt;                     &lt;SPAN style="color: #00a250;"&gt;elif&lt;/SPAN&gt; job_response&lt;SPAN style="color: #208ffb;"&gt;.&lt;/SPAN&gt;get&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;"jobStatus"&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="color: #208ffb;"&gt;"esriJobCancelled"&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #007427; font-weight: bold;"&gt;    509&lt;/SPAN&gt;                         &lt;SPAN style="color: #00a250;"&gt;raise&lt;/SPAN&gt; Exception&lt;SPAN style="color: #208ffb;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;"Job cancelled."&lt;/SPAN&gt;&lt;SPAN style="color: #208ffb;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #e75c58;"&gt;Exception&lt;/SPAN&gt;: Job failed.&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000;"&gt;&lt;DIV style="color: #000000; padding: 0.4em;"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-trying-to-generate-offline-areas/m-p/822975#M2892</guid>
      <dc:creator>ParksCamp</dc:creator>
      <dc:date>2021-12-12T09:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to generate offline areas</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-trying-to-generate-offline-areas/m-p/822976#M2893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having the same issue when attempting to create an offline area from an extent and a bookmark.&amp;nbsp; I'm getting the following error message.&amp;nbsp; I've imported the mapping and geometry packages but that didn't fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------&lt;BR /&gt;NameError Traceback (most recent call last)&lt;BR /&gt;In [11]:&lt;BR /&gt;Line 1: offline_item = webmap.offline_areas.create(area = webmap.definition.bookmarks[0].name, item_properties = offline_item_properties, min_scale=16000, max_scale=100000)&lt;/P&gt;&lt;P&gt;File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\mapping\_types.py, in create:&lt;BR /&gt;Line 1296: elif isinstance(area, Envelope) or \&lt;/P&gt;&lt;P&gt;NameError: name 'Envelope' is not defined&lt;BR /&gt;---------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 18:31:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-trying-to-generate-offline-areas/m-p/822976#M2893</guid>
      <dc:creator>LauraRoghair</dc:creator>
      <dc:date>2020-02-28T18:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to generate offline areas</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-trying-to-generate-offline-areas/m-p/1064339#M6163</link>
      <description>&lt;P&gt;I know this is an old post, but I too am having this issue.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{"code": 24, "messageCode": "OffPkg_ 24", "message": "Parameter extent is invalid or exceeded limit.", "params": {"name": "extent"}}
Failed to execute (CreateMapArea).
Failed.&lt;/LI-CODE&gt;&lt;P&gt;Anything new here ESRI?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 20:37:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-trying-to-generate-offline-areas/m-p/1064339#M6163</guid>
      <dc:creator>cschooley</dc:creator>
      <dc:date>2021-06-02T20:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to generate offline areas</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-trying-to-generate-offline-areas/m-p/1468796#M10020</link>
      <description>&lt;P&gt;I came across this issue and found it was tied to the polygon complexity. There were either geometry errors or too many vertices in the feature itself. Simpler polygons in the same layer worked while larger/complex ones did not.&lt;/P&gt;&lt;P&gt;I ran the generalize tool on the polygon layer to smooth them out and the error disappeared.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 22:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-when-trying-to-generate-offline-areas/m-p/1468796#M10020</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2024-05-14T22:54:46Z</dc:date>
    </item>
  </channel>
</rss>

