I have one raster data of a state and also I have 14 shapefile in same area. Now I want to clip 14 shapefile in arcpy using for loop. The issue is when I run the script its showing TypeError:'NoneType' object is not iterable. Here is the code
import arcpy
rasterlayer = (r"L:\\Arcpy\\Data\\Mosaic")
output = (r"L:\\Arcpy\\Data\\clip")
vector_layer = arcpy.ListFeatureClasses(r"L:\\Arcpy\\Data\\vector_data\\selected_district")
for vectordata in vector_layer:
arcpy.CalculateValue_management("\"%Name%\",.split(\"_\")[0]", "","Variant")
arcpy.Clip_management(rasterlayer, "", output, vectordata, "0", "ClippingGeometry", "NO_MAINTAIN_EXTENT")