Fail to open table with -2147024809 (Invalid function arguments) return code

5223
8
03-30-2012 12:59 PM
JeffreySmith1
New Contributor
blI have a fgdb which I converted to V10 from 9.3. I am able to open the database, but the tables all return the code -2147024809 (Invalid function arguments) when I try to open them. I was able to open them with one of the earlier beta versions. I can list all of the tables, just not open them. Of course, the tables work fine in ArcMap. Is this possibly a XML issue. I see that this code is returned when creating a table with non-complient XML.
0 Kudos
8 Replies
JeffRogholt
New Contributor II
I'm running into the same problem.  Did you find a solution?
0 Kudos
LanceShipman
Esri Regular Contributor
What 10.0 sp did you use to perform the upgrade? What version of the API. I upgraded a 9.3 geodatabase and was able to open tables with the 1.2 version of the API. Were yo using the VS2008 or vs2010 version of the API?
0 Kudos
JeffRogholt
New Contributor II
I had to do some digging to get the history of this geodatabase.  My situation is a little different than the original post.  The data started in a 9.3 personal geodatabase.  Upgraded to 10.0 using SP 4.  Imported the table into a file geodatabase.  We're using API v1.2 for VS 2010.  Thanks.

here are the details of the Stack Trace from the exception:
at Esri.FileGDB.Geodatabase.OpenTable(String path) in f:\\filegdb_api\\src\\esri.filegdbapi.\\geodatabase.cpp:line 232\r\n
0 Kudos
LanceShipman
Esri Regular Contributor
Upgrading a ArcGIS 9.3 personal geodatabase to 10.0 and then copying the data to a 10.0 file geodatabase I was still able to open a table without any problems. Were there any errors when you upgraded the personal geodatabase?
0 Kudos
JeffRogholt
New Contributor II
We re-projected the data from HARN to UTM and now it's working!

Is the API supposed to work with the HARN projection or is there something wrong with our data?  Should the API work with all projections?  Sorry if I missed any limitations mentioned in the documentation.
0 Kudos
DavidSousa
New Contributor III
In general, any projection supported by ArcGIS is also supported in the FileGDB API. 

However, the API cannot support custom projections due to the fact that the API does not have access to the Projection Engine. 

Is your HARN projection a custom projection?
0 Kudos
JeffRogholt
New Contributor II
It does look like a custom projection.  I'm new to the GIS industry and the API has worked for all of the other customer files so I think it's safe to say it's custom.  Thanks for all the time and help lshipman and dsousa.
0 Kudos
JeffreySmith1
New Contributor
This did turn out to be a custom projection issue. It would be nice if there were a specific error code that indicated this, or better yet, simply return the data without conversion and let the user do the conversion (as a prior beta version did).
0 Kudos