When you use the Delete field tool on a featureclass in a geopackage it throws a 002557 error.
My idea is simply to enable the delete field tool to interact with a geopackage table and allow you to delete the field.
Improving ArcPro's ability to interact with such data formats will encourage the uptake and hopefully the replacement of a shapefile.
Didn't you try XTools Pro Delete Multiple Fields online tool? It's free.
@DuncanHornby, thanks for bringing this to our attention. You are receiving the 002557 error because you are using the layer from your map, which is a query layer and is read-only as your input table for the Delete Field tool. If you browse to the location of the Geopackage feature class, you will be able to delete fields from the feature class because this allows schema operations on the underlying table. Hope this helps.
@DLowery thanks for clarifying the source of the error and your workaround is easy to implement.
But...
For a consistent user experience I think the tool needs to be able to deal with a layer from a map and I presume (not tested it) a layer object being passed around within a model is also susceptible to this error?
If what I'm suggesting is impossible then at least update the help file for the Delete tool to say the tool has compatible issues with a layer and thus only able to interact with its feature class.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.