<?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: Create schema from ODBC source in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-schema-from-ODBC-source/m-p/2300596#M72809</link>
    <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Exception in component tPostgresqlOutput_1&lt;BR /&gt;org.postgresql.util.PSQLException: ERROR: length for type varchar must be at least 1&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;When you define the schema, you must specify the length of field if you want to create the table.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Wed, 06 Jan 2010 05:55:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-01-06T05:55:12Z</dc:date>
    <item>
      <title>Create schema from ODBC source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-schema-from-ODBC-source/m-p/2300594#M72807</link>
      <description>Hi&lt;BR /&gt;I am very new to Talend and would appreciate some guidance. &lt;BR /&gt;I am trying to extract an entire database from an ODBC data source and load it into Postgres. I do not have the schema for the ODBC database but was hoping there was a way for Talend to create and load the database in Postgres automatically based on the ODBC data/schema. Talend has no problem reading the ODBC source, seeing the schema and extracting the data into a flat file. However from what I can tell, Talend expects the Postgres database to already have the database and schema created for the load process.&lt;BR /&gt;Is this possible?&lt;BR /&gt;Any other suggestions on how to achieve this?&lt;BR /&gt;Thanks&lt;BR /&gt;O</description>
      <pubDate>Sat, 16 Nov 2024 13:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-schema-from-ODBC-source/m-p/2300594#M72807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create schema from ODBC source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-schema-from-ODBC-source/m-p/2300595#M72808</link>
      <description>Hi
&lt;BR /&gt;After some more playing around with the Talend interface I have seen there is the option to create the table on the target database, which is what I am trying to achieve.
&lt;BR /&gt;I first tested the load by creating the exact same table in postgres and setting Talend to just insert the data. This worked without any errors. 
&lt;BR /&gt;However, when I choose either "create table" or "drop and create table" for the postgres component, I get the following error. 
&lt;BR /&gt;Exception in component tPostgresqlOutput_1
&lt;BR /&gt;org.postgresql.util.PSQLException: ERROR: length for type varchar must be at least 1
&lt;BR /&gt;Any help would be appreciated.
&lt;BR /&gt;Thanks
&lt;BR /&gt;O</description>
      <pubDate>Wed, 06 Jan 2010 05:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-schema-from-ODBC-source/m-p/2300595#M72808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T05:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create schema from ODBC source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-schema-from-ODBC-source/m-p/2300596#M72809</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Exception in component tPostgresqlOutput_1&lt;BR /&gt;org.postgresql.util.PSQLException: ERROR: length for type varchar must be at least 1&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;When you define the schema, you must specify the length of field if you want to create the table.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 06 Jan 2010 05:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-schema-from-ODBC-source/m-p/2300596#M72809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T05:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create schema from ODBC source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-schema-from-ODBC-source/m-p/2300597#M72810</link>
      <description>Thanks for the reply shong. 
&lt;BR /&gt;I was hoping that Talend could create the target table on the fly based on the input schema. Correct me if I am wrong but what you are suggesting is that I create a schema for the target database which would negate what I am trying to achieve. 
&lt;BR /&gt;There is one other thing now that you mention field length. The fields from the input schema have no lengths. For example, the "STREET" column in the "ADDRESS" table has a DBTYPE=CHAR, TYPE=STRING and LENGTH=blank. Whould I need to edit each one of the Length fields in order for the target table to be created successfully? 
&lt;BR /&gt;Thanks again 
&lt;BR /&gt;O.</description>
      <pubDate>Wed, 06 Jan 2010 08:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-schema-from-ODBC-source/m-p/2300597#M72810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T08:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create schema from ODBC source</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-schema-from-ODBC-source/m-p/2300598#M72811</link>
      <description>Hello 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Whould I need to edit each one of the Length fields in order for the target table to be created successfully?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Yes, you must add a length for each field if want to create the target table on the fly based on the output schema.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 06 Jan 2010 08:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-schema-from-ODBC-source/m-p/2300598#M72811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-06T08:25:48Z</dc:date>
    </item>
  </channel>
</rss>

