Select to view content in your preferred language

Changing Field "Type" in Hosted Feature Layer

176
2
Jump to solution
3 weeks ago
jbrummer
New Contributor

Hello all! Is it possible to change the "type" of a field in a hosted feature layer. I currently have one that is set as small Integer, but I need it to be String so that I can include letters. We have about 20,000 assets that actively use this field. 

jbrummer_0-1737060572926.png

 

0 Kudos
2 Solutions

Accepted Solutions
EmilyGeo
Esri Contributor

Hi @jbrummer

Changing a field type is not supported at this time. However, here is one possible workaround for you.

1. Add a new text field

2. Calculate the new field based on the existing field so that you don't lose any existing data.

3. Use the new field for future data collection so you can combine both letters and numbers moving forward. 

View solution in original post

2 Replies
CodyPatterson
MVP Regular Contributor
EmilyGeo
Esri Contributor

Hi @jbrummer

Changing a field type is not supported at this time. However, here is one possible workaround for you.

1. Add a new text field

2. Calculate the new field based on the existing field so that you don't lose any existing data.

3. Use the new field for future data collection so you can combine both letters and numbers moving forward.