<?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: Exclude All Null Column in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3498713#M889</link>
    <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this is just my opinion on this, but you could write from the source database directly to the Lakehouse Files section (your raw/bronze layer).&amp;nbsp; That would mean that any new columns/altered columns in the source will just get automatically written to Parquet files in the lakehouse files section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue as you've discovered is that there is no auto-update on the azure sql database table schema, you'd have to either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;drop and recreate the table in the azure sql database using a pre-copy script in the copy data task and set the auto-create table option on (this will of course delete the data from the azure sql db)&lt;/LI&gt;&lt;LI&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;for each table, pass in a sql statement that only included the columns you want into the copy data task&lt;/LI&gt;&lt;LI&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could go one step further and just write the source data to the lakehouse tables and use Overwrite (although it does "overwrite" the data in the destination table, although keeps history using delta versioning).&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2023 11:08:19 GMT</pubDate>
    <dc:creator>AndyDDC</dc:creator>
    <dc:date>2023-10-26T11:08:19Z</dc:date>
    <item>
      <title>Exclude All Null Column</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3498394#M885</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building a pipeline that copies some tables from one Database and plonks it into an Azurew SQL Database, in which I can then save the tables into a Lakehouse as Parquet files. My pipeline is currently failing, with the following error code at the Copy Each Table point:&amp;nbsp;&lt;/P&gt;&lt;H6&gt;&lt;BR /&gt;Details: Activity failed because an inner activity failed; Inner activity name: Save Table to SQL Database, Error: Failure happened on 'destination' side. ErrorCode=UserErrorInvalidColumnName,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The column LandscapePreviewImageTitle is not found in target side,Source=Microsoft.DataTransfer.ClientLibrary,'&lt;BR /&gt;&lt;BR /&gt;&lt;/H6&gt;&lt;P&gt;After investigating, it turns out that a new column has been added to a table and the column contains all Null values. I have set the pipeline up to be dynamic (in the sense that regardless of table changes, it should still work).How would I go about excluding columns that have all null values?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be really appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 08:56:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3498394#M885</guid>
      <dc:creator>heastham</dc:creator>
      <dc:date>2023-10-26T08:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude All Null Column</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3498618#M886</link>
      <description>&lt;P&gt;Just to confirm,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is this a Fabric Data Pipeline? (e.g. not a data factory pipeline)&lt;/LI&gt;&lt;LI&gt;The first Copy Data task populates a list of available tables for import?&lt;/LI&gt;&lt;LI&gt;The For Each contains the copy task to move the data from the source database to the azure sql database, and then from the Azure SQL db to the Lakehouse?&lt;/LI&gt;&lt;LI&gt;Has the new column been added to the source database that you're loading from?&lt;/LI&gt;&lt;LI&gt;The For Each is failing because the new column doesn't exist downstream in the Azure SQL database?&lt;/LI&gt;&lt;LI&gt;Is there a reason why you're not writing directly to the Lakehouse from the source database (eg cut out the azure sql db)?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 26 Oct 2023 10:49:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3498618#M886</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2023-10-26T10:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude All Null Column</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3498666#M887</link>
      <description>&lt;P&gt;Just a thought, but if you use the &lt;STRONG&gt;Overwrite &lt;/STRONG&gt;option when writing to a Lakehouse table (not Files as the schema could evolve anyway if you were just writing parquet files) then that will evolve the schema of the lakehouse table automatically when source columns get added to the source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if that could help in your situation?&amp;nbsp; Overwrite would replace the data downstream with the latest incoming so not sure if that's what you want&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 10:57:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3498666#M887</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2023-10-26T10:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude All Null Column</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3498667#M888</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="265587" data-lia-user-login="AndyDDC" class="lia-mention lia-mention-user"&gt;AndyDDC&lt;/a&gt;&amp;nbsp;, thanks for responding!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In answer to your bullet points:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The first Copy Data task populates a list of available tables for import?&lt;BR /&gt;&lt;EM&gt;Yes, it runs through and lists out all of the tables for import. The table in question shows up in this step.&amp;nbsp;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;The For Each contains the copy task to move the data from the source database to the azure sql database, and then from the Azure SQL db to the Lakehouse?&lt;BR /&gt;&lt;EM&gt;Yes, it sends a copy of the data to the Azure database and then from there to the Lakehouse as Parquet files.&amp;nbsp;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Has the new column been added to the source database that you're loading from?&lt;BR /&gt;&lt;EM&gt;Yes, the new column was added to the source database last week, but it wasn't communicated that it was being added so we only found out about it through the pipeline breaking.&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;The For Each is failing because the new column doesn't exist downstream in the Azure SQL database?&lt;BR /&gt;&lt;EM&gt;I believe so, but I'm not sure how to go about fixing this step as there is no explicit mapping to the source to be able to define the column or data type. I think this is the step that I'm just not getting my head around. I'm still getting to grasps with it all as I'm an analyst by trade but having to fill in until we get a proper engineer so trying my best until then&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Is there a reason why you're not writing directly to the Lakehouse from the source database (eg cut out the azure sql db)?&lt;BR /&gt;&lt;EM&gt;We're building to a medallion architecture so the parquet files will give us some flexibility when applying transformations for the 'Silver Layer'. Definitely more than happy to listen to any suggestions if there are better ways of doing it.&amp;nbsp;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 26 Oct 2023 10:51:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3498667#M888</guid>
      <dc:creator>heastham</dc:creator>
      <dc:date>2023-10-26T10:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude All Null Column</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3498713#M889</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this is just my opinion on this, but you could write from the source database directly to the Lakehouse Files section (your raw/bronze layer).&amp;nbsp; That would mean that any new columns/altered columns in the source will just get automatically written to Parquet files in the lakehouse files section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue as you've discovered is that there is no auto-update on the azure sql database table schema, you'd have to either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;drop and recreate the table in the azure sql database using a pre-copy script in the copy data task and set the auto-create table option on (this will of course delete the data from the azure sql db)&lt;/LI&gt;&lt;LI&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;for each table, pass in a sql statement that only included the columns you want into the copy data task&lt;/LI&gt;&lt;LI&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could go one step further and just write the source data to the lakehouse tables and use Overwrite (although it does "overwrite" the data in the destination table, although keeps history using delta versioning).&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 11:08:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3498713#M889</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2023-10-26T11:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude All Null Column</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3504476#M907</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="637065" data-lia-user-login="heastham" class="lia-mention lia-mention-user"&gt;heastham&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN&gt;We haven’t heard from you on the last response and was just checking back to see if your query got resolved. Please let us know if you have any further queries.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 11:43:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3504476#M907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-30T11:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude All Null Column</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3504511#M908</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;- I've been frozen out of the fatory for the past few days due to 'capacity' issues. We don't have nearly enough data for this to even be a problem yet so I'm logging a ticket currently with Microsoft to see what the issue is. Once I'm successfully back in then I can attempt the solutions given above. Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 12:01:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3504511#M908</guid>
      <dc:creator>heastham</dc:creator>
      <dc:date>2023-10-30T12:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude All Null Column</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3504554#M909</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="637065" data-lia-user-login="heastham" class="lia-mention lia-mention-user"&gt;heastham&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for the update.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 12:20:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Exclude-All-Null-Column/m-p/3504554#M909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-30T12:20:08Z</dc:date>
    </item>
  </channel>
</rss>

