error: Must declare the scalar variable \"@FID\

1304
1
07-28-2018 09:34 PM
DarioSuardíaz
New Contributor

Hello Guys!

I'm trying to simply update a feature using the applyEdits utility in Feature Service and I'm getting this response every time. Below you can see a screenshot of my postman request, am I missing something?

Thanks in advance for your help!

0 Kudos
1 Reply
Juan_CarlosFranco
Esri Contributor

Hi, Dario.

Could you try adding the FeatureLayer's objectIdField to your attributes instead of "objectId"? From the error message, it's probably 'FID'.

E.g.,

[
  {
    "attributes": {
      "FID": 30,
      "name": "West Trail",
      "type": "Hiking Path",
      "surface": "Dirt"
    }
  }
]
0 Kudos