Hi All,
I just published a survey, made some quick changes and went to re-publish, however I received an error that a field length is to short. See attached image. I do not want to lose data. I have done this before and submitters could not see their records. I do not recall changing this fields character length. I made the field larger than 255 and still got the following error. Is there a fix so I can re-publish without the loss of data.
Solved! Go to Solution.
When you publish text questions from Survey123 you can set a field length on the string field. By default it's commonly 255 or 256.
If you republish a survey and the text question field length binding is different to what is on the layer, Survey123 Connect will have to delete the field and recreate it in order to set the field length to be different. It does this by re-writing the entire feature service, which is the warning you are seeing now.
Find your Hosted Feature Layer. Go to Item Details > Data > Fields.
What field length is on the field HIF_notes in the existing, published layer?
Once you know this set your form to match it in the field length binding columns.
If you need the field length to be longer you will need to recreate the field manually. You can do this by:
This effectively allows you to recreate the field while preserving existing data.
When you publish text questions from Survey123 you can set a field length on the string field. By default it's commonly 255 or 256.
If you republish a survey and the text question field length binding is different to what is on the layer, Survey123 Connect will have to delete the field and recreate it in order to set the field length to be different. It does this by re-writing the entire feature service, which is the warning you are seeing now.
Find your Hosted Feature Layer. Go to Item Details > Data > Fields.
What field length is on the field HIF_notes in the existing, published layer?
Once you know this set your form to match it in the field length binding columns.
If you need the field length to be longer you will need to recreate the field manually. You can do this by:
This effectively allows you to recreate the field while preserving existing data.
Thanks! This worked. New to the program and still learning.