This app was developed in Survey123 Connect using Template version 3.11, Revision date 22 September 2020. The app went live in January 2021.
I have a couple of fields that are used in the instance name to identify records in the Inbox/Outbox/Drafts which quit working after an ESRI update back in March of 2021. This only seems to happen on the mobile S123 app and not on the desktop S123 Field app.
The instance name is set up as: ${AllLocations}+"/"+${AllBuildings}+": "+${E_BCS_Date}+" ("+${Version}+")"
The 'AllLocations' and 'AllBuildings' fields are Type = calculate & Calculations = coalesce(${NewLocation},${E_Location}) or coalesce(${NewBuilding},${E_Building})
These 2 coalesced calculation fields are not nulled, nor do they have an alternate bind::esri:fieldType.
I use a similar collation formula in a different app but the Type = hidden or Type = text, and these work fine.
As this is used in a live app, I cannot change the field type of these calculate fields without losing data (if I could, I would change them to Type = text). Is there some other work-around to get this instance name to work properly again so that the records can be distinguished in the Inbox/Outbox/Drafts?
Screenshots and XLSForm attached.
Many thanks,
Sara
@SaraMiller What a great survey! Use this syntax instead:
concat(${AllLocations},"/",${AllBuildings},": ",${E_BCS_Date}," (",${Version},")")
A few tips:
Hi @IsmaelChivite,
Thank you for the feedback. I've changed the syntax as you suggested in a published test copy of the live app and I get the warning, "If you republish this survey all previously collected data will be lost" (see screenshot attached). This is a risk I cannot take in making the same change and republishing the live app. Why can't I change the instance name after an app is published without losing data? Is there some other way to fix this?
I would have a similar problem if I tried to implement your second suggestion which involves either changing the field type or the bind::esri:fieldType, as this cannot be done by republishing a live app without losing data.
Kind regards,
Sara