<?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: How to write String to Postgres as JSONB? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514380#M147471</link>
    <description>&lt;P&gt;I could fix the Problem:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The database transaction required a commit, because the changes were never actually made before.&lt;BR /&gt;So setting a tDBCommit at the end solved it. The transformation to jsonb works just as you described it.&lt;/P&gt;
&lt;P&gt;Thank you for your support in finding the problem.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Apr 2025 07:22:40 GMT</pubDate>
    <dc:creator>Nesuark</dc:creator>
    <dc:date>2025-04-15T07:22:40Z</dc:date>
    <item>
      <title>How to write String to Postgres as JSONB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514244#M147461</link>
      <description>&lt;P&gt;Hallo,&lt;/P&gt;
&lt;P&gt;I try to load&amp;nbsp; data via the tJiraInput to my Postgres DB. But the data is not loading to Postgres, what am i missing?&lt;/P&gt;
&lt;P&gt;I created the table in Postgres with:&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Consolas'; font-size: 10pt; white-space: pre;"&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;CREATE&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt; &lt;SPAN&gt;talend_jira&lt;/SPAN&gt;.&lt;SPAN&gt;jira_issues_raw&lt;/SPAN&gt; (&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;json&lt;/SPAN&gt; &lt;SPAN&gt;JSONB&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;and in Talend i try to CAST the string to json, but i can't get any data into my Database.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 12:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514244#M147461</guid>
      <dc:creator>Nesuark</dc:creator>
      <dc:date>2025-04-14T12:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to write String to Postgres as JSONB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514247#M147462</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/335156"&gt;@Nesuark&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently helped someone with the same issue here :&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Talend-Studio/insert-JSONB-in-Postgresql/m-p/2508375#M141825" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Talend-Studio/insert-JSONB-in-Postgresql/m-p/2508375#M141825&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'll copy and paste it here in case the other topic get deleted :&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;You need to start setting up the desired column in Talend to "string"&lt;/P&gt;&lt;P&gt;Then in your&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;tDBOutput&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;go to Advanced Settings&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quentinvigne_0-1744633102773.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179606iCF66162D8DCA04FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="quentinvigne_0-1744633102773.png" alt="quentinvigne_0-1744633102773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Additional Column&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;add a new value with the same name as your output column :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quentinvigne_1-1744633102420.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179605iA48D132FD9A1BA2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="quentinvigne_1-1744633102420.png" alt="quentinvigne_1-1744633102420.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;SQL Expression&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;add :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"?::json"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This help convert your string to json. We use "?" because it's a pattern matching character.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Position&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;select Replace and in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Reference column&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;select the output column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we say that your json string is "abcdef" then Talend will output your data it will look like this :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;INSERT INTO table VALUES ("abcdef"::json)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Quentin&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 12:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514247#M147462</guid>
      <dc:creator>quentin-vigne</dc:creator>
      <dc:date>2025-04-14T12:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to write String to Postgres as JSONB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514253#M147463</link>
      <description>&lt;P&gt;Thanks for the reply, but i already saw your post. &lt;BR /&gt;Thats why I am not sure what i am missing here.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 12:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514253#M147463</guid>
      <dc:creator>Nesuark</dc:creator>
      <dc:date>2025-04-14T12:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to write String to Postgres as JSONB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514258#M147464</link>
      <description>&lt;P&gt;Can you screenshot your tDBOutput setup to make sure everything is setup correctly ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Quentin&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 13:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514258#M147464</guid>
      <dc:creator>quentin-vigne</dc:creator>
      <dc:date>2025-04-14T13:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to write String to Postgres as JSONB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514261#M147465</link>
      <description>&lt;P&gt;Of course, let me know if you need more Information.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nesuark_0-1744636863260.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179610iE4F3EF5DBBA23A4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nesuark_0-1744636863260.png" alt="Nesuark_0-1744636863260.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nesuark_1-1744636912627.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179611iC7A10148A64D0D99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nesuark_1-1744636912627.png" alt="Nesuark_1-1744636912627.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 13:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514261#M147465</guid>
      <dc:creator>Nesuark</dc:creator>
      <dc:date>2025-04-14T13:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to write String to Postgres as JSONB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514273#M147466</link>
      <description>&lt;P&gt;Does your tDBOutput schema look like this ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quentinvigne_0-1744641810820.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179612i0E64129C6B754EB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="quentinvigne_0-1744641810820.png" alt="quentinvigne_0-1744641810820.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;"json" column as string to "json" output column as string ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, try to use the option "Create table if not exists" in tDBOutput and drop your table to see if it work (it might create it as a string column) -&amp;gt; This way we can see if the component is the problem or if it's more database related.&lt;/P&gt;&lt;P&gt;And maybe try something else instead of "?::json" do "?::jsonb"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is an error message can you share it ? Try to activate log-level info to get more from Talend&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Quentin&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 14:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514273#M147466</guid>
      <dc:creator>quentin-vigne</dc:creator>
      <dc:date>2025-04-14T14:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write String to Postgres as JSONB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514380#M147471</link>
      <description>&lt;P&gt;I could fix the Problem:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The database transaction required a commit, because the changes were never actually made before.&lt;BR /&gt;So setting a tDBCommit at the end solved it. The transformation to jsonb works just as you described it.&lt;/P&gt;
&lt;P&gt;Thank you for your support in finding the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 07:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514380#M147471</guid>
      <dc:creator>Nesuark</dc:creator>
      <dc:date>2025-04-15T07:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to write String to Postgres as JSONB?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514383#M147472</link>
      <description>&lt;P&gt;You can add a tDBCommit or you can also check the "Auto commit" inside advanced parameters of the tDBConnection if you don't want to have to commit everytime you use a connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Quentin&lt;/P&gt;</description>
      <pubDate>Tue, 15 Apr 2025 07:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-write-String-to-Postgres-as-JSONB/m-p/2514383#M147472</guid>
      <dc:creator>quentin-vigne</dc:creator>
      <dc:date>2025-04-15T07:41:37Z</dc:date>
    </item>
  </channel>
</rss>

