<?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: Geodatabase::CreateTable and Table::AddField return -2147467259. in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378711#M622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the cause of error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the following code exists, Geodatabase::CreateTable function returns -2147467259, when the XML includes Japanese characters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;setlocale(LC_CTYPE, "Japanese");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I commented out this code, this error was not returned. However, if the locale is not correct, multi-byte character can not be used adequately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope API supports several locales.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2011 05:45:28 GMT</pubDate>
    <dc:creator>SatoruGUNJI</dc:creator>
    <dc:date>2011-03-28T05:45:28Z</dc:date>
    <item>
      <title>Geodatabase::CreateTable and Table::AddField return -2147467259.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378706#M617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I tried to create data with Japanese name, Geodatabase::CreateTable returned -2147467259.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed values of CatalogPath and Name in samples/TableSchema/Streets.xml into Japanese. And I ran TableSchema project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I dumped featureClassDef into file with binary mode. The featureClassDef is UTF-8(without BOM). When I tried to use Unicode(UCS-2?), same error code was returned. Table::AddField too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does these function support muiti byte(non-English) character?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 04:45:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378706#M617</guid>
      <dc:creator>SatoruGUNJI</dc:creator>
      <dc:date>2011-03-18T04:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase::CreateTable and Table::AddField return -2147467259.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378707#M618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When I tried to create data with Japanese name, Geodatabase::CreateTable returned -2147467259.&lt;BR /&gt;I changed values of CatalogPath and Name in samples/TableSchema/Streets.xml into Japanese. And I ran TableSchema project.&lt;BR /&gt;I dumped featureClassDef into file with binary mode. The featureClassDef is UTF-8(without BOM). When I tried to use Unicode(UCS-2?), same error code was returned. Table::AddField too.&lt;BR /&gt;&lt;BR /&gt;Does these function support muiti byte(non-English) character?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Yes, The CreateTable function does support multibyte characters. Please send me your&amp;nbsp; XML (&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:lshipman@esri.com"&gt;lshipman@esri.com&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 16:13:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378707#M618</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2011-03-18T16:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase::CreateTable and Table::AddField return -2147467259.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378708#M619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello lshipman,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you test using XML file I had sent?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tested using File Geodatabase API Beta 3. I could not create data with Japanese name.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 06:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378708#M619</guid>
      <dc:creator>SatoruGUNJI</dc:creator>
      <dc:date>2011-03-25T06:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase::CreateTable and Table::AddField return -2147467259.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378709#M620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello lshipman,&lt;BR /&gt;&lt;BR /&gt;Did you test using XML file I had sent?&lt;BR /&gt;I tested using File Geodatabase API Beta 3. I could not create data with Japanese name.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently testing with your XML file. I'll provide a summary of my findings later today.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 13:00:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378709#M620</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2011-03-25T13:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase::CreateTable and Table::AddField return -2147467259.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378710#M621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are two problems. One with the XML. Extent was added as a required tag. It goes just before the SpatialReference. I've included the corrected Streets.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;LengthFieldName&amp;gt;Shape_Length&amp;lt;/LengthFieldName&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;Extent xsi:nil="true" /&amp;gt; &amp;lt;-- This is new with Beta 3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- &amp;lt;SpatialReference xsi:type="esri:GeographicCoordinateSystem"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the corrected XML, a file is created, but the name of the table is gibberish.&amp;nbsp; We have a fix for this which will be in final.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 20:44:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378710#M621</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2011-03-25T20:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase::CreateTable and Table::AddField return -2147467259.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378711#M622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the cause of error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the following code exists, Geodatabase::CreateTable function returns -2147467259, when the XML includes Japanese characters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;setlocale(LC_CTYPE, "Japanese");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I commented out this code, this error was not returned. However, if the locale is not correct, multi-byte character can not be used adequately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope API supports several locales.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 05:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378711#M622</guid>
      <dc:creator>SatoruGUNJI</dc:creator>
      <dc:date>2011-03-28T05:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase::CreateTable and Table::AddField return -2147467259.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378712#M623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;setlocale shouldn't have any effect on the API behavior. With our latest fix I am able to create a table named with Japanese characters without any problems. I don't get an error when I include setlocale or not. We tested on a Japanese locale machine and verified our fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fix will be included in final.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 15:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378712#M623</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2011-03-28T15:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase::CreateTable and Table::AddField return -2147467259.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378713#M624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having a similar issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've modified FeatureDatasets.cpp file in the sample solution to add a field. And this returns the same error number ( -2147467259) and description "General function error." Can you tell me why I'm getting this error?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
std::wstring oErrDesc;

std::string oFieldXML = "&amp;lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&amp;gt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;esri:Field xmlns:xsi=\"http://www.w3.org/2001/XMLSchema\" xmlns:esri=\"http://www.esri.com/schemas/ArcGIS/10.1\" xsi:type=\"esri:Field\"&amp;gt;" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;Name&amp;gt;StopType2&amp;lt;/Name&amp;gt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;Type&amp;gt;esriFieldTypeSmallInteger&amp;lt;/Type&amp;gt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;IsNullable&amp;gt;true&amp;lt;/IsNullable&amp;gt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;Required&amp;gt;false&amp;lt;/Required&amp;gt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;Editable&amp;gt;true&amp;lt;/Editable&amp;gt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;Length&amp;gt;2&amp;lt;/Length&amp;gt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;Precision&amp;gt;0&amp;lt;/Precision&amp;gt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;Scale&amp;gt;0&amp;lt;/Scale&amp;gt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;AliasName&amp;gt;StopType2&amp;lt;/AliasName&amp;gt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;ModelName&amp;gt;StopType2&amp;lt;/ModelName&amp;gt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;/esri:Field&amp;gt;";

&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((hr = table.AddField(oFieldXML))!= S_OK)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
 FileGDBAPI::ErrorInfo::GetErrorDescription(hr, oErrDesc);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378713#M624</guid>
      <dc:creator>eykim</dc:creator>
      <dc:date>2021-12-11T17:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase::CreateTable and Table::AddField return -2147467259.</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378714#M625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found out what my problem is: my xml was not correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A correct example would be: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;std::string oFieldXML = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&amp;lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; "&amp;lt;esri:Field xmlns:xsi=\"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;\" xmlns:xs=\"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;\" xmlns:esri=\"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.esri.com/schemas/ArcGIS/10.1" rel="nofollow" target="_blank"&gt;http://www.esri.com/schemas/ArcGIS/10.1&lt;/A&gt;&lt;SPAN&gt;\" xsi:type=\"esri:Field\"&amp;gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;Name&amp;gt;night&amp;lt;/Name&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&amp;lt;Type&amp;gt;esriFieldTypeString&amp;lt;/Type&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&amp;lt;IsNullable&amp;gt;true&amp;lt;/IsNullable&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&amp;lt;Length&amp;gt;256&amp;lt;/Length&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&amp;lt;Precision&amp;gt;0&amp;lt;/Precision&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&amp;lt;Scale&amp;gt;0&amp;lt;/Scale&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&amp;lt;AliasName&amp;gt;day&amp;lt;/AliasName&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&amp;lt;ModelName&amp;gt;night&amp;lt;/ModelName&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&amp;lt;DefaultValue xsi:type=\"xs:string\"&amp;gt;noon&amp;lt;/DefaultValue&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "&amp;lt;/esri:Field&amp;gt;";&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 13:03:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/geodatabase-createtable-and-table-addfield-return/m-p/378714#M625</guid>
      <dc:creator>eykim</dc:creator>
      <dc:date>2011-04-28T13:03:38Z</dc:date>
    </item>
  </channel>
</rss>

