<?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 When Running a Python Script via Task Scheduler on Server in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78878#M6363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about this way? (see attached image)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Explicitly calling Python 32bit. The main.py is in the c:\logparser folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]30984[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;note: i dont have arcgis on this machine. Otherwise the Python.exe path would be like 'C:\Python27\ArcGIS10.2\python.ext'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 16:47:28 GMT</pubDate>
    <dc:creator>KevinHibma</dc:creator>
    <dc:date>2014-01-30T16:47:28Z</dc:date>
    <item>
      <title>Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78870#M6355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I previously built a model using Model Builder to process some data.&amp;nbsp; The model runs fine when manually started.&amp;nbsp; However, I would like to automate the process via the task scheduler on our GIS server.&amp;nbsp; The model in question is part of a longer python script.&amp;nbsp; The script routinely failed while trying to run the model.&amp;nbsp; I therefore rewrote the script and replaced the model with python code.&amp;nbsp; Again, it runs flawlessly when I manually start it, however it now snags on the arcpy.mapping.ExportReport() portion of the code.&amp;nbsp; Below is the error message I am receiving:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]/n/nPYTHON ERRORS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback Info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\arcgisserver\gisData\services\eqMap\toolsNscripts\runEQAnalysis.py", line 402, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportReport(lyr,rlfPath,pdfPathTemp)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error Info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type 'exceptions.AttributeError'&amp;gt;: This functionality is not supported on server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/n/n[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why would it run flawlessly when manually triggered, but crash when triggered by the Task Scheduler?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The entire script is quite long, however below is the section its stopping at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;reportFolder = "C:/inetpub/wwwroot/flexviewers/_supportDocs/reports/" pdfPathTemp = reportFolder+"earthquakeReportTemp.pdf" rlfPath = "C:/arcgisserver/gisData/services/eqMap/toolsNscripts/agentReport.rlf" eq = policyList[0] whereClause = "EPICENTER = '"+eq+"'" lyr.definitionQuery = whereClause&amp;nbsp; arcpy.mapping.ExportReport(lyr,rlfPath,pdfPathTemp)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The policyList[0] is populated using the arcpy.da.SearchCursor() and appending the list as it reads through the attribute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGIS Server 10.2, Windows Server 2008 R2 Standard w/ SP1 and 64-bit OS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any guidance you can give.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Haskett&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 23:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78870#M6355</guid>
      <dc:creator>GeorgeHaskett</dc:creator>
      <dc:date>2014-01-27T23:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78871#M6356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="font-family:Courier New;"&gt;arcpy.mapping.ExportReport&lt;/SPAN&gt;&lt;SPAN&gt; is only supported on 32-bit versions of ArcGIS. Are you running from ArcGIS for Desktop normally? You may need to reassociate .py files with the 32 bit install's Python installation to make it functional.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 01:52:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78871#M6356</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2014-01-28T01:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78872#M6357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you show how you are calling the script from the Task Scheduler?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you calling the .py directly or are you using a bat file to call the .py file(s)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In either case you would need to specifically tell the Task Scheduler to use the 32-bit version of python as, by default, it is probably calling the 64-bit version of python.&amp;nbsp; This is a change I needed to make on my GIS servers where there was both a 32-bit and 64-bit version of python installed (e.g. ArcGIS Desktop and ArcGIS Server software both installed on the server).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 11:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78872#M6357</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-01-28T11:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78873#M6358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if this has anything to do with your problem, but I found running Python scripts using Task Scheduler wouldn't consistently work if you set the Python executable as the program to run. Instead, I had to use cmd as the program with the python executable and the python script as arguments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So for example, if my script was under C:\path\to\script.py, then I would set it up in the Task Scheduler to run &lt;/SPAN&gt;&lt;STRONG&gt;cmd&lt;/STRONG&gt;&lt;SPAN&gt; as the Program/Script with the arguments &lt;/SPAN&gt;&lt;STRONG&gt;/c python C:\path\to\script.py&lt;/STRONG&gt;&lt;SPAN&gt; (under Add arguments (optional)).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 11:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78873#M6358</guid>
      <dc:creator>BradPosthumus</dc:creator>
      <dc:date>2014-01-28T11:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78874#M6359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to admit, that sort of makes things a bit more confusing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does it work flawlessly when I manually execute it from my default Python shell and not when I use the task scheduler?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have ran it both directly from the desktop software and from the python shell without any issues.&amp;nbsp; I'm not at work today, so I will have to wait until tomorrow to check some settings.&amp;nbsp; However I know the server is 64 bit and I am running it via the desktop software on the server.&amp;nbsp; Granted when I run the task scheduler I am running it via the 64 bit option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you think it will run if I specify the 32 bit option or try to let the server choose?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, in the task scheduler I am point to the 64 bit python option on the left side of the window and on the right side I am giving it the path to the python script, no bat file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So tomorrow I will test a few of your suggestions out and see what happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Come to think about it, only about a third of my scripts run via the task scheduler.&amp;nbsp; All of them are via the 64 bit option.&amp;nbsp; So I stick with the 32 bit for them all if its possible or just use the cmd line and let the server sort it out?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 13:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78874#M6359</guid>
      <dc:creator>GeorgeHaskett</dc:creator>
      <dc:date>2014-01-28T13:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78875#M6360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brad,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I like where you are going with that idea, but I cannot get it to run using the criteria/arguments you showed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Haskett&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:40:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78875#M6360</guid>
      <dc:creator>GeorgeHaskett</dc:creator>
      <dc:date>2014-01-30T15:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78876#M6361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The attached screenshot shows how I have one task set up (using the GUI). I suppose the only other consideration is whether you have the right version of Python running by default, but I assume you have that covered already since you can run it manually.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:28:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78876#M6361</guid>
      <dc:creator>BradPosthumus</dc:creator>
      <dc:date>2014-01-30T16:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78877#M6362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The attached screenshot shows how I have one task set up (using the GUI). I suppose the only other consideration is whether you have the right version of Python running by default, but I assume you have that covered already since you can run it manually.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Still a No-Go for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried it directly in my CMD window and received the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]'/c' is not recognized as an internal or external command, operable program or batch file.[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does that message ring a bell?&amp;nbsp; I've added the path to the 32-bit version of python to my PATH settings and have also associated the .py files with python...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I type the path only into my cmd line, then it runs directly from the cmd window, but again not from the task manager.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For clarification, I am able to get it running by pointing the task manager to my python exe and adding the path to the argument section.&amp;nbsp; But not the cmd option you are using, which is what I am now trying to figure out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:35:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78877#M6362</guid>
      <dc:creator>GeorgeHaskett</dc:creator>
      <dc:date>2014-01-30T16:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78878#M6363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about this way? (see attached image)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Explicitly calling Python 32bit. The main.py is in the c:\logparser folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]30984[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;note: i dont have arcgis on this machine. Otherwise the Python.exe path would be like 'C:\Python27\ArcGIS10.2\python.ext'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:47:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78878#M6363</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2014-01-30T16:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78879#M6364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Still a No-Go for me.&lt;BR /&gt;I also tried it directly in my CMD window and received the following error:&lt;BR /&gt;[INDENT]'/c' is not recognized as an internal or external command, operable program or batch file.[/INDENT]&lt;BR /&gt;&lt;BR /&gt;Does that message ring a bell?&amp;nbsp; I've added the path to the 32-bit version of python to my PATH settings and have also associated the .py files with python...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/c is an option of cmd. You need to put cmd in front of it, i.e run the cmd command in the command window, as confusing as that sounds. So in the command window, type:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cmd /c python C:\script.py&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78879#M6364</guid>
      <dc:creator>BradPosthumus</dc:creator>
      <dc:date>2014-01-30T16:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78880#M6365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;/c is an option of cmd. You need to put cmd in front of it, i.e run the cmd command in the command window, as confusing as that sounds. So in the command window, type:&lt;BR /&gt;&lt;BR /&gt;cmd /c python C:\script.py&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay, well I'm one step closer.&amp;nbsp; I can get it to run in the CMD window using your example.&amp;nbsp; So why am I having issues with the Task Manager?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 17:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78880#M6365</guid>
      <dc:creator>GeorgeHaskett</dc:creator>
      <dc:date>2014-01-30T17:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78881#M6366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Okay, well I'm one step closer.&amp;nbsp; I can get it to run in the CMD window using your example.&amp;nbsp; So why am I having issues with the Task Manager?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of messing with your global file associations, env variables and paths (which could easily break other things) you should explicitly give the python path of the version you want to run, i.e. in your bat file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;:: run my awesome batch process
cmd /c C:\Python27\ArcGIS10.1\python.exe myscript.py&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78881#M6366</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-10T23:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78882#M6367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Okay, well I'm one step closer.&amp;nbsp; I can get it to run in the CMD window using your example.&amp;nbsp; So why am I having issues with the Task Manager?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad, oddly enough after a few days off it seems to work....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 20:29:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78882#M6367</guid>
      <dc:creator>GeorgeHaskett</dc:creator>
      <dc:date>2014-02-03T20:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error When Running a Python Script via Task Scheduler on Server</title>
      <link>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78883#M6368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have seen this post and I have a couple of question myself and was wondering if you could help me please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created 2 scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first one: General_EjecutarReporte_Consola.py is the script that is published a geoprocessing service and call the CMD to execute the second python script that has the EXPORTReport called: General_ReporteCriteriosValoracion.py.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have published my first script and I have run in in the REST and it seems to work, but it does not creates my report in the destinated file. see picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Arcgid 10.2.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 13:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-when-running-a-python-script-via-task/m-p/78883#M6368</guid>
      <dc:creator>DanielaPalacios</dc:creator>
      <dc:date>2014-10-02T13:37:49Z</dc:date>
    </item>
  </channel>
</rss>

