timdunlevie

Arcpy AttributeError: Object: Tool or environment <TruncateTable_management> not found

Discussion created by timdunlevie on Jun 30, 2016
Latest reply on Mar 6, 2017 by trenthardy

Hi all,

 

I have a python script which runs perfectly on my PC running ArcGIS 10.3...

The script truncates a feature class in our ArcSDE, then appends new records.

As I said...works flawlessly on my PC.

 

I now want to run this on our application server (windows 2012 R2) ArcGIS Desktop 10.2 and set up a schedule task...

 

When I run the exact same code on the server I get this error message:

  File "D:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 14530, in TruncateTable

    raise e

AttributeError: Object: Tool or environment <TruncateTable_management> not found

 

Anyone have an idea?

 

Thanks

Outcomes