I am trying to create a basic web map, consuming data from my ArcServer instance. After many hours of troubleshooting, I figured out what my issue is but I do not know how to fix it. Hoping someone can shed some light.
I'm using the latest 4.10 api. Using the sample code at ArcGIS API for JavaScript Sandbox as my base; changing the relevant elements to point to my server.
I finally figured out the indetifyTask was actually running, but returning an error.
e {name: "request:server", message: "Unexpected token F in JSON at position 663", details: {…}}
I am getting a result. At position 663 seems to be malformed results. The below is what is being returned. 663 is the F in "FACILITY_JOIN".
"GLOBALID":"{59871D5E-66A0-4E28-A403-395C68536163}","Shape":"Polygon",","FACILITY_JOIN":"VU-MAIN
Preceding this is ",","FAC. I suspect the unmatched ", is really the issue. My question is, how can I fix? Is it an issue with the service? An issue with the params I'm passing? I just know know. Hoping someone can point me in the correct direction.