Hi everyone,
I' ve created a model that updates a table in PostgreSQL
The model runs perfectly as model and as tool as well.
Exported the Model into python script an it runs in Arc Python window.
I have created also a script that calls the toolbox and model inside and it works when run into Arc Python Window.
When I put it in Windows scheduler the task starts and completes but the table isn't updated meaning that the script doesn't run correctly.
I tried to run the same script in PyScripter and I get this error message:
Message File Name Line Position
Traceback
<module> C:\Folder\script_startModel.py 15
TableReadings2 C:\Folder\Toolbox.tbx 75
ExecuteError: Failed to execute. Parameters are not valid.
The value does not exist.
ERROR 000732: Output Location: Dataset Database Connections\database_publish.sde does not exist or is not supported
The value does not exist.
ERROR 000732: Output Location: Dataset Database Connections\database_publish.sde does not exist or is not supported
The value does not exist.
ERROR 000732: Input Table: Dataset database.sde.Building_Readings does not exist or is not supported
ERROR 000989: Tool CalculateField cannot use VB expressions for services
ERROR 000989: Tool CalculateField cannot use VB expressions for services
ERROR 000989: Tool CalculateField cannot use VB expressions for services
ERROR 000989: Tool CalculateField cannot use VB expressions for services
Failed to execute (ScriptReadings2).
I tried to run the same script in Windows CMD and I get this error message:
I've ran into this and for me I have to put the full path of the database\featuredataset\featureclass. It might be helpful if you posted your python code.
C:\Users\***\AppData\Roaming\ESRI\Desktop10.6\ArcCatalog\***_***_***.sde\yourfeaturedataset\featureclass