Select to view content in your preferred language

Add Feature by REST API Error

2651
10
04-26-2021 07:26 AM
Labels (2)
StuartMoore
Frequent Contributor

so i'm trying to add a new feature to an AGOL feature service using the Apply edits REST API the feature service is a polyline and i get this error:

{
  "addResults" : [
    {
      "objectId" : null, 
      "uniqueId" : null, 
      "globalId" : "5ED16305-D978-4C4F-951F-B87FC1479927", 
      "success" : false, 
      "error" : 
      {
        "code" : 1000, 
        "description" : "Invalid column name 'Shape_5'.\r\nInvalid column name 'Shape_7'.\r\nInvalid column name 'Shape_9'.\r\nInvalid column name 'Shape_11'.\r\nInvalid column name 'Shape_13'.\r\nInvalid column name 'Shape_15'."
      }
    }
  ]
}

 

i have even queried an existing feature and tried to re-add it using its JSON and get the same error

 

any ideas?

 

thanks

 

Stu

Tags (4)
0 Kudos
10 Replies
SeanMcCann1
New Contributor

This may not help you @StuartMoore as this was quite some time ago, hwoever I figured I would post this for anyone who like me came hunting for a solution for this error.

I was having this error when trying to add features to a Feature Service which was created as a copy of the Location Tracking service which is automatically created as part of configuring Tracker for ArcGIS.

When the layer was created, and I'm not sure if this is the case for all feature layers, the Track Lines layer was configured with Layer Optimization on.

Once I turned off the Layer Optimization in the layer settings page, for the Track Lines layer, I was able to add features as expected.

Hopefully this helps someone who runs into this issue, assuming this is a general fix and not just specific to my use case.

Cheers,

Sean