Select to view content in your preferred language

Using ArcGIS Assistant to edit feature service JSON

218
2
Jump to solution
02-25-2025 10:24 AM
GrantSmith122
Regular Contributor

Hello, I am using ArcGIS Assistant to edit some JSON of an existing Enterprise Portal Hosted Feature Layer, but the edits do not appear in my Portal. I have a Hosted Feature Service with 3 layers and 1 table, and I have edited the JSON to remove the table from the dataset completely. If I log out/in to ArcGIS Assistant, I see that the edits persist and the JSON is valid. When I log in to my Portal, the table is still there and very functional (can rename the title, look at data, etc.).

Is there another step I need to do to have these underlying JSON edits properly applied to the hosted feature layer? I know ArcGIS Assistant is not a supported ESRI product, but it looks like the JSON editing worked for all intents and purposes. Is there something I'm missing? I have tried restarting the entire ArcGIS Server, refreshing the individual service using the Admin tools API, and clearing my cache.

0 Kudos
1 Solution

Accepted Solutions
JakeSkinner
Esri Esteemed Contributor

@GrantSmith122 , you can use ArcGIS Server Administrator to do this. 

1.  Log into ArcGIS Server Admin and navigate to Services > Hosted > [service] > edit.  I recommend copying the JSON to a good text editor like Notepad++.  

2.  Locate the layer id of the table, i.e. "3":

JakeSkinner_3-1740659760456.png

3.  Delete all of the JSON for this object, including the preceding comma:

JakeSkinner_1-1740659695276.png

JakeSkinner_2-1740659730303.png

4.  Locate the layerIds and delete the id from there:

JakeSkinner_5-1740659813404.png

5. Verify your JSON is correct in JSONlint.  Then paste it back into the Admin page and click Save Edits.

 

 

 



View solution in original post

2 Replies
JakeSkinner
Esri Esteemed Contributor

@GrantSmith122 , you can use ArcGIS Server Administrator to do this. 

1.  Log into ArcGIS Server Admin and navigate to Services > Hosted > [service] > edit.  I recommend copying the JSON to a good text editor like Notepad++.  

2.  Locate the layer id of the table, i.e. "3":

JakeSkinner_3-1740659760456.png

3.  Delete all of the JSON for this object, including the preceding comma:

JakeSkinner_1-1740659695276.png

JakeSkinner_2-1740659730303.png

4.  Locate the layerIds and delete the id from there:

JakeSkinner_5-1740659813404.png

5. Verify your JSON is correct in JSONlint.  Then paste it back into the Admin page and click Save Edits.

 

 

 



GrantSmith122
Regular Contributor

Hey @JakeSkinner , this worked great! Thank you for the solution. The edits I made in ArcGIS Assistant were not appearing in the actual feature layer JSON in Server Admin, but after I made the changes there everything worked great. Thank you again!

0 Kudos