<?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 Scheduled Python script fails after token expiration in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/scheduled-python-script-fails-after-token/m-p/782043#M1246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our organization hosts a Pro Python script for another organization. This script updates feature service layers on the second organization's portal. On&amp;nbsp;our host computer, ArcGIS Pro uses the named user licensing option. We have enabled the 'Authorize ArcGIS Pro to work offline' option with one of our users so that the second organization doesn't need to supply&amp;nbsp;a Pro license.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Pro&amp;nbsp;provides the option to sign on to multiple portals so we thought we could&amp;nbsp;establish an AGOL account on the second&amp;nbsp;organization's portal to publish the feature service layers directly to their portal. And this works great, for two weeks until the&amp;nbsp;organization's portal token expires. We&amp;nbsp;start getting a runtime error with this method call:&amp;nbsp;arcpy.mp.CreateWebLayerSDDraft().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I log onto the server that hosts the script and log into the&amp;nbsp;organization's portal through Pro, the script runs fine for the next two weeks. This is obviously not ideal for a regularly scheduled process that is intended to run&amp;nbsp;unattended. Is there a Python API available to connect to an organization's portal without running Pro? Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Oct 2019 21:22:01 GMT</pubDate>
    <dc:creator>LesleyBross1</dc:creator>
    <dc:date>2019-10-18T21:22:01Z</dc:date>
    <item>
      <title>Scheduled Python script fails after token expiration</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/scheduled-python-script-fails-after-token/m-p/782043#M1246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our organization hosts a Pro Python script for another organization. This script updates feature service layers on the second organization's portal. On&amp;nbsp;our host computer, ArcGIS Pro uses the named user licensing option. We have enabled the 'Authorize ArcGIS Pro to work offline' option with one of our users so that the second organization doesn't need to supply&amp;nbsp;a Pro license.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Pro&amp;nbsp;provides the option to sign on to multiple portals so we thought we could&amp;nbsp;establish an AGOL account on the second&amp;nbsp;organization's portal to publish the feature service layers directly to their portal. And this works great, for two weeks until the&amp;nbsp;organization's portal token expires. We&amp;nbsp;start getting a runtime error with this method call:&amp;nbsp;arcpy.mp.CreateWebLayerSDDraft().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I log onto the server that hosts the script and log into the&amp;nbsp;organization's portal through Pro, the script runs fine for the next two weeks. This is obviously not ideal for a regularly scheduled process that is intended to run&amp;nbsp;unattended. Is there a Python API available to connect to an organization's portal without running Pro? Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2019 21:22:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/scheduled-python-script-fails-after-token/m-p/782043#M1246</guid>
      <dc:creator>LesleyBross1</dc:creator>
      <dc:date>2019-10-18T21:22:01Z</dc:date>
    </item>
  </channel>
</rss>

