Service Area Task Failure

2610
0
10-30-2014 01:12 PM
charlescraige
New Contributor

I am using the ArcGIS JavaScript API to perform a service area task in conjunction with the PHP proxy for an app login. The problem is that the first attempt to generate the service area fails and I get an invalid token error. However, all subsequent attempts are successful up until the current token expires. The facility point is fed into the SA function through location allocation (which is working perfectly, no failures). I am running the LA and a geocoding process through the proxy and have had no issues.

 

This is the error I get on the first attempt: "Uncaught SyntaxError: Unexpected token ILLEGAL " in PHP line 1, which gives me this line of code: dojo.io.script.jsonp_dojoIoScript2._jsonpCallback({"messages":[{"type":50,"description":"Input field [OID] was not mapped to a field in the network analysis class \"Facilities\"."}

 

After this first attempt there are not problems. Does anyone have an idea of why this is happening and how to go about fixing it?

0 Kudos
0 Replies