In Collector for ArcGIS (Windows) 17.0.3, non-nullable fields without a coded domain in a feature service contain a space by default and must be removed manually when entering new data.
最後に公開された状態: June 10, 2019ArcGIS Collector
不具合 ID 番号
BUG-000111160
送信されました
January 26, 2018
最終更新日
February 10, 2025
適用対象
ArcGIS Collector
見つかったバージョン
17.0.3
ステータス
Known Limit
開発チームによる確認後に、この問題が、Esri の管理の範囲外にあるソフトウェアの既知の制限に関するものであると判断されました。 問題の「参考情報」セクションに、さらに詳細な説明が示されていることがあります。
参考情報
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. 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
対処法
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 service's layer to navigate to 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 a 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.