ArcGis API returning GenerateFeatures Service error Exception: Internal Server Error

3305
1
11-18-2015 06:23 AM
RafaelBarreira
New Contributor

I'm trying to add a shapefile to a map based on this example Add shapefile | ArcGIS API for JavaScript. when I run the application that is in localhost and using the same service [http://www.arcgis.com/sharing/rest/content/features/generate] I get the following response:

{"success":false,"error":{"message":"GenerateFeatures Service error \nException: Internal Server Error"}}

The questions are:

1 - Am I getting this error because I'm not autorized or because is only for samples projects and limited to arcgis domain?

2 - The GenerateFeatures Services come with ArcGis Server?

Tags (1)
1 Reply
Kathleen_Crombez
Occasional Contributor III

I don't know if this is helpful to you or not... But I was having the same issue.

My problem was that I had neglected to add the "name" attribute to the file input tag.

Fields with an empty/missing "name" attribute are missing in POST/GET request from the browser.

So make sure you have the "name" attribute set so the request will include the file.