title: python (arcpy) windows scheduled task
body: <p>I am trying to setup a windows scheduled task to run a python script that runs various <code>arcpy</code> tools. The script works in a scheduled task except for when I'm running the initial <code>arcpy.FeatureClassToFeatureClass_conversion</code> conversion of a shapefile or a table into a feature class/table in a geodatabase. </p>
  
  <pre><code>import os
  import arcpy
  import arceditor
  import sys
  import datetime
  
  J_GT_SURVEYS = (r"J:\\Ground_Truth_Surveys\\MetaData\\ground_truth_archive.shp")
  
  DATABASE =(r"D:\\WORK\\INNOVATION_PROJECTS\\Geomatics_Live_Survey_Plan.gdb")
  
  arcpy.FeatureClassToFeatureClass_conversion(J_GT_SURVEYS, DATABASE, "Ground_Truth_Archive")
  </code></pre>
  
  <p>My issue appears to be specific to importing datasets into my geodatabase via arcpy. I can run other arcpy tools through a windows scheduled task once inside the database without any issues. Below is a picture of the action created in the windows scheduled task options to run the script</p>
  
  <p><a href="https://i.stack.imgur.com/MOblZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MOblZ.png" alt="Windows scheduled task options"></a> </p>