<?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: Oracle SQL Connector is converting whitespace to NULL in Update/Insert/Upsert in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/oracle-sql-connector-is-converting-whitespace-to-null-in-update/m-p/7024#M3032</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks Shivakumara&amp;nbsp;, for responding.&lt;BR /&gt;&lt;BR /&gt;I am not passing an empty string ("") but a single whitespace character (" " with a length of 1). This approach works fine in SQL Script/Developer. However, the Workato Oracle connector does not respect the whitespace (default value) and passes null.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 14:10:33 GMT</pubDate>
    <dc:creator>sgud</dc:creator>
    <dc:date>2024-07-05T14:10:33Z</dc:date>
    <item>
      <title>Oracle SQL Connector is converting whitespace to NULL in Update/Insert/Upsert</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/oracle-sql-connector-is-converting-whitespace-to-null-in-update/m-p/7017#M3029</link>
      <description>&lt;P&gt;Hi memrbers,&lt;/P&gt;&lt;P&gt;The Workato connector for Oracle SQL is converting whitespace to NULL values when inserting, updating, or upserting data into a table.&lt;/P&gt;&lt;P&gt;Specifically, this column (e_mail_address, char (60) ) is defined as NOT NULL in the table schema, and it is part of a legacy system that cannot be modified easily.&lt;/P&gt;&lt;P&gt;To work around this limitation, we are using whitespace (" ") with length 1 as a placeholder.&lt;/P&gt;&lt;P&gt;Workato currently converts both NULL and empty strings (e.g., CAST(NULL AS CHAR(60))) to NULL values, which aligns with Oracle’s handling of empty or NULL values.&lt;BR /&gt;But whitespace, it should cast it as : CAST(' ' AS CHAR(60)) to preserve the input value. But right now it is casting as NULL which is failing the (NOT NULL) constraint on the table.&lt;/P&gt;&lt;P&gt;Is it a bug in the Oracle SQL Connector? Is there a workaround to prevent this?&lt;/P&gt;&lt;P&gt;Additional details:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Oracle table definition:&lt;BR /&gt;&lt;EM&gt;CREATE TABLE "FIN"."VENDOREMAIL" &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;( &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"VENDOR" CHAR(9 BYTE) NOT NULL ENABLE, &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"E_MAIL_ADDRESS" CHAR(60 BYTE) NOT NULL ENABLE&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;) &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ALTER TABLE "FIN"."VENDOREMAIL" ADD CONSTRAINT "VENDOR_PK" PRIMARY KEY ("VENDOR")&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Input Json in update step:&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; "table": "FIN.VENDOREMAIL", &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; "columns": &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{ &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "e_mail_address": " " &lt;STRONG&gt;******email is a whitespace (length 1) &lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }, &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; "where": "vendor = '12345'" &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;} &lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Sql Generated in Update step:&lt;BR /&gt;&lt;EM&gt;UPDATE "FIN"."VENDOREMAIL" &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SET "E_MAIL_ADDRESS" = CAST(NULL AS CHAR(60)) &lt;STRONG&gt;****** casting empty space as null and leading to below error&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WHERE vendor = '12345'&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;OPA error: Error : 1407, Position : 32 Error Msg = ORA-01407: cannot update ("FIN"."VENDOREMAIL"."E_MAIL_ADDRESS") to NULL&lt;BR /&gt;&lt;BR /&gt;#Oracle, #PL/SQL&lt;BR /&gt;&lt;BR /&gt;Respectfully,&lt;BR /&gt;-SG&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 04 Jul 2024 05:56:34 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/oracle-sql-connector-is-converting-whitespace-to-null-in-update/m-p/7017#M3029</guid>
      <dc:creator>sgud</dc:creator>
      <dc:date>2024-07-04T05:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SQL Connector is converting whitespace to NULL in Update/Insert/Upsert</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/oracle-sql-connector-is-converting-whitespace-to-null-in-update/m-p/7023#M3031</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10723"&gt;@sgud&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Since you have created table with "NOT NULL" constraint, hence email address always expects some values&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;The Oracle database does not support empty string values in text columns&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Either you can decide what should be the default value to be passed instead of Empty values.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Shivakumara Avadhani&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 10:09:45 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/oracle-sql-connector-is-converting-whitespace-to-null-in-update/m-p/7023#M3031</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2024-07-05T10:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SQL Connector is converting whitespace to NULL in Update/Insert/Upsert</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/oracle-sql-connector-is-converting-whitespace-to-null-in-update/m-p/7024#M3032</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks Shivakumara&amp;nbsp;, for responding.&lt;BR /&gt;&lt;BR /&gt;I am not passing an empty string ("") but a single whitespace character (" " with a length of 1). This approach works fine in SQL Script/Developer. However, the Workato Oracle connector does not respect the whitespace (default value) and passes null.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 14:10:33 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/oracle-sql-connector-is-converting-whitespace-to-null-in-update/m-p/7024#M3032</guid>
      <dc:creator>sgud</dc:creator>
      <dc:date>2024-07-05T14:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SQL Connector is converting whitespace to NULL in Update/Insert/Upsert</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/oracle-sql-connector-is-converting-whitespace-to-null-in-update/m-p/7027#M3033</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10723"&gt;@sgud&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I m just curious on which connector do you use for this task?&amp;nbsp; I tried with below inbuilt connector of Workato i.e&amp;nbsp;&lt;/P&gt;&lt;P&gt;which will help in doing it from my end.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Shivakumara Avadhani&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SQL.png" style="width: 190px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1417i2FB6AD413703B246/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="SQL.png" alt="SQL.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 05:31:28 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/oracle-sql-connector-is-converting-whitespace-to-null-in-update/m-p/7027#M3033</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2024-07-08T05:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle SQL Connector is converting whitespace to NULL in Update/Insert/Upsert</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/oracle-sql-connector-is-converting-whitespace-to-null-in-update/m-p/7161#M3095</link>
      <description>&lt;P&gt;shivakumara,&lt;/P&gt;&lt;P&gt;I am using Oracle connector and upsert action.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is the documentation link:&amp;nbsp;&lt;A href="https://docs.workato.com/connectors/oracle/upsert.html#upsert-row" target="_blank" rel="noopener"&gt;https://docs.workato.com/connectors/oracle/upsert.html#upsert-row&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oracle upsert" style="width: 211px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1454i18657C2AE34C3F31/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="workato-oracle-connector-2.PNG" alt="oracle upsert" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;oracle upsert&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 19:52:54 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/oracle-sql-connector-is-converting-whitespace-to-null-in-update/m-p/7161#M3095</guid>
      <dc:creator>sgud</dc:creator>
      <dc:date>2024-07-25T19:52:54Z</dc:date>
    </item>
  </channel>
</rss>

