Running Spatial ETL Tool in Python Script

2807
1
01-19-2011 11:00 AM
deleted-user-rmQdIupSdOqe
New Contributor III
How do I run a Spatial ETL Tool I built in an ArcCatalog toolbox in a python script? 
General method for other tools is to import the toolbox.
Then:
arcpy.MyTool()

Spatial ETL tools are not showing up as part of the module.

Created a model, embedding the spatial ETL tool within it. Could call this tool in the arcpy module, but it will not run in PythonWin.

Message:
Traceback (most recent call last):
  File "C:\Python26\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 312, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\ESRI Toolboxes and Python Scripts\Scripts\DumptoMISteps\Step3.py", line 111, in <module>
    arcpy.AWTOOLS.Step5FMETool()
  File "U:\GIS Department\ESRI Related\ESRI Toolboxes\My Toolboxes\RFP TOOLS ANN WAGNER.tbx", line 218, in Step5FMETool
    #! FME_TYPE="fme_char(width)"
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000816: The tool is not valid.
Failed to execute (Step5FMETool).


From ArcCatalog, the tool runs fine.

Suggestions?
0 Kudos
1 Reply
BruceHarold
Esri Regular Contributor
Hi

Scripts running out of process in ArcGIS that call the Data Interoperability extension must check the extension out:

arcpy.CheckOutExtension('DataInteroperability')

Regards
0 Kudos