Question on AGSGDBGeodatabase?

Discussion created by s26761 on Jan 28, 2014
Latest reply on Feb 6, 2014 by agalushkadev

I've used ArcGIS Desktop 10.2.1 to generate a local geodatabase and added it to my project. Please refer to below for the code I've used to access the geodatabase. However, I've encountered an error as shown below.

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *docsPath = [paths objectAtIndex:0];
    NSString *path = [docsPath stringByAppendingPathComponent:@"route_points.geodatabase"];
    NSError *err = nil;
    AGSGDBGeodatabase *gdb = [[AGSGDBGeodatabase alloc] initWithPath:path error:&err];
    NSLog(@"error %@", err.description);

error Error Domain=com.Esri.ArcGIS.ErrorDomain Code=10003 "SELECT ObjectID, Definition, Type FROM GDB_Items WHERE Name = ? collate nocase AND  Type = ?

Any idea what maybe the cause? Any solution?


Ong CF