Select to view content in your preferred language

Tool runs manually but no longer runs when scheduling

692
4
08-12-2023 11:42 AM
KyleSmiley_nrcs
New Contributor II

Hello,

 

I'm getting the following error when trying to schedule a Python script tool 

KyleSmiley_nrcs_0-1691865241056.png

 

It runs when I do it manually clicking the "run" button. It was also working before when I scheduled it

but now it doesn't. I tried changing the name of the scheduled task many different ways (no underscores, etc). it appears to be something with the output name of the arcpy select tool or the scratchGDB env. I attached a screenshot of the code for review.

 

KyleSmiley_nrcs_1-1691865580596.png

 

 

Any help greatly appreciated.

4 Replies
KyleSmiley_nrcs
New Contributor II

I have version 3.0 of pro

0 Kudos
DanPatterson
MVP Esteemed Contributor

on line 50, have you tried to raw-encode the tmp_survey_pnts? ( r" tmp_survey_pnts")

you do it everywhere else, except there


... sort of retired...
0 Kudos
KyleSmiley_nrcs
New Contributor II

Adjusted it to r"tmp_survey_pnts". Still runs manually but not when I schedule it to run. 

0 Kudos
MikeVolz
New Contributor III

Kyle:

Does your script ever run?  Or does it just randomly fail but works some times?

0 Kudos