<?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 Publish Web Tool, How to also Move Profile Credentials to Server? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-web-tool-how-to-also-move-profile/m-p/1056536#M6040</link>
    <description>&lt;P&gt;Python script wired to Pro 2.7 toolbox with defined parameters.&lt;/P&gt;&lt;P&gt;On my workstation I first ran this to setup the locally stored credential using a profile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
gisprofile = GIS(url="https://our.gisportal.gov/portal",username="tool_user",password="Toolpass123",profile="ourportal")

print("profile defined for {}".format(gisprofile))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can now successfully access the portal using this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Establish a connection to GIS Portal
gis = GIS(profile="ourportal")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I successfully published the web tool using the geoprocessing History in Pro.&lt;/P&gt;&lt;P&gt;But when you try to run the published web tool you get an error about the "ourportal" profile not existing. I &lt;STRONG&gt;CANNOT&lt;/STRONG&gt; run the first code snip above on the Server 10.8.1 machine because Pro isn't installed on that server. You get the error: &lt;EM&gt;No module named arcgis.gis&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So, how do you "install" the profile that stores the creentials on the server machine that executes the web tool?&lt;/P&gt;&lt;P&gt;I tried manually adding to win credential store, along with copy/pasting the .arcgisprofile file and the web tool doesn't error out (progress...) but simply times out with no other errors.&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 02:58:47 GMT</pubDate>
    <dc:creator>danbecker</dc:creator>
    <dc:date>2021-05-11T02:58:47Z</dc:date>
    <item>
      <title>Publish Web Tool, How to also Move Profile Credentials to Server?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-web-tool-how-to-also-move-profile/m-p/1056536#M6040</link>
      <description>&lt;P&gt;Python script wired to Pro 2.7 toolbox with defined parameters.&lt;/P&gt;&lt;P&gt;On my workstation I first ran this to setup the locally stored credential using a profile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
gisprofile = GIS(url="https://our.gisportal.gov/portal",username="tool_user",password="Toolpass123",profile="ourportal")

print("profile defined for {}".format(gisprofile))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can now successfully access the portal using this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Establish a connection to GIS Portal
gis = GIS(profile="ourportal")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I successfully published the web tool using the geoprocessing History in Pro.&lt;/P&gt;&lt;P&gt;But when you try to run the published web tool you get an error about the "ourportal" profile not existing. I &lt;STRONG&gt;CANNOT&lt;/STRONG&gt; run the first code snip above on the Server 10.8.1 machine because Pro isn't installed on that server. You get the error: &lt;EM&gt;No module named arcgis.gis&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So, how do you "install" the profile that stores the creentials on the server machine that executes the web tool?&lt;/P&gt;&lt;P&gt;I tried manually adding to win credential store, along with copy/pasting the .arcgisprofile file and the web tool doesn't error out (progress...) but simply times out with no other errors.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 02:58:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/publish-web-tool-how-to-also-move-profile/m-p/1056536#M6040</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2021-05-11T02:58:47Z</dc:date>
    </item>
  </channel>
</rss>

