<?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>question Replace Null with white space for not-null column in Oracle table in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Replace-Null-with-white-space-for-not-null-column-in-Oracle/m-p/392734#M248228</link>
    <description>&lt;P&gt;Hello, I want to copy record from one table to another table that has the same structure in Oracle 12c+.&lt;/P&gt;&lt;P&gt;One not-null column in source has white space. When trying to insert record to the target table, I got error "cannot insert NULL", so I added UpdateRecord processor to replace Null with white space, but still have the same error.&lt;/P&gt;&lt;P&gt;It works if I replace Null with any other character like "_". Is there any way to keep white space when inserting to the target table?&lt;/P&gt;&lt;P&gt;Below is my Flowfile and the UpdateRecord properties. Thank you&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-28 194121.png" style="width: 389px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41572i5F8F957F11332A2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-08-28 194121.png" alt="Screenshot 2024-08-28 194121.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-28 194135.png" style="width: 872px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41573iE29B84C1D701729C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-08-28 194135.png" alt="Screenshot 2024-08-28 194135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 23:56:32 GMT</pubDate>
    <dc:creator>xtd</dc:creator>
    <dc:date>2024-08-28T23:56:32Z</dc:date>
    <item>
      <title>Replace Null with white space for not-null column in Oracle table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Null-with-white-space-for-not-null-column-in-Oracle/m-p/392734#M248228</link>
      <description>&lt;P&gt;Hello, I want to copy record from one table to another table that has the same structure in Oracle 12c+.&lt;/P&gt;&lt;P&gt;One not-null column in source has white space. When trying to insert record to the target table, I got error "cannot insert NULL", so I added UpdateRecord processor to replace Null with white space, but still have the same error.&lt;/P&gt;&lt;P&gt;It works if I replace Null with any other character like "_". Is there any way to keep white space when inserting to the target table?&lt;/P&gt;&lt;P&gt;Below is my Flowfile and the UpdateRecord properties. Thank you&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-28 194121.png" style="width: 389px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41572i5F8F957F11332A2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-08-28 194121.png" alt="Screenshot 2024-08-28 194121.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-08-28 194135.png" style="width: 872px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41573iE29B84C1D701729C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-08-28 194135.png" alt="Screenshot 2024-08-28 194135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 23:56:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Null-with-white-space-for-not-null-column-in-Oracle/m-p/392734#M248228</guid>
      <dc:creator>xtd</dc:creator>
      <dc:date>2024-08-28T23:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Null with white space for not-null column in Oracle table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Null-with-white-space-for-not-null-column-in-Oracle/m-p/392854#M248274</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/115264"&gt;@xtd&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I did not try this but I think what is happening is that when you call the PutDatabaseRecord using CSVReader it doesnt differentiate null and empty string value and it will assume the later is also null and that is why you get the error. Have you tried converting csv into json and then do update record to see if that makes any difference? Another option is to use PutSql so that you can write your own sql but this would be cumbersome in case you have many fields.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 13:24:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Null-with-white-space-for-not-null-column-in-Oracle/m-p/392854#M248274</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-08-30T13:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Null with white space for not-null column in Oracle table</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Replace-Null-with-white-space-for-not-null-column-in-Oracle/m-p/392858#M248276</link>
      <description>&lt;P&gt;Thank you so much, it works perfectly&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 14:54:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Replace-Null-with-white-space-for-not-null-column-in-Oracle/m-p/392858#M248276</guid>
      <dc:creator>xtd</dc:creator>
      <dc:date>2024-08-30T14:54:27Z</dc:date>
    </item>
  </channel>
</rss>

