Survey123 for ArcGIS is limited to creating only one geometry record for each survey submitted, when attempting to publish a survey with more than one geometry, for instance multiple geopoints or moisture of polygons and points in the same survey, the following error is returned:
![Capture Multiple Geometries Inside a Single Survey123 Form 1 null 891](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_624,h_86/https://help.cadasta.org/media/null-891.png)
Consider the following scenario…
It is necessary to record details of properties in a neighborhood. For this use case, we need to collect the boundary of the parcel, the footprint of the building and the location of the main water taps in the property to measure the water consumption.
To map this case we will start defining the main parcel:
![Capture Multiple Geometries Inside a Single Survey123 Form 2 null 892](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_585,h_90/https://help.cadasta.org/media/null-892.png)
![Capture Multiple Geometries Inside a Single Survey123 Form 3 null 893](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_512,h_281/https://help.cadasta.org/media/null-893.png)
This configuration allows the capture of the parcel boundaries, to capture the footprint of the building we need to add another geoshape that we are going to call building:
![Capture Multiple Geometries Inside a Single Survey123 Form 4 null 894](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_624,h_140/https://help.cadasta.org/media/null-894.png)
The problem with this configuration is that the two (2) geoshapes configured in the same survey, will show this error when trying to publish the survey:
![Capture Multiple Geometries Inside a Single Survey123 Form 5 null 895](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_624,h_474/https://help.cadasta.org/media/null-895.png)
To better understand the issue, let’s take a look on the schema generated by the survey:
![Capture Multiple Geometries Inside a Single Survey123 Form 6 null 896](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_624,h_485/https://help.cadasta.org/media/null-896.png)
Both geoshapes are in the same table which is not possible in the general architecture of the geodatabase. To resolve the issue it is necessary to divide the tables. This is done in Survey123 using the repeat feature.
Repeats are like sub-forms meaning that can be considered like a form within a form that can also be completed multiple times. To add a repeat to our form we need to enclose a set of questions within a begin repeat and end repeat set, as shown below:
![Capture Multiple Geometries Inside a Single Survey123 Form 7 null 897](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_624,h_124/https://help.cadasta.org/media/null-897.png)
The inclusion of the repeat creates a new table (layer) associated with the form that will contain the details of the building, the schema now includes the new table with the geoshape (footprint) and other attributes.
The schema below shows the main layer of the feature service named “MultiGeometry” and an associated layer “rptBuilding” that contains the footprint of the building and the attribute defined.
![Capture Multiple Geometries Inside a Single Survey123 Form 8 null 898](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_624,h_500/https://help.cadasta.org/media/null-898.png)
Survey123 repeats are modeled in ArcGIS as related tables (or related layers if your repeat includes a geopoint, geoshape or geotrace question). In the example of the multigeometry survey above, the information about the parcel is kept in the main layer of a feature service, and the data from the building (footprint, building type) is modeled as a separate, but related table. The relationship between the tables/layers is kept through internally created global IDs.
Additionally we can use the “repeat_count” row in the XLSForm to control how many records must exist within a repeat. In our example, if we set the value for the repeat_count to two (2), the survey will initialize the repeat with 2 empty records.
![Capture Multiple Geometries Inside a Single Survey123 Form 9 null 900](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_624,h_168/https://help.cadasta.org/media/null-900.png)
![Capture Multiple Geometries Inside a Single Survey123 Form 10 null 902](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_624,h_300/https://help.cadasta.org/media/null-902.png)
Now let’s add the points for the water taps as another repeat section in the survey.
![Capture Multiple Geometries Inside a Single Survey123 Form 11 null 904](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_624,h_213/https://help.cadasta.org/media/null-904.png)
![Capture Multiple Geometries Inside a Single Survey123 Form 12 null 906](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_624,h_630/https://help.cadasta.org/media/null-906.png)
The form we just created will allow us to capture the required information about the properties. The final result is displayed in the following image which displays the three (3) linked layers: MultiGeometry, Building Details, and Water taps in the property.
![Capture Multiple Geometries Inside a Single Survey123 Form 13 null 907](https://sp-ao.shortpixel.ai/client/to_auto,q_glossy,ret_img,w_624,h_360/https://help.cadasta.org/media/null-907.png)