<?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: Can I publish a scene layer package using this API? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873450#M4796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Min, could you verify you are using the 1.0.1 version of the API?&lt;/P&gt;&lt;P&gt;Could you also paste the full traceback, it would be easier to debug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Mar 2017 17:56:14 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2017-03-13T17:56:14Z</dc:date>
    <item>
      <title>Can I publish a scene layer package using this API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873449#M4795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been trying to programmatically upload a scene layer package and eventually publish it as a scene layer. The idea is that my web scene will get updated layers frequently, so I need to automate uploading, publishing, and reediting the web scene.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is that while trying this on the ArcGIS Pro Python console:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;gis = GIS("&lt;A href="http://esrimsia.maps.arcgis.com"&gt;http://esrimsia.maps.arcgis.com&lt;/A&gt;", "xxxx", "xxxxx")&lt;BR /&gt;slpk_path = r"D:\Documents\ArcGIS\Projects\MMD\Rainfall_pointsample_few.slpk"&lt;BR /&gt;slpk_properties={'title':'rainfall_test', 'description':'rainfall test', 'tags':'test', 'type':'Scene Package'}&lt;BR /&gt;rainfall_item = gis.content.add(item_properties=slpk_properties, data=slpk_path)&lt;BR /&gt;rainfall_item.publish()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the publish statement, I got the following error:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis.py", line 2818, in publish elif fileType == 'CSV':&lt;/P&gt;&lt;P&gt;UnboundLocalError: local variable 'fileType' referenced before assignment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the best way to tackle this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ken Moey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 09:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873449#M4795</guid>
      <dc:creator>Min_KenMoey</dc:creator>
      <dc:date>2017-03-10T09:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I publish a scene layer package using this API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873450#M4796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Min, could you verify you are using the 1.0.1 version of the API?&lt;/P&gt;&lt;P&gt;Could you also paste the full traceback, it would be easier to debug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 17:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873450#M4796</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-03-13T17:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I publish a scene layer package using this API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873451#M4797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atma Maini,&lt;/P&gt;&lt;P&gt;I was trying it on ArcGIS Pro, so the version says it's 0.3 of the ArcGIS API for Python. It's the latest one i just downloaded.&lt;/P&gt;&lt;P&gt;That is the full traceback that i got.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:08:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873451#M4797</guid>
      <dc:creator>Min_KenMoey</dc:creator>
      <dc:date>2017-03-13T18:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I publish a scene layer package using this API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873452#M4798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Min, please remove or mask that picture you posted as it accidentally has your credentials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ability to publish packages as web layers was added to version 1.0. Could you please update the package following &lt;A href="https://developers.arcgis.com/python/guide/install-and-set-up/#Upgrade-from-older-arcgis-package"&gt;these instructions&lt;/A&gt;&amp;nbsp;and then try again?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:34:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873452#M4798</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-03-13T18:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can I publish a scene layer package using this API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873453#M4799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atma Mani,&lt;/P&gt;&lt;P&gt;Alright that worked. I could publish it now. However, when i try to view the web scene which i published using ArcGIS API for Python, i get the error:&lt;/P&gt;&lt;DIV class="" data-dojo-attach-point="MessageShortDesc" title="Layer cannot be added"&gt;&lt;SPAN style="color: #ff0000;"&gt;Layer cannot be added&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-dojo-attach-point="MessageTypeIcon"&gt;&lt;SPAN style="color: #ff0000;"&gt;Unable to retrieve the scene service information.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-dojo-attach-point="MessageTypeIcon"&gt; &lt;/DIV&gt;&lt;DIV class="" data-dojo-attach-point="MessageTypeIcon"&gt;I compare this to when in the arcgis online browser item. I use that very same &lt;SPAN class="" title="Source: Scene Package"&gt;Scene Layer Package&lt;/SPAN&gt; that i just uploaded, enter the item description page and press 'Publish' button in the browser. This works instead. but if i use th command rainfall_item.publish() in ArcgIS Pro, it doesn't work.&lt;/DIV&gt;&lt;DIV class="" data-dojo-attach-point="MessageTypeIcon"&gt; &lt;/DIV&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ken Moey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 08:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873453#M4799</guid>
      <dc:creator>Min_KenMoey</dc:creator>
      <dc:date>2017-03-15T08:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can I publish a scene layer package using this API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873454#M4800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Min, since you are publishing to ArcGIS Online, we put a check where you need to visit the item (in the browser) and publish the tiles as a second step. This exists only on ArcGIS Online and not on Portal for ArcGIS since this step consumes some credits. We are evaluating a couple of different ways to address this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 16:30:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873454#M4800</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-03-15T16:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I publish a scene layer package using this API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873455#M4801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atma Mani,&lt;/P&gt;&lt;P&gt;Ok, so if i was publishing to Portal, it theoretically can work. Publishing to Portal is my ultimate use case actually. Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, MIn Ken&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 01:08:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/can-i-publish-a-scene-layer-package-using-this-api/m-p/873455#M4801</guid>
      <dc:creator>Min_KenMoey</dc:creator>
      <dc:date>2017-03-16T01:08:12Z</dc:date>
    </item>
  </channel>
</rss>

