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?