I have a survey created in Survey123 Connect 3.20.63.
My issue: two questions with dynamic choice lists using search appearance work very inconsistently. They take a geopoint question, buffer it by a specified distance, an use that buffer to query a layer with ~6k polygons. Sometimes it works perfectly, and pulls in the 2-4 polygons near the point, as appropriate. Other times it pulls in all 6k records until you've moved the point it references.
Questions are configured exactly has recommended here: LINK
Note: the whole operation takes place within a repeat.
Additional background: This survey has two geopoint questions. The first is the 'incident point' and the second is the 'treatment point.' The impact point is calculated initially from the incident point as its default location, and the user is urged to move it. The survey was originally configured to use the dynamic choice list based on the incident point. When that was the case I never had this issue. When switching the choice list to the treatment point these inconsistent results started happening. There is a bit of a chain of calculations that generate the treatment point, but I've added some dummy fields to make sure the values are pulled and they are.
searchUrl: concat("TRMTName?url=https://myurl.gov/arcgis/rest/services/CalMapper/CM_GDTreatments/FeatureServer/2&units=esriSRUnit_StatuteMile&orderByFields=TREATMENT_NAME ASC","&distance=",${SearchDistance})
Search appearnce: w1 field-list search(${searchURL},'intersects','@geopoint',${Treatments_point})
${Treatments_point} is generated by concatenating the extracted X and Y values from ${Incidents_point}. This whole part works just fine. It's only since the search appearance came from the ${Treatments_point} rather than the ${Incidents_point} that I've had issues.
Any ideas what gives?