Hello dears
I add a text field in modelbuilder then when I want use calculate geometry for get coordinate x or y in DMS format my model not running and show this Error
but in number format run without error
ERROR 000306 Field LatDMS not of type TEXT
pleas help me
thanks
you need to "str" the value to put it into a text field
This worked perfectly fine for me.
By the way, X is Lon, and Y is Lat.
Remove "LatDMS" field from the attribute table, if it already exists. Could you recreate the model from scratch, and test again? Restart ArcGIS Pro, if required. Let me know if the issue persists.
A Note: Unless you recreate a feature class every time in a model, "Add Field" is a one-time process. Are you sure you want to have "Add Data" tool as a part of the model, especially if you want to run the model again to calculate the geometry (if new records are added)?