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 arcpy.mapping.ExportReport(lyr,rlfPath,pdfPathTemp)
Solved! Go to Solution.
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.
Still a No-Go for me.
I also tried it directly in my CMD window and received the following error:
[INDENT]'/c' is not recognized as an internal or external command, operable program or batch file.[/INDENT]
Does that message ring a bell? 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...