+ Reply to Thread
Results 1 to 9 of 9

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

  1. #1
    Jeffrey Smith
    Join Date
    Mar 2011
    Posts
    3
    Points
    0
    Answers Provided
    0


    0

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

    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.

  2. #2
    Jeff Rogholt
    Join Date
    Feb 2011
    Posts
    14
    Points
    0
    Answers Provided
    0


    0

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

    I'm running into the same problem. Did you find a solution?

  3. #3
    Lance Shipman

    Join Date
    Oct 2009
    Posts
    390
    Points
    113
    Answers Provided
    19


    0

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

    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?
    Lance Shipman
    Geodatabase Product Engineer, File Geodatabase, SQLite
    Esri

  4. #4
    Jeff Rogholt
    Join Date
    Feb 2011
    Posts
    14
    Points
    0
    Answers Provided
    0


    0

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

    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
    Last edited by jrogholt; 06-07-2012 at 06:59 AM. Reason: added stack trace info

  5. #5
    Lance Shipman

    Join Date
    Oct 2009
    Posts
    390
    Points
    113
    Answers Provided
    19


    0

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

    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?
    Lance Shipman
    Geodatabase Product Engineer, File Geodatabase, SQLite
    Esri

  6. #6
    Jeff Rogholt
    Join Date
    Feb 2011
    Posts
    14
    Points
    0
    Answers Provided
    0


    0

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

    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.

  7. #7
    David Sousa
    Join Date
    Jan 2011
    Posts
    53
    Points
    11
    Answers Provided
    1


    0

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

    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?

  8. #8
    Jeff Rogholt
    Join Date
    Feb 2011
    Posts
    14
    Points
    0
    Answers Provided
    0


    0

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

    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.

  9. #9
    Jeffrey Smith
    Join Date
    Mar 2011
    Posts
    3
    Points
    0
    Answers Provided
    0


    0

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

    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).

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts