Hi all,
I have created a simple Spatial ETL tool to download the WFS data from a local weather service provider into ArcSDE feature class. I want to run this tool periodically as Windows Scheduled Task using ArcGIS for Server 10.1 Data Interop Extension. I created a python script that I thought will execute the Interop Tool and I can use it to schedule a windows task. However, the python script refuses to identify the Spatial Interop tool from the toolbox. Here is what I tried in the python script.
1. Set python exe path as C:\Python27\ArcGISx6410.1 to ensure the script runs as server site package.
2. Confirmed that arcpy.ProductInfo() returns ArcServer
3. Check out DataInterop extension using arcpy.CheckOutExtension("DataInteroperability"). No error.
4. Imported the toolbox. Toolbox has alias. No error
5 Executed the tool passing two parameters, source WFS URL and destination ArcSDE workspace. Tool failed to execute. No meaningful error.
6. Added debug steps to list each tool in the toolbox using arcpy.ListTools(). It fails to list any Spatial ETL tool in this tool box. But it lists other python and model builder tools, which means toolbox is imported OK. Is this works as designed that I cannot use ArcGIS for Server Interop Extension license to run a Spatial ETL tool. Above workflow works fine if I use ArcGIS for Desktop (32bit python and arcpy) and Desktop Interop extension.
I also tried to publish the toolset as ArcGIS for Server service. It got published OK. However, the tool fails to execute from ArcCatalog. I have destination ArcSDE registered with the server and source WFS URL definitely works. The error is "Error Occurred" Any idea?
Thanks,
Vish