Select to view content in your preferred language

Not Able to add features (Hosted Services)

197
2
02-11-2025 09:50 AM
Sunnywaygis
Regular Contributor

Hi All, In our ArcGIS Enterprise environment (10.8.1), we have On prem Portal server, GIS/Hosting Server (Federated wit Portal). We are noticing that while adding features to hosting services, it doesn't add features. I have checked the following: 

1. Portal is successfully federated with GIS/Hosting server
2. Data store is validated
3. Hosted services are available

I also checked and applyEdits response shows the following: 

 

applyEdits response shows as belows: 

{
    "addResults": [
        {
            "objectId": null,
            "globalId": null,
            "success": false,
            "error": {
                "code": 10500,
                "description": "class org.json.JSONObject cannot be cast to class com.esri.core.geometry.Geometry (org.json.JSONObject and com.esri.core.geometry.Geometry are in unnamed module of loader java.net.URLClassLoader @396f6598)"
            }
        }
    ],
    "updateResults": [],
    "deleteResults": [],
    "attachments": {
        "addResults": [],
        "updateResults": [],
        "deleteResults": []
    }
}

 

https://gis01/arcgis/rest/services/Hosted/Boom/FeatureServer/0/query?f=json&returnGeometry=true&spat....

{
"error": {
"code": 500,
"message": "Cannot perform query. Invalid query parameters.",
"details": []
}
}

 

Thanks 

 

 

0 Kudos
2 Replies
RyanUthoff
MVP Regular Contributor

You might want to try running the describedatastore command and make sure it looks normal. If it looks normal, it might be worth trying to restart the data store service, or maybe even the entire server.

Besides that, did this issue just randomly start happening? Or was it after upgrading, Windows Updates, etc.?

https://enterprise.arcgis.com/en/data-store/10.9.1/install/windows/data-store-utility-reference.htm#...

0 Kudos
EricNyangari
Esri Contributor

Hello @Sunnywaygis 

Can you check and verify that the service account(s) has full permissions to the following folders:

:\arcgisdatastore

:\arcgisserver

C:\Program Files\ArcGIS\Server

C:\Program Files\ArcGIS\DataStore

 

Thank you

Eric

 

 

 

 

0 Kudos