Editor Widget not saving newly created features

1448
12
02-07-2012 06:15 AM
JamesS1
Occasional Contributor
Everything is running locally off of a laptop, which includes the following:

ArcGIS Server 10 SP3
SQL Server 2008 Express

The data is in an enterprise geodatabase with the feature classes registered with the database.

The map uses direct connections for the data and the map service has Feature Access allowed.

When drawing a polygon, after the double-click to complete, no shape is drawn on the screen and no attribute template is shown. No feature is saved to the geodatabase.

Thoughts?
0 Kudos
12 Replies
derekswingley1
Frequent Contributor
What do you see happening in your browser's dev tools when you create a feature? Specifically in the network section. Any 500s or 404s or 403s? Can you post the code you're using?
0 Kudos
JamesS1
Occasional Contributor
The code is the exact Sample code from ESRI's sample site for the JavaScript API and Editing. I simply replaced their feature service and geometry service with the ones running on my ArcGIS Server.

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm
0 Kudos
derekswingley1
Frequent Contributor
Did you change the esri.config.defaults.io.proxyUrl to point to a proxy on your server?

It would also be helpful if you could post what you see happening in terms of requests being sent to your server. Firefox and Chrome have great tools built-in to do this.
0 Kudos
JamesS1
Occasional Contributor
0 Kudos
derekswingley1
Frequent Contributor
Because there are so many moving parts (JS code, service configuration, proxy config), it's usually fastest way to resolve this type of issue by working with support.  Can you open a ticket?

What's the http code returned when your app tries to access http://hawk/proxy/proxy.ashx?http://hawk/ArcGIS/rest/services/APA_Edit/FeatureServer/1/applyEdits ?
0 Kudos
JamesS1
Occasional Contributor
I can open a ticket.

The code is 200 OK

Thanks
0 Kudos
derekswingley1
Frequent Contributor
Hmm...200 means the edit should have been successful which makes me think there's something in your code. It would be helpful to see exactly what your code looks like, just to be sure.
0 Kudos
JamesS1
Occasional Contributor
This is the response after the POST for: http://localhost:51547/FSI_JS_API_Template/proxy.ashx?http://hawk/ArcGIS/rest/services/APA_Edit/Feat...

{"error":{"code":400,"message":"Unable to complete  operation.","details":["Unable to apply edits"]}}
0 Kudos
derekswingley1
Frequent Contributor
OK, so editing isn't working. Support is your best bet. I'd send them a link to this thread.
0 Kudos