| Número de ID del error |
BUG-000110783 |
| Enviado | January 16, 2018 |
| Última modificación | February 10, 2025 |
| Relacionado con | Collector Classic for ArcGIS (iOS) |
| Sistema operativo | Apple iOS |
| Estado | Known Limit
Después de la revisión por parte del equipo de desarrollo, se ha determinado que este problema está relacionado con una limitación conocida del software que está fuera del control de Esri. La sección Información adicional del problema puede contener más explicaciones.
|
Información adicional
This is a known limitation when publishing from ArcGIS Desktop with non-nullable attribute fields. Text fields contain spaces and numerical fields contain zeros as default values. Collector for ArcGIS reads the default values when creating features.
As an additional workaround, use the Reset Required Fields tool in the Collector Utils tools in ArcGIS Pro with hosted feature services from ArcGIS Online or ArcGIS Enterprise. This does not work with ArcGIS Server.
This tool removes those spaces and zeros from the non-nullable fields, therefore allowing them to show up as 'required' in Collector for ArcGIS.
https://github.com/Esri/collector-tools/blob/master/CollectorUtils/pro/ResetRequiredFields.md
https://github.com/Esri/collector-tools
Solución alternativa
Use Collector for ArcGIS. If users are using Collector for ArcGIS Classic, follow the steps below:
- After publishing the hosted feature service to ArcGIS Online, navigate to the service's REST.
- Insert admin into the REST URL in order to access Admin operations. For example: https://services.arcgis.com/<org id>/arcgis/rest/admin/services/<service name>/FeatureServer/0?token=<token>
- Click on the service's layer to navigate to the layer's Admin REST endpoint.
- Click Update Definition.
- Search for "lastEditDate" : <number> line.
- Remove <number> from line and replace it with ''. For example: "lastEditDate" : ''
- Search for the field's template and replace the field name's " " value with null value.
- Click Update Layer Definition.
- Add the newly updated layer into a new web map to consume the map in Collector for ArcGIS Classic, or refresh the existing maps in Collector for ArcGIS Classic. The required fields are honored in Collector for ArcGIS Classic.
Pasos para reproducir