<?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 publishing Scene Layer Package item in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-publishing-scene-layer-package-item/m-p/848633#M3769</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'm using the ArcGIS API for Python inside a Python Toolbox tool in ArcGIS Pro 2.0. Part of my process is to create a Web Scene Layer Package which I upload to ArcGIS Online without any problems. but when I try to use the publish() function to create the service I always get the following error:&lt;/P&gt;&lt;P&gt;`Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 143, in execute&lt;BR /&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 4708, in publish&lt;BR /&gt; serviceitem_id = self._check_publish_status(ret, folder)&lt;BR /&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 4951, in _check_publish_status&lt;BR /&gt; raise Exception("No job id")&lt;BR /&gt;Exception: No job id&lt;BR /&gt;Failed to execute (Tool).`&lt;/P&gt;&lt;P&gt;If I try to publish the package item manually from ArcGIS Online it all works just fine.&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;# Uploading scene layer file to ArcGIS online&lt;BR /&gt;slpk_properties = {'title': item_title,&lt;BR /&gt; 'description': 'Scene Layer de la capa: ' + fc,&lt;BR /&gt; 'tags': 'arcgis, bim',&lt;BR /&gt; 'type': 'Scene Package'}&lt;/P&gt;&lt;P&gt;layer_scene_pkg_item = gis.content.add(item_properties=slpk_properties, data=sceneLayerPath)&lt;BR /&gt;arcpy.AddMessage("Scene Layer package uploaded to AGOL: " + sceneLayerPath)&lt;/P&gt;&lt;P&gt;layer_scene_hosted_service = layer_scene_pkg_item.publish()&lt;BR /&gt;arcpy.AddMessage("Scene Layer package published to AGOL: " + sceneLayerPath)&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm using version 1.2.3 of the API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2017 16:51:48 GMT</pubDate>
    <dc:creator>KevinEscalera2</dc:creator>
    <dc:date>2017-09-20T16:51:48Z</dc:date>
    <item>
      <title>Error publishing Scene Layer Package item</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-publishing-scene-layer-package-item/m-p/848633#M3769</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'm using the ArcGIS API for Python inside a Python Toolbox tool in ArcGIS Pro 2.0. Part of my process is to create a Web Scene Layer Package which I upload to ArcGIS Online without any problems. but when I try to use the publish() function to create the service I always get the following error:&lt;/P&gt;&lt;P&gt;`Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 143, in execute&lt;BR /&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 4708, in publish&lt;BR /&gt; serviceitem_id = self._check_publish_status(ret, folder)&lt;BR /&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 4951, in _check_publish_status&lt;BR /&gt; raise Exception("No job id")&lt;BR /&gt;Exception: No job id&lt;BR /&gt;Failed to execute (Tool).`&lt;/P&gt;&lt;P&gt;If I try to publish the package item manually from ArcGIS Online it all works just fine.&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;# Uploading scene layer file to ArcGIS online&lt;BR /&gt;slpk_properties = {'title': item_title,&lt;BR /&gt; 'description': 'Scene Layer de la capa: ' + fc,&lt;BR /&gt; 'tags': 'arcgis, bim',&lt;BR /&gt; 'type': 'Scene Package'}&lt;/P&gt;&lt;P&gt;layer_scene_pkg_item = gis.content.add(item_properties=slpk_properties, data=sceneLayerPath)&lt;BR /&gt;arcpy.AddMessage("Scene Layer package uploaded to AGOL: " + sceneLayerPath)&lt;/P&gt;&lt;P&gt;layer_scene_hosted_service = layer_scene_pkg_item.publish()&lt;BR /&gt;arcpy.AddMessage("Scene Layer package published to AGOL: " + sceneLayerPath)&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm using version 1.2.3 of the API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 16:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-publishing-scene-layer-package-item/m-p/848633#M3769</guid>
      <dc:creator>KevinEscalera2</dc:creator>
      <dc:date>2017-09-20T16:51:48Z</dc:date>
    </item>
  </channel>
</rss>

