Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Updating feature's geometry ERRORS (10.2.0 - 10.2.1) ArcGIS Server, JAVA

$
0
0
Hello,

I'm developing a SOE with JAVA.
I have a featureclass which must be updated.
I use the ITable.updateSearchedRows() method.
I'm developing in 10.2.1 and all goes well.

Now when I publish my SOE to a 10.2.0 ArcGIS Server, I'm getting a strange error:
AutomationException: Field is not editable.
I found out that it only occurs when updating the geometryfield (other fields succeed).
Code:

((ITable) fc).updateSearchedRows(qf, featureBuffer);
Also when I tried to create a workaround with an updateCursor, it still struggles on the geometry-field.
Example:
Code:

IFeatureCursor fcur = fc.IFeatureClass_update(qf, false);
IFeature feat2 = fcur.nextFeature();
feat2.setShapeByRef(feat2.getShapeCopy());
feat2.setValue(feat2.getFields().findField("FUNCTIONEEL_ID"), "testcollin1");
fcur.updateFeature(feat2);//errorline

AutomationException: Shape or row not found

I tried the IFeature.store() as well, but same result...

Both environments (10.2.0 and 10.2.1) have the same mapservice (published from the same mxd) and use the same DB-layers, so it's not a data thing.

Can it be that this is an issue in 10.2.0? And that it is being solved in 10.2.1?
Or is it just that a 10.2.1 JAR is not 100% working on a 10.2.0 environment?
I would like to know this before I might downgrade my dev.env. to the 10.2.0 version.

Regards,
Collin Kleiboer
GisSense

Viewing all articles
Browse latest Browse all 1374

Trending Articles


FLASHBACK WITH SIRASA FM AT GALGAMUWA 2022


Mp3 Download: Mdu - Mazola


Imitation gun was fired at motorist in Leicester road-rage incident


Ndebele names


MCKINNEY EMALINE “EMMA” OF WES...


Okra & Motia — The Workshop (Prod by Hammer)


Skint TV teen to be sentenced


Moondru Mudichu 19-09-2017 – Polimer tv Serial


YOSVANI JAMES Arrested by Miami-Dade County Corrections on Jan 10, 2017


Stories • Goddess Stepmom