ERROR 160244: Object has no schema locks.
Failed to execute (SelectLayerByLocation).
I noticed it's giving me the error on a multipart polygon. I exploded and it worked. Can I not use multipart polygons?
Could you provide details about the input and select features (Geometry Type, Spatial Reference, which one is multipart feature)?
Where are the features stored (File GDB, Shapefiles, Ent. GDB)
Also provide the defined tool parameters?
Does rebooting the machine work (It has worked mysteriously for many problems. So I don't want to miss this point.)?
My input feature is a Parcel poly feature class. Selecting feature is a 4 multipart feature class. They are both using the same spatial reference.
Relationship is "Have their center in"
Reboot does nothing. I even tried copying the feature to a different layer.
Not sure how I missed replying to this post.
In case you still have the issue, could you share a sample parcel data along with the multipart feature class?
I've got the same thing going on now with a script that was running perfectly fine a few months ago...all I can think of is I've upgraded Pro several times since then. Exact same tool: arcpy.management.SelectLayerByLocation
@Anonymous User Did you ever find a solution for this?