AnsweredAssumed Answered

Fail to execute Offline Routing Task

Question asked by alitvak on Apr 28, 2014
Latest reply on Apr 29, 2014 by alitvak
Hello, I'm getting error message 'NSRangeException Reason: *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array' when I'm running Task for Offline Routing.
It is fail on initializing AGSRouteTask in this section below, in the last row:
SError* error = nil;
NSString* docDir = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
NSString* fullPath = [docDir stringByAppendingPathComponent:@"NetworkData.bundle/RuntimeSanFrancisco.geodatabase"];
_routeTask = [AGSRouteTask routeTaskWithDatabasePath:fullPath network:@"Streets_ND" error:&error];

*All required files are copied in to Document folder and before I'm initializing task I validate existence of *.geodatabase and Streets_ND.
*Installed SDK Runtime version 10.2.3.
*Same class has Online Routing and it is working just fine, only when I'm switching to use Offline Routing with the code above it is fail.