POST
|
I missed one of your questions: Oh, so the version you make is created under another version that has changes you want to see? Yes Were you using arcpy.ChangeVersion_management() to change versions? Yes Can the changes in the parent version be posted up so you can just do the script work on Default? No
... View more
02-27-2015
10:55 AM
|
0
|
0
|
356
|
POST
|
Reconciling didn't seem to help. Good thought though.
... View more
02-27-2015
10:51 AM
|
0
|
0
|
356
|
POST
|
It's a public version. I just can't connect to it from a stand-alone script. That's another approach to resolving this, I guess, if I didn't need the additional version. I just haven't been able to find a way to connect to that version directly. Specifying the other "Username.version" doesn't work.
... View more
02-27-2015
10:43 AM
|
0
|
0
|
356
|
POST
|
Yes to the first question. Nope to the second. Other people make changes and post them to the version I want to target, but I'm not the owner of it so I can't target it directly. So I'm making version of that version with other peoples updates. None of those changes have been posted to default yet, won't be for days.
... View more
02-27-2015
10:33 AM
|
0
|
3
|
1273
|
POST
|
Well, I'm not sure either. I want to connect to someone else's version and I get an error that I don't have access when I try to do this from a stand-alone script. I suppose because my username is not that of the owner. Creating the version is just the work around I found that works.\ I'll try reconciling. I also tried deleting the featurelayer that I was working from. I felt pretty good about that solving the issue, but it didn't.
... View more
02-27-2015
10:23 AM
|
0
|
6
|
1273
|
POST
|
Sorry for the late reply. I thought I had this setup to email me if someone responded. I am not doing any editing to the version I've created. I create it because I want to connect to a version that I am not the owner of, and I've found that I'm not allowed to do that from a script (although I can connect to it from within ArcMap). So I started creating a new version which I am the owner of and can connect to from the script with the version I want the data from being the parent. I don't explicitly start an edit session. I suppose one of the steps I take starts one (?). I make edits to a copy of the data that I've saved to a local geodatabase. I imagine then that an edit session starts when I perform those changes (adding fields and populating those fields). I tried to explicitly close the edit session and it did not work. I began stepping through the code like you recommended and found that the step where I am no longer able to delete the version I created is the first selection i run on the featurelayer, which is a spatial selection. I apply the spatial selection, then copy out the selected features, then change versions back to default, and then try to delete the created version but cannot because it is "still in use". I'm still working away at why this is, but this is the update in case you have any idea what may be the issue. Thanks a lot for your help.
... View more
02-27-2015
10:09 AM
|
0
|
8
|
1273
|
POST
|
Thanks for the reply. I'm trying to not post all of the code just so I don't have to go through and edit everything to remove various info bits-and-pieces, but I am actually running arcpy.ClearWorkspaceCache_management() just prior to attempting to delete the Child version. Thanks for the suggestion.
... View more
02-19-2015
12:34 PM
|
0
|
0
|
1274
|
POST
|
I am having an issue where I cannot delete a version because it is said to still be in use, but this error only arises when I use the script from an ArcGIS Tool in the Toolbox. When I run the script from an outside IDE, or even the same commands from the python window, it finishes without error. The general process is: 1) create a new version "Child" 2) Loop of feature classes: 2.1) create feature layer 2.2) change to version "Child" 2.3) various queries etc 2.4) copy feature layer 2.5) change to version Default 3) run arcpy.ClearWorkspaceCache_management() [updated] 4) delete version "Child" --- arcpy.DeleteVersion_management(sde_database, "username".Child) The error returned by the tool dialogue is: Executing: DeleteVersion "/path/connectionfile.sde" "username".Child Start Time: Thu Feb 19 13:12:24 2015 ERROR 999999: Error executing function. The version is currently in use. ["username".Child] Failed to execute (DeleteVersion). At this point I will go to the Version Manager to delete the Child version manually and I get the following error: Could not delete version "username".Child. [An event was unable to invoke any of the subscribers (Exception from HResult: 0x80040201)] If I close and reopen ArcMap I can then delete the version. Does anyone have an idea what might be causing this and how to resolve it?
... View more
02-19-2015
11:41 AM
|
0
|
13
|
6527
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|