<?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 Updating / Adding a large Scene Layer Package to AGOL - timeout? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-adding-a-large-scene-layer-package-to/m-p/804359#M2219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m trying to automate the update of a scene layer package in AGOL using a scheduled task and ArcGIS API for Python.&lt;BR /&gt;The problem is uploading the package to AGOL - I’ve tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;slpk_Item = gis.content.search("{} AND owner:{}".format(sd_fs_name, user), item_type="Scene Package")[0]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;slpk_Item.update(data=slpk_path)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and then tried to delete the package and re-add it using:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; gis.content.add(item_properties=slpk_properties, data=slpk_path)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Both work fine on a small test &lt;SPAN&gt;scene layer&amp;nbsp;&lt;/SPAN&gt;package but on my real data (90MB), the package gets updated/added to AGOL but the functions don’t return – my guess is it's taking too long and there is a timeout. In the &lt;STRONG&gt;arcgis.gis&lt;/STRONG&gt; module there is a &lt;STRONG&gt;status&lt;/STRONG&gt; function which suggests it’s used to poll an asynchronous add request for completion, but I can’t find any help on how to send the add/update asynchronously. Can anybody give an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Feb 2019 19:51:13 GMT</pubDate>
    <dc:creator>AndyMarchant</dc:creator>
    <dc:date>2019-02-09T19:51:13Z</dc:date>
    <item>
      <title>Updating / Adding a large Scene Layer Package to AGOL - timeout?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-adding-a-large-scene-layer-package-to/m-p/804359#M2219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’m trying to automate the update of a scene layer package in AGOL using a scheduled task and ArcGIS API for Python.&lt;BR /&gt;The problem is uploading the package to AGOL - I’ve tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;slpk_Item = gis.content.search("{} AND owner:{}".format(sd_fs_name, user), item_type="Scene Package")[0]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;slpk_Item.update(data=slpk_path)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and then tried to delete the package and re-add it using:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; gis.content.add(item_properties=slpk_properties, data=slpk_path)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Both work fine on a small test &lt;SPAN&gt;scene layer&amp;nbsp;&lt;/SPAN&gt;package but on my real data (90MB), the package gets updated/added to AGOL but the functions don’t return – my guess is it's taking too long and there is a timeout. In the &lt;STRONG&gt;arcgis.gis&lt;/STRONG&gt; module there is a &lt;STRONG&gt;status&lt;/STRONG&gt; function which suggests it’s used to poll an asynchronous add request for completion, but I can’t find any help on how to send the add/update asynchronously. Can anybody give an example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2019 19:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/updating-adding-a-large-scene-layer-package-to/m-p/804359#M2219</guid>
      <dc:creator>AndyMarchant</dc:creator>
      <dc:date>2019-02-09T19:51:13Z</dc:date>
    </item>
  </channel>
</rss>

