Hi,
In ArcGIS Pro, every time I delete fields, either with the Geoprocessing tool Delete Field or in the Fields -> Design view, deleted fields do not disappear from the session! Messages indicate that fields were dropped but they still appear in the Field Design view... And if you try to re-create these Fields with Add Fields, the message tells the fields already exist!
For the time being, the only workaround I found is to restart ArcGIS Pro to "refresh" the session. It looks like a bug!
Anything wrong with my approach?
Work as designed in PRO 2.1
Dan, it worked that was. Thanks
But if you use the geoprocessing tool Delete Fields and perform the same field deletion, it does not work. The Field -> Design view still shows the field as if it was still here, just like if the geoprocessing operation was not committed or saved. This is illustrated below:
And if I rerun my model, I get the error "OPERATOR already exists. Failed to execute".
Deleting by hand in the Field -> Design, it works. But with the geoprocessing tool, it does not. No really good for chaining geprocessing on ModelBuilder.
I think the issue may be that in modelbuilder (and perhaps in a script), the 'state' of the data are not updated until the process that was using it is 'done'. I suspect if you really need a ... 'refresh'.... in modelbuilder.
Or you need to check .. if the field exists, recalculate values for it... if it doesn't exist, add the field, then calculate values. There is a section on condition checking in modelbuilder... (ps... so much easier to do stuff in python... sorry)