POST
|
The issue is due to the SDE process permission. After our SQL administrator assigned a different server, the issue is resolved. Thank you for the helps.
... View more
06-18-2020
07:07 AM
|
0
|
0
|
401
|
POST
|
Hi, Nobbir, thank you for the help. The issue is due to the SDE process permission. After our SQL administrator assign a different server, the issue is resolved.
... View more
06-18-2020
07:06 AM
|
1
|
0
|
1729
|
POST
|
I also tried arcpy.management.Delete(fc) and got the same results.
... View more
06-16-2020
07:09 AM
|
0
|
0
|
1729
|
POST
|
Hello, Nobbir, here is my code: def process_feature_classes(workspace, fc_list): arcpy.env.workspace = workspace try: featureclass_count = 0 for i, fc in enumerate(fc_list): feature_count = int(arcpy.GetCount_management(fc).getOutput(0)) if feature_count == 0: arcpy.Delete_management(fc) except: arcpy.AddError("Failed to process_feature_classes. {0}\n{1}".format(sys.exc_info()[0], sys.exc_info()[1]))
... View more
06-16-2020
07:06 AM
|
0
|
3
|
1729
|
POST
|
I start ArcPro without a template that shows blank Contents pane, no maps at all. Then I add my toolbox to the Catalog and run my tool. It gives me same error like the database "May be locked by another application". I think I have missed some code that should unlock SDE, but I don't know what is it.
... View more
06-15-2020
09:42 AM
|
0
|
1
|
401
|
POST
|
I am writing an ArcGIS Pro toolbox tool using Python. I am using arcpy.management.Delete(fc) to delete a feature class and it works on File Geodatabase (*.gdb). However it does not work for a SDE database. I open the Pro and add the feature classes from a SDE database and add my toolbox on Catalog pane. When I try to delete some feature classes, it fails with error message " ERROR 000601: Cannot delete ..\SECore_Tools_Testing_sde.DBO.point_windmill. May be locked by another application. Failed to execute (Delete)." For investigating the functionality and access, I use Pro built-in geoprocessing tool "Delete" to delete some feature classes and it works successfully. I can see the deleted feature classes are gone from map even they were on the map. Please help! Thanks!
... View more
06-12-2020
09:02 AM
|
0
|
5
|
1809
|
POST
|
My tool can delete feature class from a FileGeodatabase (*.gdb) but not SDE.
... View more
06-11-2020
12:34 PM
|
0
|
2
|
765
|
POST
|
However, when I run Pro built-in geoprocessing tool "Delete" with feature class I am trying to delete on the map, I can delete it successfully.
... View more
06-11-2020
12:32 PM
|
0
|
3
|
401
|
POST
|
Thank you, Dan. I tried to start new pro and not add any feature class, then run my tool from the toolbox. It gives me the same errors.
... View more
06-11-2020
12:27 PM
|
0
|
4
|
765
|
POST
|
I start a Arc Pro and add a new map, add some feature classes from a SDE database, add my new toolbox in Catalog pan.
... View more
06-11-2020
12:11 PM
|
0
|
10
|
765
|
POST
|
I am writing a python toolbox tool and run it in Pro.
... View more
06-11-2020
12:08 PM
|
0
|
0
|
401
|
POST
|
When I tried to use arcpy.management.Delete(fc) to delete a feature class from a SDE database, it failed with error message " ERROR 000601: Cannot delete ..\SECore_Tools_Testing_sde.DBO.point_windmill. May be locked by another application. Failed to execute (Delete)." Then I add the following code before delete the feature class: edit = arcpy.da.Editor(arcpy.env.workspace) edit.startEditing(False, True) edit.startOperation() arcpy.management.Delete(fc) edit.stopOperation() edit.stopEditing(True) I got different error message " ERROR 000496: table is being edited. Failed to execute (Delete)." Please help! Thanks.
... View more
06-11-2020
11:45 AM
|
0
|
15
|
1256
|
POST
|
Rich, this is a super guidance. I use geodatabase.ApplyEdits and get my work done. Thank you so much for help! Yu
... View more
06-03-2020
12:37 PM
|
0
|
0
|
436
|
Title | Kudos | Posted |
---|---|---|
1 | 06-18-2020 07:06 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|