<?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: Python and Publishing to AGO for Organisations and My Hosted Services does not ex in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/python-and-publishing-to-ago-for-organisations-and/m-p/216876#M10638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think (and this post was in March - so I might be wrong) it ended up being "user error".&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd created the SD in ArcMap and went to publish in python - with ArcMap shut.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had to create the SD in python and then it worked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Sep 2013 22:45:38 GMT</pubDate>
    <dc:creator>PeterTimmers</dc:creator>
    <dc:date>2013-09-09T22:45:38Z</dc:date>
    <item>
      <title>Python and Publishing to AGO for Organisations and My Hosted Services does not exist</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/python-and-publishing-to-ago-for-organisations-and/m-p/216874#M10636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've got a bit of python that is publishing (or rather overwriting) data regularly to AGO and it works while ArcMap is open but doesn't while ArcMap isn't.&amp;nbsp;&amp;nbsp; I am signing in to the portal in the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000732: Server: Dataset My Hosted Services does not exist or is not supported&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a sample of my code - slightly censored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;print "Signing in to Portal"
arcpy.SignInToPortal_server("login", "password", "http://www.arcgis.com/")

# Process: Stage Service
arcpy.StageService_server("file.sddraft", "file.sd")

# Process: Upload Service Definition
arcpy.UploadServiceDefinition_server("file.sd", "My Hosted Services", "ServiceName", "", "FROM_SERVICE_DEFINITION", "", "STARTED", "USE_DEFINITION", "NO_SHARE_ONLINE", "PRIVATE", "NO_SHARE_ORGANIZATION", "")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 22:34:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/python-and-publishing-to-ago-for-organisations-and/m-p/216874#M10636</guid>
      <dc:creator>PeterTimmers</dc:creator>
      <dc:date>2013-03-14T22:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python and Publishing to AGO for Organisations and My Hosted Services does not ex</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/python-and-publishing-to-ago-for-organisations-and/m-p/216875#M10637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having the same problem with 10.2, but am able to successfully publish/overwrite feature services using 10.1.&amp;nbsp; Which version are you using? &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/80680-How-to-publish-a-feature-service-to-ArcGIS-Online-from-an-mxd-USING-PYTHON?p=327619&amp;amp;viewfull=1#post327619"&gt;Here's&lt;/A&gt;&lt;SPAN&gt; a link to the the thread I posted to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 22:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/python-and-publishing-to-ago-for-organisations-and/m-p/216875#M10637</guid>
      <dc:creator>ErikEndrulat</dc:creator>
      <dc:date>2013-09-09T22:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Python and Publishing to AGO for Organisations and My Hosted Services does not ex</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/python-and-publishing-to-ago-for-organisations-and/m-p/216876#M10638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think (and this post was in March - so I might be wrong) it ended up being "user error".&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd created the SD in ArcMap and went to publish in python - with ArcMap shut.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had to create the SD in python and then it worked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 22:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/python-and-publishing-to-ago-for-organisations-and/m-p/216876#M10638</guid>
      <dc:creator>PeterTimmers</dc:creator>
      <dc:date>2013-09-09T22:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python and Publishing to AGO for Organisations and My Hosted Services does not exist</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/python-and-publishing-to-ago-for-organisations-and/m-p/216877#M10639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you ended up here, you should check out this &lt;A href="https://blogs.esri.com/esri/arcgis/2014/01/24/updating-your-hosted-feature-service-for-10-2/"&gt;blog post&lt;/A&gt; if you are using ArcGIS 10.2 or greater.&amp;nbsp; The moral of the story is that the SignInToPortal tool can no longer be used to login to ArcGIS Online from a stand alone Python script.&amp;nbsp; If you have ArcMap or ArcCatalog open when you run the script, it works.&amp;nbsp; Otherwise, you get the error that My Hosted Services does not exist or is not supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, to make the script completely standalone, you have to use the ArcGIS REST API to update the feature service.&amp;nbsp; They have a script with a configuration file that organizes the process for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 00:41:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/python-and-publishing-to-ago-for-organisations-and/m-p/216877#M10639</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2017-12-06T00:41:15Z</dc:date>
    </item>
  </channel>
</rss>

