Getting an error with a very simple compress script.
This script works perfectly fine within arcmap, but I want to make this into a scheduled recurring script.
import arcpy from arcpy import env env.workspace = r"\\UNC PATH \dbconnection.sde" arcpy.Compress_management(r"\\UNC PATH \dbconnection.sde")
Super simple. I've tried importing arceditor in order to set the product for ArcGIS Desktop standard, to no avail. I've also attempted to run:
before setting env.workspace, but still doesn't work. I have also tried different variations of the UNC path, such as specifying parent folder in workspace and then only the .sde in the compress, etc...
All errors come out as the one in the title: ERROR 000837: The workspace is not the correct workspace type.