laptop and a wrench

漏洞

In ArcGIS Online, the newly created fields in the Pole layer in "Electric Distribution Data Management for ArcGIS Online" from ArcGIS Solution cannot be added as domains.

上次发布: July 20, 2021 ArcGIS Online
漏洞 ID 编号 BUG-000139558
已提交April 30, 2021
上次修改时间July 3, 2025
适用范围ArcGIS Online
找到的版本8.4
操作系统N/A
操作系统版本N/A
状态Fixed

附加信息

Currently in ArcGIS Online, domains cannot be added to new fields for existing feature layers. Domains must be set prior to publishing the layer to ArcGIS Online.

解决办法

1)     Log in to the ArcGIS Online organizational account.

2)     Go to Content and click My Content. Select the hosted feature layer to open the item detail page.

3)     On the item details page, click the Data tab. 

4)     On the Data page select the layer from the Layer dropdown list that needs the new field added to it. 

5)     Click the Fields button to view the Display Name, Field Name and Type.

a.      Click the Add button to add a new field. Fill out the Field Name, Display Name, Type and Length.

b.      Click the Add New Field button when finished.

6)     Go to the Visualization tab and select the layer you just added the field to.

7)     On the Visualization page, click the Configure Pop-up icon on the layer

8)     Click Configure Attributes

9)     In the Configure Attributes window, check the Display check box of the new field added.

10)     Click OK to close the Configure Attributes window. Click OK again.

11)     Click Save Layer to save the changes.

12)     Click the Overview tab

13)     On the Overview tab, click the subtype layer in the Layers section. 

14)     Under the URL section, click the View link to get to the rest endpoint. 

15)     Add admin after /rest/ in the url to get access to the admin page. arcgis/rest/admin/services

16)     Scroll down to the bottom and click the Update Definition link in the Supported Operations section.

17)     Copy and paste the JSON in in the text area into a text editor.

18)     Select and copy the following sections one at a time from the JSON you just pasted, into a new text editor page:

a.      fields

b.      types

c.      subtypes

19)     In the new editor, add open curly bracket { at the top and a closed curly bracket } at the very bottom. 

20)     Find the field added in the fields section and add the domain and coded values along with a unique domain name and code for each value. 

21)      In the types>domains section add the "fieldname" : {"type" : "inherited"} at the bottom of the domains section. Make sure to add a comma after the last domain before adding the new one.

a.       repeat this for each type in the types section. 

22)     Copy the domain from the fields section and paste it into the subtypes section along with the name of the field. Repeat this for each subtype. 

23)     Copy and paste the JSON into a JSON online validator to verify JSON syntax is correct.

24)     Highlight and delete the existing JSON in the Update Layer Definition text area and paste the new valid JSON, click the Update Layer Definition button.

25)     For any views created from the main Feature Layer (hosted), copy and paste the valid JSON you just modified and update the layer definition for the same layer in the view.

26)     Go to the Visualization tab and select the layer you just updated.

27)     On the Visualization page, click the Configure Pop-up icon on the layer

28)     Click Configure Attributes

In the Configure Attributes window, check the Display check box of the new field added

29)     Click OK to close the Configure Attributes window. Click OK again.

30)     Click Save Layer to save the changes. .

重现步骤

漏洞 ID: BUG-000139558

软件:

  • ArcGIS Online

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项