romangis848

Changing Versions with Python

Discussion created by romangis848 on Apr 10, 2012
Latest reply on Apr 12, 2012 by rbrennan-esristaff
Hello,

I am trying to change versions of a table in a stand-alone script through the ArcPy ChangeVersion_management command. The table is an ArcSDE table, is registered as versioned and I can successfully create a table view of the table, which I then pass to the ChangeVersion_management command. This step of the script fails, with a:

'Parameters are not valid. ERROR 000840: The value is not a Feature Layer. Failed to execute (ChangeVersion).'

error message. Looking at the documentation, it appears I should be able to change versions of a table view (not just a Feature Layer):
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Change_Version/0017000000p5000000/

Is this a bug, or am I potentially missing something in my script?

Thanks,
Mike

Outcomes