Syntax error 800A03EA attempting to do esri.request

758
1
07-26-2011 02:42 PM
AndrewLangemann
New Contributor
I'm using ArcGIS 10.02 and the Javascript API 2.0.

I'm attempting to use esri.request to call deleteFeatures on a FeatureLayer.
[PHP]        esri.request({
            url: 'http://localhost/ArcGIS/rest/services/DevelopmentReviewFeatureService/FeatureServer/0/deleteFeatures',
            postData: 'where=' + escape('EXTERNALFILENUM=1238456'),
            load: function (data, io) {
                // success
            },
            error: function (error) {
                console.log(error.message);
            }
        });[/PHP]

This does end up deleting the features, but it always returns a 800A03EA syntax error.

This request is being done through an ASP.NET proxy - when I do the same thing with dojo.xhrPost, which doesn't use the proxy, I don't get the error.

Anyone know why I'm getting this?

- Andrew
0 Kudos
1 Reply
AndrewLangemann
New Contributor
I got this figured out - my request was returning HTML, so I added "f=json" to the postData and now it is returning as JSON.
0 Kudos