I want to bath split analysis tool using Arcpy . I have some feature classes in a feature dataset.I want to Split All of feature classes uisng a shapefile but after split two feature classes, the runtime error raised( Runtime error : Failed to execute. Parameters are not valid. ERROR 000728: Field Province does not exist within table Failed to execute (Split)). My input feature has a province field and the result of the split is fine for a feature class but not for all of them .
How can i solve the problem ?
another qestion is that is there any way to change the output featureclasses? for example province name with underline featureclass name.
import arcpy arcpy.env.workspace = "D:/split_test.gdb/split" fcl = arcpy.ListFeatureClasses() for fc in fcl: arcpy.Split_analysis("province",fc,"province","D:/output_split.gdb","")