<?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: Run Model with Python (model created in ArcGIS Pro) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201813#M15527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Mark Rankin wrote:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I'm using the models to run as scheduled tasks in the middle of the night.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's likely to be your problem.&amp;nbsp; Can you post&amp;nbsp;some details about the&amp;nbsp;scheduled task, in particular the security options in the general tab.&amp;nbsp; If you're not running the task as your user, either logged on or with stored password, you may not&amp;nbsp;be able to access the \\UNC network path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/428051_foo.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2018 00:37:18 GMT</pubDate>
    <dc:creator>Luke_Pinner</dc:creator>
    <dc:date>2018-11-08T00:37:18Z</dc:date>
    <item>
      <title>Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201808#M15522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the error "AttributeError: 'module' object has no attribute 'Step1CrimeDataPrep_CrimeTools'" when trying to run a model from python and the model was created in ArcGIS Pro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Import arcpy module&lt;BR /&gt;import arcpy, datetime, sys&lt;BR /&gt;from time import strftime&lt;/P&gt;&lt;P&gt;#----------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;arcpy.ImportToolbox(r"\\prfsgis\giswork\PROJECTS\Crime\Crime.tbx")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.Step1CrimeDataPrep_CrimeTools()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done this process in models created in desktop before but this is my first attempt using models created in Pro.&amp;nbsp; Do I have to do something different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mark Rankin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 00:09:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201808#M15522</guid>
      <dc:creator>MarkRankin1</dc:creator>
      <dc:date>2018-11-07T00:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201809#M15523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;arcpy.Step1CrimeDataPrep_CrimeTools()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;is true.&amp;nbsp; arcpy doesn't have that as a property or a method&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;some tips here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/modelbuilder/scheduling-a-model-run.htm" title="http://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/modelbuilder/scheduling-a-model-run.htm"&gt;Schedule a model—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt; reason that you want to run a model in a toolbox when Pro isn't open?&amp;nbsp; Moving to a script might be an alternative&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 01:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201809#M15523</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-07T01:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201810#M15524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ImportToolbox&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"c:\Temp\test.tbx"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;module &lt;SPAN class="string token"&gt;'test'&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;test&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;testfunc
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;function testfunc at &lt;SPAN class="number token"&gt;0x000000003BDC4268&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;testfunc_test
&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;function testfunc at &lt;SPAN class="number token"&gt;0x000000003BDC4268&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget Python is case sensitive.&amp;nbsp;&amp;nbsp;You may have defined the tool &lt;EM&gt;and/or&amp;nbsp;&lt;/EM&gt;toolbox&amp;nbsp;name property as something different to&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;Step1CrimeDataPrep&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;and/or&amp;nbsp;&lt;SPAN style="background-color: #ffffff; font-family: 'andale mono', monospace;"&gt;CrimeTools&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post a screenshot of the tool properties (general tab) and the toolbox (tbx) properties.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:01:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201810#M15524</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2021-12-11T10:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201811#M15525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the comments.&amp;nbsp; I'm using the models to run as scheduled tasks in the middle of the night.&amp;nbsp; I'm avoiding moving everything into a python script due to being more comfortable working in models and making adjustments as needed (I'm lazy).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've included a screenshot&amp;nbsp; below of the General tab.&amp;nbsp; I've made sure to keep out underscores (that's gotten me in trouble before).&amp;nbsp; I just received a new computer so I don't know if I've not installed everything correctly (the script starts fine and writes out to a log file but when it hits the arcpy portion it errors out).&lt;/P&gt;&lt;P&gt;.&amp;nbsp;&amp;nbsp;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/427908_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 17:42:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201811#M15525</guid>
      <dc:creator>MarkRankin1</dc:creator>
      <dc:date>2018-11-07T17:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201812#M15526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To test if everything for python in installed just run a simple script where you just do the arcpy import (or whatever it is for Pro).&amp;nbsp; If that throws an error, it might, but not definitely, indicate an issue with the install.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 17:55:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201812#M15526</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2018-11-07T17:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201813#M15527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Mark Rankin wrote:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I'm using the models to run as scheduled tasks in the middle of the night.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's likely to be your problem.&amp;nbsp; Can you post&amp;nbsp;some details about the&amp;nbsp;scheduled task, in particular the security options in the general tab.&amp;nbsp; If you're not running the task as your user, either logged on or with stored password, you may not&amp;nbsp;be able to access the \\UNC network path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/428051_foo.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 00:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201813#M15527</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2018-11-08T00:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201814#M15528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you also confirm that the Toolbox alias (when I said "name" previously, I meant alias) is really "&lt;SPAN style="background-color: #ffffff;"&gt;CrimeTools" not&amp;nbsp;&lt;/SPAN&gt;"Crime".&amp;nbsp; Your tbx file is "&lt;SPAN style="background-color: #ffffff;"&gt;Crime.tbx" and the alias property defaults to the filename with no extension.&amp;nbsp; Did you definitely change it to "&lt;SPAN&gt;CrimeTools"?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 01:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201814#M15528</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2018-11-08T01:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201815#M15529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an update to the forward progress.&amp;nbsp; Megan at ESRI has been helping me get to this point.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I installed PyCharm and when changing the project interpreter to C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe the script works.&amp;nbsp; Woohoo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Megan wrote.......&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open PyCharm&lt;/LI&gt;&lt;LI&gt;Navigate to File &amp;gt; Settings&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Expand Project tab &amp;gt; click Project Interpreter &amp;gt; if in the Project Interpreter section doesn't have&amp;nbsp;C:\Program&amp;nbsp;Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe listed, you need to add it&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Click on cog wheel icon &amp;gt; click Add Local option&lt;/LI&gt;&lt;LI&gt;Click System Interpreter option on left-side panel&lt;/LI&gt;&lt;LI&gt;Click the ... icon to navigate to following location and select python.exe &amp;gt;&amp;nbsp;C:\Program&amp;nbsp;Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe &amp;gt; click OK&lt;/LI&gt;&lt;LI&gt;Click OK &amp;gt; it might take a couple of minutes for PyCharm to set the environment to this new python executable&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now it's to what Luke was eluding to earlier...the dreaded Task Scheduler.&amp;nbsp; I have had no success getting the script to work in task scheduler.&amp;nbsp; My thought was to put the path to the python script in the "Program/script:" section and the path Megan gave me (&lt;SPAN&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe) in the "Start in (optional):" section.&amp;nbsp; This has not worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/428122_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll continue on and let you all know if I find the secret combo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your help.&amp;nbsp; GIS is a great community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 19:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201815#M15529</guid>
      <dc:creator>MarkRankin1</dc:creator>
      <dc:date>2018-11-08T19:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201816#M15530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running this scheduled task from a Windows Server?&amp;nbsp; If so, what is the version that you are running?&amp;nbsp; It appears that there are issues running Pro based scheduled tasks from a Windows Server 2012, but the scheduled tasks appear to work on a Windows Server 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/799194-python-script-as-sheduled-task-arcgis-pro"&gt;https://community.esri.com/message/799194-python-script-as-sheduled-task-arcgis-pro&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 20:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201816#M15530</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2018-11-08T20:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201817#M15531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You haven't answered either of my questions about the toolbox properties, or the scheduled task security properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You put the python filepath in the "&lt;SPAN style="background-color: #ffffff;"&gt;Program/script:" section and the script filepath in the "Add arguments" section.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 20:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201817#M15531</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2018-11-09T20:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201818#M15532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry about the delay in answering.&amp;nbsp; You are absolutely correct when I put&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;C:\Program&amp;nbsp;Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe in the "Program/scripts" and the path to my python script in "Add arguments" it worked like a dream.&amp;nbsp; I've tested having a time in the task scheduler and manually starting it from the task scheduler and it works both ways.&amp;nbsp; I'm running it from my local machine with Windows 10 due to us not having a server we can put ArcGIS Pro on right now so the server OS didn't come into the equation.&amp;nbsp; I have it setup to "run when weather user is logged on or not" and "run with highest privileges".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you all for your help.&amp;nbsp; You have all been very informative in helping me get this process automated.&amp;nbsp; I hope you all have a great weekend.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Mark Rankin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 22:01:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201818#M15532</guid>
      <dc:creator>MarkRankin1</dc:creator>
      <dc:date>2018-11-09T22:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201819#M15533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops I forgot to include that I did change the toolbox alias to "CrimeTools" it helped me not get as confused with too many portions just having the word crime in them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 22:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/201819#M15533</guid>
      <dc:creator>MarkRankin1</dc:creator>
      <dc:date>2018-11-09T22:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Run Model with Python (model created in ArcGIS Pro)</title>
      <link>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/1006849#M59212</link>
      <description>&lt;P&gt;Did you ever get a solution to running the model in Python itself?&lt;BR /&gt;I'm trying to get a Python Toolbox up and running and&amp;nbsp;ApplySymbologyFromLayer isn't working from the Python toolbox but works from a Model so I'm trying that until there is a bug fix from ESRI&lt;/P&gt;&lt;P&gt;I'm trying -&amp;gt;&amp;nbsp; arcpy.ImportToolbox(r"C:\\Data\\7A_MAPPING\\StyleFeaturesModels.tbx") but the compiler doesn't seem to recognise it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 00:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/run-model-with-python-model-created-in-arcgis-pro/m-p/1006849#M59212</guid>
      <dc:creator>LeandraGordon</dc:creator>
      <dc:date>2020-12-04T00:48:13Z</dc:date>
    </item>
  </channel>
</rss>

