Select to view content in your preferred language

SDE Versions & Models / Python scripts

1017
3
Jump to solution
02-16-2012 07:03 AM
DaveOrlando
Frequent Contributor
Could I get some guidance here,

I am editting a version of my data and when complete, I would like to run a model to append a few things together into another feature class. I'm trying to figure out how the model knows what version to use. It seems to honor the version that I'm referencing in ArcMap. The model is being ran from ArcMap. Am I now tied to ArcMap for this model, or what version with the model look at if I run it from Catalog, or if I'm running a Python script. Will it always use the default version unless I'm in ArcMap with the edit version loaded?

Thanks in advance. (also posted in Desktop General with no response)
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Could I get some guidance here,

I am editting a version of my data and when complete, I would like to run a model to append a few things together into another feature class. I'm trying to figure out how the model knows what version to use. It seems to honor the version that I'm referencing in ArcMap. The model is being ran from ArcMap. Am I now tied to ArcMap for this model, or what version with the model look at if I run it from Catalog, or if I'm running a Python script. Will it always use the default version unless I'm in ArcMap with the edit version loaded?

Thanks in advance. (also posted in Desktop General with no response)


Orlando -

     Generally with models and python scripts I manage my data connections through an SDE connection file (see http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0017000000pt000000) which explicitly manages the version used. It's an interesting question that you raise though, whether or not the version being used within an ArcMap session somehow trumps the one from the connection file. My guess is that it does not but I'd be interested in hearing what some testing proves to be the case for you ...

- Bob

View solution in original post

0 Kudos
3 Replies
by Anonymous User
Not applicable
Could I get some guidance here,

I am editting a version of my data and when complete, I would like to run a model to append a few things together into another feature class. I'm trying to figure out how the model knows what version to use. It seems to honor the version that I'm referencing in ArcMap. The model is being ran from ArcMap. Am I now tied to ArcMap for this model, or what version with the model look at if I run it from Catalog, or if I'm running a Python script. Will it always use the default version unless I'm in ArcMap with the edit version loaded?

Thanks in advance. (also posted in Desktop General with no response)


Orlando -

     Generally with models and python scripts I manage my data connections through an SDE connection file (see http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0017000000pt000000) which explicitly manages the version used. It's an interesting question that you raise though, whether or not the version being used within an ArcMap session somehow trumps the one from the connection file. My guess is that it does not but I'd be interested in hearing what some testing proves to be the case for you ...

- Bob
0 Kudos
DaveOrlando
Frequent Contributor
Thanks!,

I completely overlooked that you can set the version in the connection file.
0 Kudos
by Anonymous User
Not applicable
Thanks!,

I completely overlooked that you can set the version in the connection file.


Great! Glad I could be of assistance ... I have a similar issue which is why your post caught my eye ...
0 Kudos