<?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: ArcGIS Pro Runtime Error: the product license has not been initialized in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1335196#M73707</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/672772"&gt;@VithushanLogan&lt;/a&gt;&amp;nbsp;- unfortunately this question is outside of my knowledge base -&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/920"&gt;@JeffBigos&lt;/a&gt;&amp;nbsp;- are you aware of how to accomplish this workflow?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 21:57:40 GMT</pubDate>
    <dc:creator>Robert_LeClair</dc:creator>
    <dc:date>2023-10-04T21:57:40Z</dc:date>
    <item>
      <title>ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1023123#M36851</link>
      <description>&lt;P&gt;I've issue license initialization in ArcGIS Pro 2.7. I can run python script manually via&amp;nbsp;command line and batch file but encountered with following run time error with scheduled task in Windows server 2019.&amp;nbsp;&lt;/P&gt;&lt;P&gt;File "C:\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 14, in &amp;lt;module&amp;gt;&lt;BR /&gt;import arcgisscripting&lt;BR /&gt;File "C:\arcgis\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgisscripting\__init__.py", line 128, in &amp;lt;module&amp;gt;&lt;BR /&gt;from ._arcgisscripting import *&lt;BR /&gt;RuntimeError: The Product License has not been initialized.&lt;/P&gt;&lt;P&gt;Any ideas or solutions?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Chintamani&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 18:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1023123#M36851</guid>
      <dc:creator>chintakandel</dc:creator>
      <dc:date>2021-02-03T18:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1023174#M36862</link>
      <description>&lt;P&gt;What type of ArcGIS Pro license are you using?&amp;nbsp; Named User, Concurrent or Single Use?&amp;nbsp; I found one case with this messaging where the customer changed the ArcGIS Pro license from Named User to Single Use license - this corrected the error message.&amp;nbsp; The error could have been thrown if the account running the script has never opened ArcGIS Pro, thus no roaming profile exists.&amp;nbsp; The analyst and customer tested the workflow using a Single Use license and it worked properly.&amp;nbsp; Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 20:23:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1023174#M36862</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2021-02-03T20:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1023612#M36931</link>
      <description>&lt;P&gt;Hi Robert,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion. Worked after running Pro with the account that is used to schedule task to run script.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chintamani&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 20:07:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1023612#M36931</guid>
      <dc:creator>chintakandel</dc:creator>
      <dc:date>2021-02-04T20:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1114356#M47541</link>
      <description>&lt;P&gt;Yes, I had a similar issue and just wanted to add my experience to the list.&amp;nbsp; I had a scheduled task that had been working for a while with no problems.&amp;nbsp; All of a sudden, I stopped getting email messages from the script.&amp;nbsp; The script wasn't capturing all exceptions in the code, just those in the main block of business logic.&amp;nbsp; So, it was not catching this error, which was causing the Scheduled Task to fail with code&amp;nbsp;2147942401.&amp;nbsp; Like you, I just opened ArcGIS Pro and signed into a named user account and the script started working.&lt;BR /&gt;&lt;BR /&gt;Could you explain Robert what might have changed?&amp;nbsp; I haven't logged into ArcGIS Pro on that machine in a while, but it was working a few months ago.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 00:12:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1114356#M47541</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2021-11-05T00:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1120019#M48270</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’ve been encountering similar issues.&amp;nbsp; I have found that ArcGIS Pro (which we license through AGOL) automatically logs itself out of every 90 days. I have many Arcpy scripts running via Task Scheduler 24/7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, periodically (usually once a day at a specific time) scripts will fail saying “RuntimeError: The Product License has not been initialized.”&amp;nbsp; No idea what is causing this error as this script runs all day every 30 mins and never gets this error the rest of the day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ESRI Tech Support sent me this suggestion which we have yet to implement…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We’ve done a bit of digging into our documentation and might have a solution for you. The bad news is, it doesn’t look like there’s a good way to handle the Pro license refresh through Python. The good news is, there is a promising option for handling it in your environment directly. Please see below for a configuration step-by-step that should solve your logout issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1: Environmental settings&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Convert your Named license to a Single Use license for this instance of Pro (if you haven’t already). See &lt;A href="https://pro.arcgis.com/en/pro-app/latest/get-started/convert-named-user-licenses-to-single-use.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/get-started/convert-named-user-licenses-to-single-use.htm&lt;/A&gt; for more details on how to configure this. This should allow offline access for Pro.&lt;/LI&gt;&lt;LI&gt;Make sure “Sign me in automatically” remains checked when you log into Pro on this machine. Just in case.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 2: Caching local user (src: &lt;A href="https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host-machine/td-p/553399" target="_blank"&gt;https://community.esri.com/t5/python-questions/arcpy-fails-to-import-when-not-logged-into-host-machine/td-p/553399&lt;/A&gt;)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Log into the server that will host the script using the username that will be running the script (i.e. the “owner” in task scheduler).&lt;/LI&gt;&lt;LI&gt;Once logged in, open ArcGIS Pro (this will create an esri profile cookie in your AppData folder, that ArcGIS will be able to use to recognize the user).&lt;/LI&gt;&lt;LI&gt;Make sure your license and configurations are set according to step 1 and close Pro.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 3: Just in case… (src: &lt;A href="https://community.esri.com/t5/arcgis-pro-questions/running-a-scheduled-task-on-a-server-machine/m-p/94134" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/running-a-scheduled-task-on-a-server-machine/m-p/94134&lt;/A&gt;)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If the issue persists after running through steps 1 and 2, it means that your Pro configuration requires the application to be open while running scripts against its library, for whatever reason. If this is the case, and only after completing steps 1 and 2, we recommend you include a task before the script in your task scheduler that will open ArcGIS Pro, to remove any weird library locks. This is an edge case but does appear to affect some users, so I wanted to include it in the outline.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 18:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1120019#M48270</guid>
      <dc:creator>Tom_Laue</dc:creator>
      <dc:date>2021-11-24T18:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1137580#M50599</link>
      <description>&lt;P&gt;Have you implemented these steps and have they worked? We are experiencing the same thing as you. We cannot figure out what is causing Pro to log out. We were trying to avoid converting to single-use license though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 19:53:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1137580#M50599</guid>
      <dc:creator>AlexisHandelman</dc:creator>
      <dc:date>2022-01-26T19:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1137858#M50636</link>
      <description>&lt;P&gt;I have not had a chance to implement this yet.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 14:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1137858#M50636</guid>
      <dc:creator>Tom_Laue</dc:creator>
      <dc:date>2022-01-27T14:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1144730#M51577</link>
      <description>&lt;P&gt;Our configuration is different than any other helpful threads - here is our config and solution.&lt;/P&gt;&lt;P&gt;Config: We have a dedicated scripting server (WS 2016); default Pro 2.9.1 install; custom cloned environment in "C:\Python3x\...\our_clone"; scripts on local and network drives; tasks run as a domain\service account that we cannot use as machine login; concurrent license&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Task Manager:&lt;UL&gt;&lt;LI&gt;General: Run as &amp;lt;domain\service acct&amp;gt;; Whether logged in or not; Highest Privileges (may not be necessary)&lt;/LI&gt;&lt;LI&gt;Action:&amp;nbsp;&lt;UL&gt;&lt;LI&gt;Program:&amp;nbsp;C:\Python3x\...\our_clone\python.exe&lt;/LI&gt;&lt;LI&gt;Argument: \\path\\to\\script.py (or c:\path\to\script.py)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&amp;lt;everything else default&amp;gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;ArcPro&lt;UL&gt;&lt;LI&gt;Right-click application --&amp;gt; more --&amp;gt; run as different user&lt;/LI&gt;&lt;LI&gt;(log in with service account credentials)&lt;/LI&gt;&lt;LI&gt;In the sign-in window, click the configure license settings in the lower left.&lt;UL&gt;&lt;LI&gt;2nd time logging in opens Pro - go to Settings\Licensing&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Change license type to Concurrent and set your license manager&lt;/LI&gt;&lt;LI&gt;Do NOT "Authorize Pro to work offline"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Our biggest problem was initializing the Arc license, which was due to the service account and Pro relationship. Several threads mention logging in as the Scheduled Task user, but that was not possible for us. I often Run As Admin, but had forgotten about the option to log into the application as the service account.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Other Attempts:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Setting Pro to work offline (I'm very glad this didn't fix our issue because Pro checks the license back in automatically after X period of time - wouldn't work well in our system of automation)&lt;/LI&gt;&lt;LI&gt;Task manager\Action: "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\propy"&lt;UL&gt;&lt;LI&gt;command not recognized.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Task manager\Action: "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\propy.bat"&lt;UL&gt;&lt;LI&gt;successfully recognizes cloned env, but still failed on import arcpy&lt;/LI&gt;&lt;LI&gt;I vaguely recall this command resolving to Pro's env once, so there may be some activation required.&lt;/LI&gt;&lt;LI&gt;as mentioned above, pointing the task directly to the clone's python.exe works and is very clear&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Task Manager\Action "Start in" had no affect regardless what path I entered&lt;/LI&gt;&lt;LI&gt;using batch files with conda activation and python execution&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 16 Feb 2022 17:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1144730#M51577</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-02-16T17:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1210732#M59655</link>
      <description>&lt;P&gt;Hi RickMomsen1,&lt;/P&gt;&lt;P&gt;I'm facing a similar issue and your setup sounds similar to ours.&amp;nbsp; It's a server machine that needs to trigger some Python scripts.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm not sure what you mean by "service account".&amp;nbsp; &amp;nbsp; Does that require a special kind of license?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 12:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1210732#M59655</guid>
      <dc:creator>LauraTateosian</dc:creator>
      <dc:date>2022-09-08T12:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1210755#M59657</link>
      <description>&lt;P&gt;We’re using service account as admin account. Ignore service account if you are using admin account for your computer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 14:03:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1210755#M59657</guid>
      <dc:creator>chintakandel</dc:creator>
      <dc:date>2022-09-08T14:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1210758#M59659</link>
      <description>&lt;P&gt;Thanks, our IT is setting up such an account.&amp;nbsp; I hope it works.&amp;nbsp; I'll post again either way.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 14:10:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1210758#M59659</guid>
      <dc:creator>LauraTateosian</dc:creator>
      <dc:date>2022-09-08T14:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1211225#M59700</link>
      <description>&lt;P&gt;Though related, my target functionality is a bit different from what is posted here.&amp;nbsp; I'm not triggering the run from a Task Manager.&amp;nbsp; It's triggered by PHP code.&amp;nbsp; I can't figure out what the equivalent of setting the task manager's privileges would be.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 18:18:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1211225#M59700</guid>
      <dc:creator>LauraTateosian</dc:creator>
      <dc:date>2022-09-09T18:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1211270#M59705</link>
      <description>&lt;P&gt;I think you have to run&amp;nbsp;&lt;SPAN&gt;Task Manager as administrator or service account to access system tools. You may require to run ArcGIS Pro as admin.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 20:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1211270#M59705</guid>
      <dc:creator>chintakandel</dc:creator>
      <dc:date>2022-09-09T20:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1211809#M59766</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; Thank you for posting this information.&amp;nbsp; I tried to follow this procedure, but perhaps when you said "Task Manager", you meant "Task Scheduler"?&amp;nbsp; The Task Manager doesn't have an Action option, but the Scheduler does.&amp;nbsp; It looks like this solution will not work for me, as I'm not triggering the script through a scheduled task.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 21:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1211809#M59766</guid>
      <dc:creator>LauraTateosian</dc:creator>
      <dc:date>2022-09-12T21:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1211812#M59767</link>
      <description>&lt;P&gt;Hi Chintakandel,&lt;/P&gt;&lt;P&gt;I can run as administrator.&amp;nbsp; &amp;nbsp;Can you tell me which system tools are involved?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 21:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1211812#M59767</guid>
      <dc:creator>LauraTateosian</dc:creator>
      <dc:date>2022-09-12T21:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1216865#M60388</link>
      <description>&lt;P&gt;I am suffering from the same behavior:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;File ".\Arcpy\PublishService.py", line 9, in &amp;lt;module&amp;gt;
    import arcpy
  File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 88, 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
  File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgisscripting\__init__.py", line 128, in &amp;lt;module&amp;gt;
    from ._arcgisscripting import *
RuntimeError: The Product License has not been initialized.&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;the characteristics of my environment:&lt;/P&gt;&lt;P&gt;ArcGIS pro 2.9.3&lt;/P&gt;&lt;P&gt;ArcGIS Pro Named User License&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The processes were running with out issue, but since yesterday it start with this issue, as it can be seen in the code above, the error is triggered when the script reach the &lt;STRONG&gt;import arcpy&lt;/STRONG&gt; command.&lt;/P&gt;&lt;P&gt;An special consideration: I have a set of 5-6 scripts that runs over 4 geodatabases, all of them are orchestrated to be run sequentially by a service (the service runs under the same credentials as the ArcGIS Pro application was configured and executed&amp;nbsp; - you know...the profile cookie mentioned above), but not all the scripts fail, and the failing ones are not always the same.&lt;/P&gt;&lt;P&gt;I even have a script made in PowerShell that uses the ArcGIS.Core.Hosting.dll, it is failing too when the initialization is called.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 08:54:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1216865#M60388</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2022-09-28T08:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1219260#M60746</link>
      <description>&lt;P&gt;I had an issue with the company Firewall rules &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 11:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1219260#M60746</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2022-10-06T11:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1222687#M61190</link>
      <description>&lt;P&gt;Thank you to everyone who replied.&amp;nbsp; I got it working.&amp;nbsp; For the purposes of this description, I will say the user that runs the process is "batch_runner".&amp;nbsp; Here's what I did:&lt;/P&gt;&lt;P&gt;1) Log in to the server machine as batch_runner.&amp;nbsp; (This was a bottleneck for a while, but had nothing to do with ArcGIS) and download a single user license file executable.&lt;/P&gt;&lt;P&gt;2) Run the single user license file and when prompted, oog in to ArcGIS Pro as a named user with my own account credentials.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Switch ArcGIS Pro to a single user license (in that log in session)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;a) Select "Configure your licensing options".&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;b) Change the License Type to "Single Use License".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;c) Click Authorize and follow the steps in the Software Authorization Wizard. Click Ok.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;d) Restart ArcGIS Pro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;4) Et voila!&amp;nbsp; It worked. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I believe this created a profile under batch_runner, because after this, it could run the arcpy processes.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still trying to find out what I'll need to renew the license which will expire in July.&amp;nbsp; But at least it's working for the moment.&amp;nbsp; Thank you for all the responses and helpful information!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 02:36:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1222687#M61190</guid>
      <dc:creator>LauraTateosian</dc:creator>
      <dc:date>2022-10-18T02:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1224104#M61355</link>
      <description>&lt;P&gt;Cristian,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide more details on what Firewall rules?&lt;/P&gt;&lt;P&gt;I am having the same problem, and I suspect that the Firewall might be the issue, but not sure how to figure it out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 22:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1224104#M61355</guid>
      <dc:creator>DarinaTchountcheva</dc:creator>
      <dc:date>2022-10-20T22:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Runtime Error: the product license has not been initialized</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1224568#M61425</link>
      <description>&lt;P&gt;Hallo Darina,&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be hones the error was solved by the IT guy that manage the corporate Firewall. I can tell you that a rule was created to allow communication with &lt;A href="http://www.arcgis.com" target="_blank"&gt;www.arcgis.com&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;You can check a detailed document for your whitelist here:&amp;nbsp;&lt;A href="https://downloads.esri.com/resources/enterprisegis/AGOL_Domain_Requirements.pdf" target="_blank"&gt;https://downloads.esri.com/resources/enterprisegis/AGOL_Domain_Requirements.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 04:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-runtime-error-the-product-license-has/m-p/1224568#M61425</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2022-10-24T04:26:50Z</dc:date>
    </item>
  </channel>
</rss>

