Hello,
I have been working on updating a survey123 and I updated an existing field to change from 255 to 1000 characters. After publishing, all of the data was removed from that survey. Is there any way I can fix this?
Solved! Go to Solution.
There are a few ways you could do this, but your best bet might be something like this, provided you have an ArcGIS Pro license:
First thing I would do is get that FGDB backed up again though, like in Google Drive or a network drive or somewhere. Shapefiles aren't great backups for surveys, shapefiles don't maintain all of your data - for example they don't support photos, their field lengths are limited to 255 characters (everything after gets cut off), date/time values lose their times, things like that.
This is expected behaviour in some cases, before you published did you see a warning like this one?
Yes, but I misunderstood. I was under the impression that it was for that specific field. I still have an archived data set from the previous survey. Is there a way I can merge the previous records back to the survey?
What format is your archive, something like a File GDB feature class? Is your survey a single layer/table, or does it include repeats?
I archived it as a shapefile, FGDB, and geopackage, but I also access to the feature layer. It has a lot of nested tables. There are associated pictures.
Your best bet would be rebuilding it from the gdb backup in pro then republishing. If you lost your file associations you'll need to rebuild those too.
Good thinking backing everything up, it would be a nightmare if you didn't, more it's just a pain.
You're right that the warning message isn't very clear. Changing field length for a single field would logically only delete data in that field, and they should definitely have a very detailed message with a GitHub style "please type the full length of the survey name to confirm" style prompt.
There are a few ways you could do this, but your best bet might be something like this, provided you have an ArcGIS Pro license:
First thing I would do is get that FGDB backed up again though, like in Google Drive or a network drive or somewhere. Shapefiles aren't great backups for surveys, shapefiles don't maintain all of your data - for example they don't support photos, their field lengths are limited to 255 characters (everything after gets cut off), date/time values lose their times, things like that.
I'm hoping the linked files are linked either by a URL or stored in BLOB records, rebuilding an attachment table can suck if you don't have good naming schemes.
Thank you for your help! I was able to link all of the data to a new survey! You really helped save my bacon at this late hour 🙂