Changing Versions with Python

3069
3
04-10-2012 09:57 AM
MikeRomankiewicz
New Contributor
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
Tags (2)
0 Kudos
3 Replies
RussellBrennan
Esri Contributor
This is a bug, NIM079735 - The change version tool does not accept table view as input.

The workaround is to create a connection file that uses the version that you want to access and then access your table through that connection file.
0 Kudos
MikeRomankiewicz
New Contributor
Thanks for the info Russell. I can't seem to find that bug id- is there a link available?
0 Kudos
RussellBrennan
Esri Contributor
I talked to Support and they say that they added your customer ID to the bug and you should now see it through the customer care portal (http://customers.esri.com).
0 Kudos