I have Python code for clipping Features in a File GDB which is basically correct and works nicely. However, I have a big File GDB in which there are a lot of featuredatsets including many Features. Some of them are already clipped so when I run the Code over whole GDB , it would stop when it reaches the already clipped data but I cannot check them one by one and eliminate them and the error does not tell me which one and just stops. Is there any solution that I tell in the in case the function is already done, just move on to the next featuredataset?
import arcpy, os database = r'C:\Users\...\WEB_clip.gdb' clip_feature = r'C:\Users\...\160606_Kapsel_.shp' arcpy.env.workspace = database datasets = arcpy.ListDatasets(feature_type='Feature') for dataset in datasets: arcpy.env.workspace = os.path.join(database,dataset) features = arcpy.ListFeatureClasses() for feature in features: arcpy.Clip_analysis(in_features=feature, clip_features=clip_feature, out_feature_class=feature+'_clipped')