Select to view content in your preferred language

Schedule Python script that uses Data Interoperability using Task Scheduler

711
1
11-08-2022 05:43 AM
AndrewReynoldsDevon
Regular Contributor

I've tried following the blog post Schedule a Python Script using Windows Task Schedu... - Esri Community & however the script doesn't seem to have done anything after Windows has run the task?

I reviewed the comments about absolute file paths & everything seems ok. 

If I copy & paste the code below into a python command window it works fine but I need to get it working with task scheduler 

import arcpy; arcpy.CheckOutExtension("DataInteroperability"); arcpy.ImportToolbox("C:\Toolbox.tbx", 'ImportNSG'); arcpy.ImportNSG_ImportNSG(); arcpy.CheckInExtension("DataInteroperability")

Tags (1)
0 Kudos
1 Reply
BruceHarold
Esri Regular Contributor

I think you should open a support call, it should run provided Data Interoperability is installed on the machine you're running the task on.  I would check arcpy imports (i.e. licensing is OK) especially by instrumenting the script by writing out arcpy.AddMessage().

0 Kudos