How to Increase Text Field Size without Losing Data

776
4
02-26-2022 08:02 AM
Billy
by
Occasional Contributor II

Hi,

We have a published survey that we need to increase a text field size. When we set the new size on the esri:fieldLength in Connect and then try to re-publish we get a warning that the data will be lost.

How can we increase the size of the text field without losing the data?

Survey123 Connect version: 3.14.256

Survey published to ArcGIS Online.

Regards.

0 Kudos
4 Replies
JohannesLindner
MVP Frequent Contributor

I don't know how to do it in AGOL, but here's how you would do it in the Desktop environments, maybe it's similar...

  • create a temporary text field with at least the size of the original text field
  • copy all values from the text field to the temporary text field
  • recreate the text field with the new size
  • copy all values from the temporary text field to the recreated text field
  • delete the temporary text field
  • republish

Have a great day!
Johannes
0 Kudos
shan_sarkar
Occasional Contributor III

In ArcGIS desktop you can simply increase the field length without having to create a temporary field.  The temporary field comes into play if you need to decrease the field size.

Refer Modify field properties


~Shan
0 Kudos
JohannesLindner
MVP Frequent Contributor

Huh, seems like I wrongly remembered my struggles with changing field length... That's good to know, thanks for the tip!


Have a great day!
Johannes
0 Kudos
DerrickWestoby
Occasional Contributor III

I don't think you remembered incorrectly, @JohannesLindner ...I think this behavior changed within the last year.  

0 Kudos