<?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 Re: Offline map area created using REST API will not package in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/offline-map-area-created-using-rest-api-will-not/m-p/1533754#M4833</link>
    <description>&lt;P&gt;Are there any differences when you look at the network traffic from your browser using the dev tool for manual creation as compared to your code above?&lt;/P&gt;</description>
    <pubDate>Sat, 31 Aug 2024 18:35:36 GMT</pubDate>
    <dc:creator>AnthonyRyanEQL</dc:creator>
    <dc:date>2024-08-31T18:35:36Z</dc:date>
    <item>
      <title>Offline map area created using REST API will not package</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/offline-map-area-created-using-rest-api-will-not/m-p/1533701#M4832</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been having an issue where when I create an offline area using the REST API, it will not finish packaging, but when I do it manually through the settings of the web map, packaging takes seconds. Here is the api post request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;URI uri = new URI("https://packaging.arcgis.com/arcgis/rest/services/OfflinePackaging/GPServer/CreateMapArea/submitJob");
            url = uri.toURL();
            HttpURLConnection connection = (HttpURLConnection) url.openConnection();
            connection.setRequestMethod("POST");
            connection.setRequestProperty("content-type", "application/x-www-form-urlencoded");
            connection.setRequestProperty("Host", "www.arcgis.com");
            connection.setDoOutput(true);
            String requestBody =    "f=json" +
                                    "&amp;amp;mapItemId=a29f7bc8938d4a0ab93fe03bc9e194c5" +
                                    "&amp;amp;areaType=ENVELOPE" +
                                    "&amp;amp;area=" +
                                     "{\"" + 
                                        "spatialReference\":{\"latestWkid\":3857,\"wkid\":102100}," +
                                        "\"xmin\" : " + xmin + "," + // Top left point x coordinate
                                        "\"ymin\" : " + ymin + "," + // Bottom right point y coordinate
                                        "\"xmax\" : " + xmax + "," + // Bottom right point x coordinate
                                        "\"ymax\" : " + ymax + // Top left point y coordinate
                                    "}" +
                                    "&amp;amp;token=" + token;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Even when the area is as little as a kilometer squared, it still does not package. Why could this be?&lt;/P&gt;&lt;P&gt;Thanks for reading!&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 11:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/offline-map-area-created-using-rest-api-will-not/m-p/1533701#M4832</guid>
      <dc:creator>Gravixx</dc:creator>
      <dc:date>2024-09-01T11:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Offline map area created using REST API will not package</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/offline-map-area-created-using-rest-api-will-not/m-p/1533754#M4833</link>
      <description>&lt;P&gt;Are there any differences when you look at the network traffic from your browser using the dev tool for manual creation as compared to your code above?&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2024 18:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/offline-map-area-created-using-rest-api-will-not/m-p/1533754#M4833</guid>
      <dc:creator>AnthonyRyanEQL</dc:creator>
      <dc:date>2024-08-31T18:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Offline map area created using REST API will not package</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/offline-map-area-created-using-rest-api-will-not/m-p/1533851#M4834</link>
      <description>&lt;P&gt;Sorry, I've realized that I posted the wrong rest api code yesterday, and i've changed it now. I also looked at the network traffic using the dev tool and I saw no difference in traffic.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2024 12:01:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/offline-map-area-created-using-rest-api-will-not/m-p/1533851#M4834</guid>
      <dc:creator>Gravixx</dc:creator>
      <dc:date>2024-09-01T12:01:53Z</dc:date>
    </item>
  </channel>
</rss>

