<?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: [resolved] Insert string from XML to PostgreSQL table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Insert-string-from-XML-to-PostgreSQL-table/m-p/2322684#M92606</link>
    <description>Thanks for you answer. 
&lt;BR /&gt;still doesn't work here... Here is the error message, when Die on Error is checked: 
&lt;BR /&gt; 
&lt;PRE&gt; connecting to socket on port 3778&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tPostgresqlOutput_2&lt;BR /&gt;java.sql.BatchUpdateException: Batch entry 0 INSERT INTO "fetch_gdacs"."gdacs_fetch_eq" ("guid","title","description","image","link","gdas_alertLevel","asgard_alertLevel","runDate","source","magnitude","depth","latitude","longitude","population_100km","iso3") VALUES (EQ_111293,Green earthquake alert Indonesia(M=6) potentially affecting &amp;lt;10000 people.,On 2011-08-22 20:12:20, an earthquake of magnitude 6 and depth 31.3km occurred in Indonesia. This earthquake potentially affected &amp;lt;10000 people.&lt;BR /&gt;			,http://dmarcgis.jrc.it/getmaprest.asp?mapservice=GDACS/gdacsAlertsActiveBG&amp;amp;bboxSR=&amp;amp;layers=show:4,10,11,12,13&amp;amp;layerdefs=4:IDDup=111293;11:NAME='Indonesia'&amp;amp;imageSR=&amp;amp;format=png&amp;amp;transparent=false&amp;amp;dpi=&amp;amp;bbox=88.9852,-10.4095,118.9852,-2.4095&amp;amp;size=200,100&amp;amp;filename=gdacs/eq/eq111293_1.png&amp;amp;f=cache,http://w3.gdacs.org/reports.asp?ID=111293,Green,Green,Mon, 22 Aug 2011 22:26 UTC,NEIC,6.0,31.3,-6.4095,NULL,7049,IDN) was aborted.  Call getNextException to see the cause.&lt;BR /&gt;	at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2537)&lt;BR /&gt;	at org.postgresql.core.v3.QueryExecutorImpl$1.handleError(QueryExecutorImpl.java:403)&lt;BR /&gt;	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1328)&lt;BR /&gt;	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:351)&lt;BR /&gt;	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2674)&lt;BR /&gt;	at talenddemosjava.test_xml_0_1.test_xml.tFileInputXML_2Process(test_xml.java:2321)&lt;BR /&gt;	at talenddemosjava.test_xml_0_1.test_xml.tFileFetch_2Process(test_xml.java:428)&lt;BR /&gt;	at talenddemosjava.test_xml_0_1.test_xml.runJobInTOS(test_xml.java:2561)&lt;BR /&gt;	at talenddemosjava.test_xml_0_1.test_xml.main(test_xml.java:2425)&lt;BR /&gt; disconnected&lt;BR /&gt;Job test_xml ended at 14:50 24/08/2011. &lt;/PRE&gt; 
&lt;BR /&gt;And this is the SQL code to create the table where the new records must be inserted: 
&lt;BR /&gt; 
&lt;PRE&gt;CREATE TABLE fetch_gdacs.gdacs_fetch_eq&lt;BR /&gt;(&lt;BR /&gt;  guid character varying,&lt;BR /&gt;  title character varying,&lt;BR /&gt;  description character varying,&lt;BR /&gt;  image_link character varying,&lt;BR /&gt;  gdas_alertlevel character varying(15),&lt;BR /&gt;  asgard_alertlevel character varying(15),&lt;BR /&gt;  rundate character varying(50),&lt;BR /&gt;  source character varying,&lt;BR /&gt;  magnitude numeric,&lt;BR /&gt;  depth numeric,&lt;BR /&gt;  latitude numeric,&lt;BR /&gt;  longitude numeric,&lt;BR /&gt;  pop_100km integer,&lt;BR /&gt;  iso3166_3 character varying(3)&lt;BR /&gt;)&lt;/PRE&gt; 
&lt;BR /&gt;Any idea?</description>
    <pubDate>Wed, 24 Aug 2011 10:54:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-24T10:54:46Z</dc:date>
    <item>
      <title>[resolved] Insert string from XML to PostgreSQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Insert-string-from-XML-to-PostgreSQL-table/m-p/2322682#M92604</link>
      <description>Dear all, 
&lt;BR /&gt;I am trying to fetch data from a rss feed and to store it in a PostgreSQL database. 
&lt;BR /&gt;Thanks to Shong's answer on my previous request ( 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCpFLCA0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Rss-feed-into-PostgreSQL-database/td-p/100686&lt;/A&gt;) I could start moving forward. 
&lt;BR /&gt;I face now a new issue: the xml file is downloaded, "seen" by the tFileInputXML component, mapped by the tMap, but is not inserted into my database. I suspect that the problem comes from the fact that string values are transmitted to the database without quotations marks. Here is what I get after running the job: 
&lt;BR /&gt; 
&lt;PRE&gt; connecting to socket on port 3675&lt;BR /&gt; connected&lt;BR /&gt;Batch entry 0 INSERT INTO "fetch_gdacs"."gdacs_fetch_eq" ("guid","title","description","image","link","gdas_alertLevel","asgard_alertLevel","runDate","source","magnitude","depth","latitude","longitude","population_100km","iso3") VALUES (EQ_111293,Green earthquake alert Indonesia(M=6) potentially affecting &amp;lt;10000 people.,On 2011-08-22 20:12:20, an earthquake of magnitude 6 and depth 31.3km occurred in Indonesia. This earthquake potentially affected &amp;lt;10000 people.&lt;BR /&gt;			,http://dmarcgis.jrc.it/getmaprest.asp?mapservice=GDACS/gdacsAlertsActiveBG&amp;amp;bboxSR=&amp;amp;layers=show:4,10,11,12,13&amp;amp;layerdefs=4:IDDup=111293;11:NAME='Indonesia'&amp;amp;imageSR=&amp;amp;format=png&amp;amp;transparent=false&amp;amp;dpi=&amp;amp;bbox=88.9852,-10.4095,118.9852,-2.4095&amp;amp;size=200,100&amp;amp;filename=gdacs/eq/eq111293_1.png&amp;amp;f=cache,http://w3.gdacs.org/reports.asp?ID=111293,Green,Green,Mon, 22 Aug 2011 22:26 UTC,NEIC,6.0,31.3,-6.4095,NULL,7049,IDN) was aborted.  Call getNextException to see the cause.&lt;BR /&gt; disconnected&lt;/PRE&gt; 
&lt;BR /&gt;If I try this exact SQL statement in PSQL, it will of course not succeed either... 
&lt;BR /&gt;Thus my question: how can I ensure that my text fields (title, for example) are passed as "Green earthquake alert..." rather than just Green earthquake alert... And, of course, I need to be sure that the quotation marks within a text will be escaped... 
&lt;BR /&gt;Thanks a lot in advance! 
&lt;BR /&gt;Stephane</description>
      <pubDate>Sat, 16 Nov 2024 12:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Insert-string-from-XML-to-PostgreSQL-table/m-p/2322682#M92604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Insert string from XML to PostgreSQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Insert-string-from-XML-to-PostgreSQL-table/m-p/2322683#M92605</link>
      <description>Hi 
&lt;BR /&gt;I can' t reproduce the problem, I can insert the records into database without quotations marks. For testing, check the box 'die on error' on tPostgresOutput component, and show us the error message.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 24 Aug 2011 09:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Insert-string-from-XML-to-PostgreSQL-table/m-p/2322683#M92605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-24T09:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Insert string from XML to PostgreSQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Insert-string-from-XML-to-PostgreSQL-table/m-p/2322684#M92606</link>
      <description>Thanks for you answer. 
&lt;BR /&gt;still doesn't work here... Here is the error message, when Die on Error is checked: 
&lt;BR /&gt; 
&lt;PRE&gt; connecting to socket on port 3778&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tPostgresqlOutput_2&lt;BR /&gt;java.sql.BatchUpdateException: Batch entry 0 INSERT INTO "fetch_gdacs"."gdacs_fetch_eq" ("guid","title","description","image","link","gdas_alertLevel","asgard_alertLevel","runDate","source","magnitude","depth","latitude","longitude","population_100km","iso3") VALUES (EQ_111293,Green earthquake alert Indonesia(M=6) potentially affecting &amp;lt;10000 people.,On 2011-08-22 20:12:20, an earthquake of magnitude 6 and depth 31.3km occurred in Indonesia. This earthquake potentially affected &amp;lt;10000 people.&lt;BR /&gt;			,http://dmarcgis.jrc.it/getmaprest.asp?mapservice=GDACS/gdacsAlertsActiveBG&amp;amp;bboxSR=&amp;amp;layers=show:4,10,11,12,13&amp;amp;layerdefs=4:IDDup=111293;11:NAME='Indonesia'&amp;amp;imageSR=&amp;amp;format=png&amp;amp;transparent=false&amp;amp;dpi=&amp;amp;bbox=88.9852,-10.4095,118.9852,-2.4095&amp;amp;size=200,100&amp;amp;filename=gdacs/eq/eq111293_1.png&amp;amp;f=cache,http://w3.gdacs.org/reports.asp?ID=111293,Green,Green,Mon, 22 Aug 2011 22:26 UTC,NEIC,6.0,31.3,-6.4095,NULL,7049,IDN) was aborted.  Call getNextException to see the cause.&lt;BR /&gt;	at org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2537)&lt;BR /&gt;	at org.postgresql.core.v3.QueryExecutorImpl$1.handleError(QueryExecutorImpl.java:403)&lt;BR /&gt;	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1328)&lt;BR /&gt;	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:351)&lt;BR /&gt;	at org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2674)&lt;BR /&gt;	at talenddemosjava.test_xml_0_1.test_xml.tFileInputXML_2Process(test_xml.java:2321)&lt;BR /&gt;	at talenddemosjava.test_xml_0_1.test_xml.tFileFetch_2Process(test_xml.java:428)&lt;BR /&gt;	at talenddemosjava.test_xml_0_1.test_xml.runJobInTOS(test_xml.java:2561)&lt;BR /&gt;	at talenddemosjava.test_xml_0_1.test_xml.main(test_xml.java:2425)&lt;BR /&gt; disconnected&lt;BR /&gt;Job test_xml ended at 14:50 24/08/2011. &lt;/PRE&gt; 
&lt;BR /&gt;And this is the SQL code to create the table where the new records must be inserted: 
&lt;BR /&gt; 
&lt;PRE&gt;CREATE TABLE fetch_gdacs.gdacs_fetch_eq&lt;BR /&gt;(&lt;BR /&gt;  guid character varying,&lt;BR /&gt;  title character varying,&lt;BR /&gt;  description character varying,&lt;BR /&gt;  image_link character varying,&lt;BR /&gt;  gdas_alertlevel character varying(15),&lt;BR /&gt;  asgard_alertlevel character varying(15),&lt;BR /&gt;  rundate character varying(50),&lt;BR /&gt;  source character varying,&lt;BR /&gt;  magnitude numeric,&lt;BR /&gt;  depth numeric,&lt;BR /&gt;  latitude numeric,&lt;BR /&gt;  longitude numeric,&lt;BR /&gt;  pop_100km integer,&lt;BR /&gt;  iso3166_3 character varying(3)&lt;BR /&gt;)&lt;/PRE&gt; 
&lt;BR /&gt;Any idea?</description>
      <pubDate>Wed, 24 Aug 2011 10:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Insert-string-from-XML-to-PostgreSQL-table/m-p/2322684#M92606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-24T10:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Insert string from XML to PostgreSQL table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Insert-string-from-XML-to-PostgreSQL-table/m-p/2322685#M92607</link>
      <description>Just to let you know that it finally works... I have no idea what I have changed though... Just started again from scratch and it's now fine.
&lt;BR /&gt;Thanks a lot for your help!
&lt;BR /&gt;PS: will mark this post as Resolved, even though I don't know how this issue has been solved &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;</description>
      <pubDate>Wed, 24 Aug 2011 12:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Insert-string-from-XML-to-PostgreSQL-table/m-p/2322685#M92607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-24T12:38:16Z</dc:date>
    </item>
  </channel>
</rss>

