<?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: SQL Agent Jobs using ArcGIS Pro Single Use for Geoprocessing? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/sql-agent-jobs-using-arcgis-pro-single-use-for/m-p/275684#M10535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shane - I haven't worked this out yet, but I had to move on to some other projects.&amp;nbsp; Using Task Scheduler &amp;amp; Python based job failure notification (email) has been the present workaround....&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2018 21:17:15 GMT</pubDate>
    <dc:creator>NickHarvey</dc:creator>
    <dc:date>2018-11-26T21:17:15Z</dc:date>
    <item>
      <title>SQL Agent Jobs using ArcGIS Pro Single Use for Geoprocessing?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sql-agent-jobs-using-arcgis-pro-single-use-for/m-p/275682#M10533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All - I'm trying to set up a SQL Agent job step (pics below, SQL 2016) that runs a .py geoprocessing script built using Pro (3.6.5) on our test server.&amp;nbsp; So far, the job step only works IF I specify my Windows AD account as the SQL Agent Service Logon.&amp;nbsp; However, our group needs to run these using a common AD account OR by using the combination of a Local System Account (as Logon) and SQL Agent Proxies...I have tried running this scenario with Pro set as Single Use, Named User, Authorized for Offline Use, Signing In Automatically, etc.&amp;nbsp; ArcGIS Pro (2.2.1) was admin-installed for all users on the server and the script (.py) runs successfully when called in Task Scheduler, IDLE, other environments etc.&amp;nbsp; My guess is that the job step fails on "import arcpy" because I'm getting successful print messages from the script &lt;EM&gt;before&lt;/EM&gt; that line occurs.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance or suggestions appreciated!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job History Error:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;"...import arcpy File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 72, in &amp;lt;module&amp;gt; from arcpy.geoprocessing import gp File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in &amp;lt;module&amp;gt; from ._base import * File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 14, in &amp;lt;module&amp;gt; import arcgisscripting RuntimeError: Not signed into Portal. Process Exit Code 1. The step failed...."&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/416802_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/416808_Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 16:33:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sql-agent-jobs-using-arcgis-pro-single-use-for/m-p/275682#M10533</guid>
      <dc:creator>NickHarvey</dc:creator>
      <dc:date>2018-08-02T16:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Agent Jobs using ArcGIS Pro Single Use for Geoprocessing?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sql-agent-jobs-using-arcgis-pro-single-use-for/m-p/275683#M10534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Out of curiosity did you figure this out? I'm in a similar situation where I'm trying to run a python script when not logged into the server. Instead, the script is invoked by By a Windows Service run by the 'Local Sytem' account. The script fails when importing arcpy with an error of 'Not signed into Portal'.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sql-agent-jobs-using-arcgis-pro-single-use-for/m-p/275683#M10534</guid>
      <dc:creator>ShaneBuscher1</dc:creator>
      <dc:date>2018-11-08T15:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Agent Jobs using ArcGIS Pro Single Use for Geoprocessing?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sql-agent-jobs-using-arcgis-pro-single-use-for/m-p/275684#M10535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shane - I haven't worked this out yet, but I had to move on to some other projects.&amp;nbsp; Using Task Scheduler &amp;amp; Python based job failure notification (email) has been the present workaround....&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 21:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sql-agent-jobs-using-arcgis-pro-single-use-for/m-p/275684#M10535</guid>
      <dc:creator>NickHarvey</dc:creator>
      <dc:date>2018-11-26T21:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Agent Jobs using ArcGIS Pro Single Use for Geoprocessing?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sql-agent-jobs-using-arcgis-pro-single-use-for/m-p/275685#M10536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out how to use an AD service account without having to use the Task Scheduler. I had to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Log into the machine with the service account credentials&lt;/LI&gt;&lt;LI&gt;Open ArcGIS Pro&lt;/LI&gt;&lt;LI&gt;Sign in to ArcGIS Portal (or ArcGIS Online) using a named user account having a valid license for ArcGIS Pro&lt;/LI&gt;&lt;LI&gt;Check the box to sign in automatically&lt;/LI&gt;&lt;LI&gt;Finish launching ArcGIS Pro&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I do not know the exact mechanism used to validate a license when importing arcpy (neither does anyone I've talked with at ESRI either), it seems 'C:\Users\SomeUser\AppData\Local\ESRI\ArcGIS Pro' must have already been created. The steps above create the directory and files necessary to gain a license of Pro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you then use the service account to run your SQL Agent job it should successfully import ArcPy, eliminating the 'Not signed into Portal' error. I'm able to kick off ArcPy scripts using a Windows service running under an AD service account using these steps.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 21:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sql-agent-jobs-using-arcgis-pro-single-use-for/m-p/275685#M10536</guid>
      <dc:creator>ShaneBuscher1</dc:creator>
      <dc:date>2018-11-26T21:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Agent Jobs using ArcGIS Pro Single Use for Geoprocessing?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/sql-agent-jobs-using-arcgis-pro-single-use-for/m-p/275686#M10537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shane - That helped to corroborate the use of my own AD account and named user.&amp;nbsp; Thanks so much for replying.&amp;nbsp; Apologies for returning to this months later....Right now we have opted (for our team's situation) to use one of our Single Use ArcGIS Pro licenses (no sign in). &amp;nbsp; We had IT set up a single AD user to run our nightly SQL jobs using this Single Use license.&amp;nbsp; The user is specified as the SQL Agent logon (see &lt;A href="https://docs.microsoft.com/en-us/sql/ssms/agent/select-an-account-for-the-sql-server-agent-service?view=sql-server-2017"&gt;this article&lt;/A&gt;) + other limited SQL objects for running jobs, etc.&amp;nbsp; Our beta Pro-based python jobs are running w/out being logged in, off-hours, etc...So far, so good.&amp;nbsp; Anyway, hope this helps others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:47:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/sql-agent-jobs-using-arcgis-pro-single-use-for/m-p/275686#M10537</guid>
      <dc:creator>NickHarvey</dc:creator>
      <dc:date>2019-03-06T14:47:59Z</dc:date>
    </item>
  </channel>
</rss>

