<?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 Re: Some problems about table definition XML in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/some-problems-about-table-definition-xml/m-p/619785#M992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I use Final release of FGDBAPI.&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;The Geodatabase::CreateTable can't create featureclass using the XML that exported from GetDefinition. The error code is -2147467259 and the description is "General function failure".&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The XML that exported from GetDefinition does not contain WKT and WKID tags under SpatialReference tag. There isn't way to get a spatial reference information from FGDB except using ArcGIS.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;When a featureclass is created using XML with the minimum spatial reference definition, a spatial reference does not equal to the default values of ArcGIS Desktop.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;#1 &amp;amp; #2 Please send a copy of your feature class (&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:lshipman@esri.com" rel="nofollow noopener noreferrer" target="_blank"&gt;lshipman@esri.com&lt;/A&gt;&lt;SPAN&gt;) and we will take a look. Both of these work for us.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 ArcGIS Desktop has access to functionality not present in the API so the default values will be different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get more error information when table creation fails add the extended error code from the following code fragment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; if ((hr = geodatabase.CreateTable(featureClassDef,L"", streetsTable)) != S_OK)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; "An error occurred while creating the table." &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;

 // Report any extended errors (XML).
 ErrorInfo::GetErrorRecordCount(recordCount);
 for (int i = 0;i &amp;lt;= (recordCount - 1); i++)
 {
&amp;nbsp; ErrorInfo::GetErrorRecord(i,hr,errorText);
&amp;nbsp; wcout &amp;lt;&amp;lt; errorText &amp;lt;&amp;lt; endl;
 }
 ErrorInfo::ClearErrors();

&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:28:01 GMT</pubDate>
    <dc:creator>LanceShipman</dc:creator>
    <dc:date>2021-12-12T02:28:01Z</dc:date>
    <item>
      <title>Some problems about table definition XML</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/some-problems-about-table-definition-xml/m-p/619784#M991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use Final release of FGDBAPI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;The Geodatabase::CreateTable can't create featureclass using the XML that exported from GetDefinition. The error code is -2147467259 and the description is "General function failure".&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The XML that exported from GetDefinition does not contain WKT and WKID tags under SpatialReference tag. There isn't way to get a spatial reference information from FGDB except using ArcGIS.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;When a featureclass is created using XML with the minimum spatial reference definition, a spatial reference does not equal to the default values of ArcGIS Desktop.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;PRE class="plain" name="code"&gt;FGDB API
SPRef&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :GCS_JGD_2000
False X&amp;nbsp;&amp;nbsp; :-400
False Y&amp;nbsp;&amp;nbsp; :-90
XY Units&amp;nbsp; :1000000000
Resolution:1E-09
Tolerance :1E-08

ArcGIS Desktop
SPRef&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :GCS_JGD_2000
False X&amp;nbsp;&amp;nbsp; :-400
False Y&amp;nbsp;&amp;nbsp; :-400
XY Units&amp;nbsp; :1111948722.22222
Resolution:8.99322046075566E-10
Tolerance :8.98315284119521E-09
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 07:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/some-problems-about-table-definition-xml/m-p/619784#M991</guid>
      <dc:creator>SatoruGUNJI</dc:creator>
      <dc:date>2011-06-14T07:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Some problems about table definition XML</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/some-problems-about-table-definition-xml/m-p/619785#M992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I use Final release of FGDBAPI.&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;The Geodatabase::CreateTable can't create featureclass using the XML that exported from GetDefinition. The error code is -2147467259 and the description is "General function failure".&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The XML that exported from GetDefinition does not contain WKT and WKID tags under SpatialReference tag. There isn't way to get a spatial reference information from FGDB except using ArcGIS.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;When a featureclass is created using XML with the minimum spatial reference definition, a spatial reference does not equal to the default values of ArcGIS Desktop.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;#1 &amp;amp; #2 Please send a copy of your feature class (&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:lshipman@esri.com" rel="nofollow noopener noreferrer" target="_blank"&gt;lshipman@esri.com&lt;/A&gt;&lt;SPAN&gt;) and we will take a look. Both of these work for us.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 ArcGIS Desktop has access to functionality not present in the API so the default values will be different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get more error information when table creation fails add the extended error code from the following code fragment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; if ((hr = geodatabase.CreateTable(featureClassDef,L"", streetsTable)) != S_OK)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; wcout &amp;lt;&amp;lt; "An error occurred while creating the table." &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;

 // Report any extended errors (XML).
 ErrorInfo::GetErrorRecordCount(recordCount);
 for (int i = 0;i &amp;lt;= (recordCount - 1); i++)
 {
&amp;nbsp; ErrorInfo::GetErrorRecord(i,hr,errorText);
&amp;nbsp; wcout &amp;lt;&amp;lt; errorText &amp;lt;&amp;lt; endl;
 }
 ErrorInfo::ClearErrors();

&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:28:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/some-problems-about-table-definition-xml/m-p/619785#M992</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2021-12-12T02:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Some problems about table definition XML</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/some-problems-about-table-definition-xml/m-p/619786#M993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I sent my sample project to you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;#3 ArcGIS Desktop has access to functionality not present in the API so the default values will be different.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I want that FGDB API set the same default values as ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If #2 and #3 is not implemented, FGDB API is difficult to use.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 07:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/some-problems-about-table-definition-xml/m-p/619786#M993</guid>
      <dc:creator>SatoruGUNJI</dc:creator>
      <dc:date>2011-06-16T07:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Some problems about table definition XML</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/some-problems-about-table-definition-xml/m-p/619787#M994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;#1 Represents a bug which we will fix in the next release. You can fix it by modifying the 10.0 in the second line of the XML to 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 Is the result of not including the \ in the table name.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 19:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/some-problems-about-table-definition-xml/m-p/619787#M994</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2011-06-17T19:38:51Z</dc:date>
    </item>
  </channel>
</rss>

