<?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: Lakehouse table datatypes in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Lakehouse-table-datatypes/m-p/4130249#M5233</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="787733" data-lia-user-login="Soobramoney" class="lia-mention lia-mention-user"&gt;Soobramoney&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this type of problem, you can make sure that the columns are defined with the correct data types when you create a new table, and allow null values if necessary.&lt;/P&gt;
&lt;P&gt;The following demonstrates the successful insertion of a NULL value in a table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CREATE TABLE [NullCheck1]
(
    col1 int not null,
    col2 VARCHAR(30) NULL,
    col3 VARCHAR(30) not NULL,
    col4 int NULL
)
GO


INSERT INTO [NullCheck1] VALUES (3,NULL,'NA',NULL)


select * from  [dbo].[NullCheck1]&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2024 02:53:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-03T02:53:29Z</dc:date>
    <item>
      <title>Lakehouse table datatypes</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Lakehouse-table-datatypes/m-p/4129452#M5223</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Fabric Lakehouse table that contains all string data types. I need to load the data into a new table with the correct data types. When I use the copy data activity, I receive an error message stating that null values in string columns cannot be inserted into an int column. How can I update these columns with actual null values, or is there an easier way to load the data with the correct data types?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 11:20:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Lakehouse-table-datatypes/m-p/4129452#M5223</guid>
      <dc:creator>Soobramoney</dc:creator>
      <dc:date>2024-09-02T11:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lakehouse table datatypes</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Lakehouse-table-datatypes/m-p/4130249#M5233</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="787733" data-lia-user-login="Soobramoney" class="lia-mention lia-mention-user"&gt;Soobramoney&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this type of problem, you can make sure that the columns are defined with the correct data types when you create a new table, and allow null values if necessary.&lt;/P&gt;
&lt;P&gt;The following demonstrates the successful insertion of a NULL value in a table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CREATE TABLE [NullCheck1]
(
    col1 int not null,
    col2 VARCHAR(30) NULL,
    col3 VARCHAR(30) not NULL,
    col4 int NULL
)
GO


INSERT INTO [NullCheck1] VALUES (3,NULL,'NA',NULL)


select * from  [dbo].[NullCheck1]&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 02:53:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Lakehouse-table-datatypes/m-p/4130249#M5233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-03T02:53:29Z</dc:date>
    </item>
  </channel>
</rss>

