<?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: Arcpy Sharepackage standalone script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-sharepackage-standalone-script/m-p/1248600#M66576</link>
    <description>&lt;P&gt;It turns out you need allow arcgis pro for offline usage&lt;BR /&gt;Then the Error vanishes&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 09:29:00 GMT</pubDate>
    <dc:creator>Rahul_Pandia</dc:creator>
    <dc:date>2023-01-17T09:29:00Z</dc:date>
    <item>
      <title>Arcpy Sharepackage standalone script</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-sharepackage-standalone-script/m-p/1248328#M66568</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am not able to run Sharepackage tool from a standalone script.(unable to sign in to portal)&lt;/P&gt;&lt;P&gt;Basically, It is not able to connect to portal.Just to clarify I able to run this script as Model Builder.&lt;BR /&gt;Also I am able to connect to portal via arcgis pro.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Error:&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Processing .... Share Package :&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "e:\script\test.py", line 130, in &amp;lt;module&amp;gt;&lt;BR /&gt;arcpy.management.SharePackage(in_package=Maps_vtpk, username=_username, password=_password, summary=_summary_shrPk, tags=_tags_shrPk, credits=_credits, public=_public, groups=[], organization=_organization, publish_web_layer=_publish_web_layer, portal_folder=_portal_folder)&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 12777, in SharePackage&lt;BR /&gt;raise e&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\management.py", line 12774, in SharePackage&lt;BR /&gt;retval = convertArcObjectToPythonObject(gp.SharePackage_management(*gp_fixargs((in_package, username, password, summary, tags, credits, public, groups, organization, publish_web_layer, portal_folder), True)))&lt;BR /&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;&lt;BR /&gt;return lambda *args: val(*gp_fixargs(args, True))&lt;BR /&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 002119: Must be connected and signed into the portal.&lt;BR /&gt;Failed to execute (SharePackage).&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2023 13:42:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-sharepackage-standalone-script/m-p/1248328#M66568</guid>
      <dc:creator>Rahul_Pandia</dc:creator>
      <dc:date>2023-01-14T13:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Sharepackage standalone script</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-sharepackage-standalone-script/m-p/1248330#M66569</link>
      <description>&lt;P&gt;in pro or modelbuilder you are connected to portal if you signed in&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-02101-02125-002119.htm" target="_blank"&gt;002119: Must be connected and signed into the portal.—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;is explicit, so if you need to sign in, then there are tools in arcpy to do so&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/signintoportal.htm" target="_blank"&gt;SignInToPortal—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but not being a portal or enterprise person, you will have to experiment on your own&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2023 15:35:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-sharepackage-standalone-script/m-p/1248330#M66569</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-01-14T15:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Sharepackage standalone script</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-sharepackage-standalone-script/m-p/1248332#M66570</link>
      <description>&lt;P&gt;Yes... my understanding is in sync with yours&lt;BR /&gt;I had tried few combinations....but &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/signintoportal.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;SignInToPortal&lt;/A&gt;&amp;nbsp;has been disabled for standalone scripts(&lt;A href="https://support.esri.com/en/technical-article/000021927" target="_blank"&gt;https://support.esri.com/en/technical-article/000021927&lt;/A&gt;)&lt;BR /&gt;but then there must be a way to call this tool&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2023 16:24:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-sharepackage-standalone-script/m-p/1248332#M66570</guid>
      <dc:creator>Rahul_Pandia</dc:creator>
      <dc:date>2023-01-14T16:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Sharepackage standalone script</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-sharepackage-standalone-script/m-p/1248600#M66576</link>
      <description>&lt;P&gt;It turns out you need allow arcgis pro for offline usage&lt;BR /&gt;Then the Error vanishes&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 09:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-sharepackage-standalone-script/m-p/1248600#M66576</guid>
      <dc:creator>Rahul_Pandia</dc:creator>
      <dc:date>2023-01-17T09:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Sharepackage standalone script</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-sharepackage-standalone-script/m-p/1248621#M66578</link>
      <description>&lt;P&gt;As indicated previously &lt;EM&gt;"&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;in pro or modelbuilder you are connected to portal if you signed in...&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 11:16:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-sharepackage-standalone-script/m-p/1248621#M66578</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-01-17T11:16:31Z</dc:date>
    </item>
  </channel>
</rss>

