Closed pranspach closed 1 year ago
Hi @pranspach, thank you for the question. Can you please provide an example replication code script that is causing this issue? Preferably on a public ArcGIS Feature Service endpoint.
Closing issue. The error was very generic, but I was trying to create a point on an unsupported layer type (linestring).
Describe the bug
I'm trying to add a point to a feature by following the Typescript definitions, but every different permutation fails.
What's the best way to debug "Invalid operation parameters"? Is there a sandbox to validate specific parameters?
To resolve this issue, I have tried several geometry formats all resulting in the API error seen above. Some of the formats attempted:
“geometry”: { “x”: -88.1, “y”: 41.7 }
“geometry”: { “x”: -88.1, “y”: 41.7 }
“geometry”: { “x”: -88.1, “y”: 41.7, “z”:0 }
“geometry”: { “x”: -88.1, “y”: 41.7, “latitude”: -88.1, “longitude”: 41.7, }
“geometry”: { “x”: -88.1, “y”: 41.7, “spatialReference”: { “wkid”: 4326 }, }
“geometry”: { “x”: -88.1, “y”: 41.7, “type”: “Point” }
“geometry”: { “coordinates”: [ -88.1, 41.7 ], “type”: “Point” }
Any assistance that can be provided to successfully add point geometry to a feature would be greatly appreciated.
System Info
Additional Information
No response