<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic open testdata.gdb general function failure. in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/open-testdata-gdb-general-function-failure/m-p/541374#M874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've modified the sample source code Querying.cpp to open another database in the sample (TestData.gdb). I get the following error saying, "General function failure (-2147467259)". Can anyone tell me what I'm doing wrong here? Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my source code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp; fgdbError hr;
&amp;nbsp; wstring errorText;
&amp;nbsp; Geodatabase geodatabase;
&amp;nbsp; if ((hr = OpenGeodatabase(L"../data/TestData.gdb", geodatabase)) != S_OK)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; "An error occurred while opening the geodatabase." &amp;lt;&amp;lt; endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorInfo::GetErrorDescription(hr, errorText);
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; errorText &amp;lt;&amp;lt; "(" &amp;lt;&amp;lt; hr &amp;lt;&amp;lt; ")." &amp;lt;&amp;lt; endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1;
&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Apr 2011 20:18:56 GMT</pubDate>
    <dc:creator>eykim</dc:creator>
    <dc:date>2011-04-01T20:18:56Z</dc:date>
    <item>
      <title>open testdata.gdb general function failure.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/open-testdata-gdb-general-function-failure/m-p/541374#M874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've modified the sample source code Querying.cpp to open another database in the sample (TestData.gdb). I get the following error saying, "General function failure (-2147467259)". Can anyone tell me what I'm doing wrong here? Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my source code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp; fgdbError hr;
&amp;nbsp; wstring errorText;
&amp;nbsp; Geodatabase geodatabase;
&amp;nbsp; if ((hr = OpenGeodatabase(L"../data/TestData.gdb", geodatabase)) != S_OK)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; "An error occurred while opening the geodatabase." &amp;lt;&amp;lt; endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorInfo::GetErrorDescription(hr, errorText);
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; errorText &amp;lt;&amp;lt; "(" &amp;lt;&amp;lt; hr &amp;lt;&amp;lt; ")." &amp;lt;&amp;lt; endl;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1;
&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 20:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/open-testdata-gdb-general-function-failure/m-p/541374#M874</guid>
      <dc:creator>eykim</dc:creator>
      <dc:date>2011-04-01T20:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: open testdata.gdb general function failure.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/open-testdata-gdb-general-function-failure/m-p/541375#M875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are doing nothing wrong. "TestData.gdb" has a problem and has been updated for final.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 23:31:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/open-testdata-gdb-general-function-failure/m-p/541375#M875</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2011-04-04T23:31:01Z</dc:date>
    </item>
  </channel>
</rss>

