Select to view content in your preferred language

Update feature class attributes with applyEdits()

539
0
02-14-2013 04:15 AM
ab1
by
Deactivated User
Hi,

I'm trying to update a feature's geometry and attribute using applyEdits(), following the order below:
1. Retrieve the feature from the SDE database.
2. Update its geometry and attribute using : feature.geometry = ... and feature.attributes.FIELD1 = ...
3. Perform applyEdits(null, [feature], null).

When I update the geometry of the feature without changing its attributes, the operation is performed successfully. But when I change the attribute too, I get the following error :
{"addResults":[],"updateResults":[{"objectId":1,"globalId":null,"success":false,"error":{"code":-2147217395,"description":"Setting of Value for TYPE_ARRET failed."}}],"deleteResults":[]}

Am I doing somethign wrong?

Regards.
Tags (2)
0 Kudos
0 Replies