ERROR 160244: Object has no schema locks. Select by location

4646
16
05-03-2021 05:22 AM
by Anonymous User
Not applicable

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?

16 Replies
DavidPike
MVP Frequent Contributor

It should work.  Potentially bad geometry - run the repair geometry tool , or a bad spatial index.

by Anonymous User
Not applicable

I ran the repair geometry and that didn't fix the issue. This error has no solutions. 

160244: Object has no schema locks.—ArcGIS Pro | Documentation

0 Kudos
ZacharyHart
Occasional Contributor III

This behavior is occurring in fGDBs, not eGDBs.

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

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.)?



Think Location
0 Kudos
by Anonymous User
Not applicable

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.

JayantaPoddar
MVP Esteemed Contributor

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?



Think Location
0 Kudos
ZacharyHart
Occasional Contributor III

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?

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

Could you share sample data that you could use to reproduce the issue?



Think Location
0 Kudos