abiancoimg-com-br-esridist

FeatureServer and ClassExtension

Discussion created by abiancoimg-com-br-esridist Employee on Oct 1, 2013
Latest reply on Apr 14, 2016 by jsn
I am having  problems when publishing a service with a FeatureServer capabilities. This service is pointing to a FeatureClass on the Geodatabase and this FeatureClass has a classExtension associated. This classExtension do some validations to ensure that the feature can be saved. In the ArcMap everything works fine and in the server it works also, but I cannot retrieve the error message properly.

In ArcMap the classExtension do the validations and inform the user what rule has been violated, so he can fix the error e try again. In the web editing (FeatureServer  applyEdits), when some rule is violated, the ArcGIS does not allow the feature to be saved, but the error message is generic like {"error":{"code":400,"message":"Unable to complete operation.","details":["Unable to perform applyEdits operation."]}}.

If I configure the ArcGIS Server Manager Log to log detailed information I can see the right error description logged, so the classExtension is working well!

Is there a way to get a structured error message or the original error description on the client side (REST)?

Outcomes