update feature service geometry

292
0
07-15-2019 02:28 AM
StuartMoore
Occasional Contributor III

i'm trying to update the geometry of a polygon hosted in AGOL, the polygon currently has 3 points, i'm using the apply edits rest endpoint

below is the JSON for the update

[
   {
      "attributes" : {
         "OBJECTID" : 1509
      },
      "geometry" :
         {
            "rings" :  [
               [
                  [383843.4, 397033.650000001],
                  [383839.9, 397040.199999999],
                  [383843.95, 397042.300000001],
                  [383847.35, 397035.699999999],
                  [383843.4, 397033.65]
               ]
            ]
         }
      }
]

and here is the error i'm getting:

{   "addResults" : [   ],    "updateResults" : [     {       "objectId" : 1509,        "uniqueId" : 1509,        "globalId" : null,        "success" : false,        "error" :        {         "code" : 1000,          "description" : "Invalid column name 'Shape_4'.\r\nInvalid column name 'Shape_6'.\r\nInvalid column name 'Shape_8'.\r\nInvalid column name 'Shape_10'.\r\nInvalid column name 'Shape_12'.\r\nInvalid column name 'Shape_14'."       }     }   ],    "deleteResults" : [   ] }

any ideas?

Stu

0 Kudos
0 Replies