AnsweredAssumed Answered

Service Area Task Failure

Question asked by craige90 on Oct 30, 2014

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:{"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?