<?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: ERROR 999999 appears while trying to run a python script using arcpy functionalities through Task Schedular in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1514903#M45317</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I figured out the actual cause. The licensing issue was happening because I was storing the created table in ScratchGDB. Apparently, this was causing the issue to fail. When I changed the location for the table, the error got fixed. Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10036"&gt;@MichaelVolz&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/569244"&gt;@MErikReedAugusta&lt;/a&gt;&amp;nbsp; for pointing me in the right direction.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 12:36:38 GMT</pubDate>
    <dc:creator>Murtaza_Mir</dc:creator>
    <dc:date>2024-08-05T12:36:38Z</dc:date>
    <item>
      <title>ERROR 999999 appears while trying to run a python script using arcpy functionalities through Task Schedular</title>
      <link>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513640#M45303</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have written a python script that is using arcpy as well. One of the functions that I am using is the arcpy.management.CreateTable. I created a batch file that calls this script. When I run the batch file directly, the script runs fine with no errors but when I use a Task Schedular instead to call the batch file for running the script, I run into the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (&lt;/SPAN&gt;&lt;A href="http://esriurl.com/support" target="_blank" rel="noopener noreferrer"&gt;http://esriurl.com/support&lt;/A&gt;&lt;SPAN&gt;) to Report a Bug, and refer to the error help for potential solutions or workarounds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (CreateTable).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The error appears while trying to create the Table. I don't understand what is the cause of this. Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 14:48:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513640#M45303</guid>
      <dc:creator>Murtaza_Mir</dc:creator>
      <dc:date>2024-08-01T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999 appears while trying to run a python script using arcpy functionalities through Task Schedular</title>
      <link>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513689#M45305</link>
      <description>&lt;P&gt;Maybe it could be a licensing issue?&amp;nbsp; Try setting the scheduled task for a time during the day when you're there and make sure you're logged into both the machine running the script and into ArcPro, then see if it still fails.&lt;/P&gt;&lt;P&gt;I haven't run any task-scheduled scripts yet, myself, but I remember a discussion a while back on one of the GIS communities I follow where someone had a similar problem.&amp;nbsp; The script was trying to run in the middle of the night, and the machine that was trying to run it wasn't logged into ArcPro at that time of night.&amp;nbsp; Don't remember if they got a 999999 from it or not, though.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 15:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513689#M45305</guid>
      <dc:creator>MErikReedAugusta</dc:creator>
      <dc:date>2024-08-01T15:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999 appears while trying to run a python script using arcpy functionalities through Task Schedular</title>
      <link>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513713#M45306</link>
      <description>&lt;P&gt;Does your script fail every time or is it more of a random failure in Task Scheduler?&lt;/P&gt;&lt;P&gt;Check your Event Viewer as that helped me find issues with python scripts.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 16:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513713#M45306</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2024-08-01T16:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999 appears while trying to run a python script using arcpy functionalities through Task Schedular</title>
      <link>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513718#M45307</link>
      <description>&lt;P&gt;It may be a licensing issue although I wonder how does the batch file directly runs successfully. I will try that as well. Thank you for the suggestion.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 16:05:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513718#M45307</guid>
      <dc:creator>Murtaza_Mir</dc:creator>
      <dc:date>2024-08-01T16:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999 appears while trying to run a python script using arcpy functionalities through Task Schedular</title>
      <link>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513719#M45308</link>
      <description>&lt;P&gt;The script fails every time with the Task Scheduler. The script otherwise runs fine when I run the batch file directly. It does not appear to be any issue with any code.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 16:06:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513719#M45308</guid>
      <dc:creator>Murtaza_Mir</dc:creator>
      <dc:date>2024-08-01T16:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999 appears while trying to run a python script using arcpy functionalities through Task Schedular</title>
      <link>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513722#M45309</link>
      <description>&lt;P&gt;Are you running Task Scheduler with highest privilege?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 16:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513722#M45309</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2024-08-01T16:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999 appears while trying to run a python script using arcpy functionalities through Task Schedular</title>
      <link>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513728#M45310</link>
      <description>&lt;P&gt;Yes, the script is running with the highest privilege. Is there a possibility that somehow when the script is run through the scheduler, it does not retain the licenses? I am using a cloned version of base python environment of arcgis pro with a few additional packages, not the base environment itself.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 16:14:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513728#M45310</guid>
      <dc:creator>Murtaza_Mir</dc:creator>
      <dc:date>2024-08-01T16:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999 appears while trying to run a python script using arcpy functionalities through Task Schedular</title>
      <link>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513757#M45312</link>
      <description>&lt;P&gt;Can you try creating a simple script just importing arcpy with a print statement before and after the import statement in the standard python environment, that is called from a bat file?&lt;/P&gt;&lt;P&gt;This is what I needed to do at my org to determine that anti-virus software was interfering with running a python script thru Task Scheduler even though it ran fine when just running directly from the bat file.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 16:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1513757#M45312</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2024-08-01T16:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 999999 appears while trying to run a python script using arcpy functionalities through Task Schedular</title>
      <link>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1514903#M45317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I figured out the actual cause. The licensing issue was happening because I was storing the created table in ScratchGDB. Apparently, this was causing the issue to fail. When I changed the location for the table, the error got fixed. Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10036"&gt;@MichaelVolz&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/569244"&gt;@MErikReedAugusta&lt;/a&gt;&amp;nbsp; for pointing me in the right direction.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 12:36:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-999999-appears-while-trying-to-run-a-python/m-p/1514903#M45317</guid>
      <dc:creator>Murtaza_Mir</dc:creator>
      <dc:date>2024-08-05T12:36:38Z</dc:date>
    </item>
  </channel>
</rss>

