<?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 Data type preservation in ADF Copy Activity to Fabric warehouse in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3779883#M2193</link>
    <description>&lt;P&gt;We have grown tired of transforming tables in our Fabric warehouse, and decided to copy all dimension and fact tables from our existing SQL warehouse to Fabric, using Copy Activities in Azure Data Factory through a linked service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have made a generic Copy Activity pipeline, with parameterized table name, and a corresponding copy pipeline with tens of Execute Pipelines invoking the parameterized generic pipeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pipeline is working just as it should, except that all data types in the new table columns in Fabric warehouse are &lt;STRONG&gt;varchar&lt;/STRONG&gt;. How can we dynamically preserve or map datatypes from the SQL tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/copy-activity-schema-and-type-mapping#parameterize-mapping" target="_self"&gt;this&lt;/A&gt;&amp;nbsp;the only way? I have tried with a mapping parameter, and passed a JSON mapping object, but the data type of the relevant columns was not changed in Fabric.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 15:36:33 GMT</pubDate>
    <dc:creator>BiJoe</dc:creator>
    <dc:date>2024-03-20T15:36:33Z</dc:date>
    <item>
      <title>Data type preservation in ADF Copy Activity to Fabric warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3779883#M2193</link>
      <description>&lt;P&gt;We have grown tired of transforming tables in our Fabric warehouse, and decided to copy all dimension and fact tables from our existing SQL warehouse to Fabric, using Copy Activities in Azure Data Factory through a linked service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have made a generic Copy Activity pipeline, with parameterized table name, and a corresponding copy pipeline with tens of Execute Pipelines invoking the parameterized generic pipeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The pipeline is working just as it should, except that all data types in the new table columns in Fabric warehouse are &lt;STRONG&gt;varchar&lt;/STRONG&gt;. How can we dynamically preserve or map datatypes from the SQL tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/azure/data-factory/copy-activity-schema-and-type-mapping#parameterize-mapping" target="_self"&gt;this&lt;/A&gt;&amp;nbsp;the only way? I have tried with a mapping parameter, and passed a JSON mapping object, but the data type of the relevant columns was not changed in Fabric.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 15:36:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3779883#M2193</guid>
      <dc:creator>BiJoe</dc:creator>
      <dc:date>2024-03-20T15:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data type preservation in ADF Copy Activity to Fabric warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3781240#M2198</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451446" data-lia-user-login="BiJoe" class="lia-mention lia-mention-user"&gt;BiJoe&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;Apologies for the issue you have been facing. This is known issue that all varchar is of 8000 characters, when a user copies over data using auto create table option DF. Our internal team&amp;nbsp;is working on this issue but will take time. We do not have a timeline to provide a fix on this issue.&lt;BR /&gt;As a work around, you can create a SQL project, fix any issues and deploy the dacpac targeting to Fabric DW. Once done, the copy activity can copy data with data type intact.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please let me know if you have any further questions.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 04:10:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3781240#M2198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-21T04:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data type preservation in ADF Copy Activity to Fabric warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3781787#M2203</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;thanks for the info. Regarding the Database projects there is this issue:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/General-Discussion/Database-Projects-Statement-CREATE-TABLE-is-not-supported/m-p/3751353#M4939" target="_blank" rel="noopener"&gt;Re: [Database Projects] Statement 'CREATE TABLE' i... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where I can actually see in the CREATE statements for the Fabric warehouse tables that all VARCHAR columns have 8k characters..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: did you mean to say that all VARCHAR columns when using auto create table from ADF copy are transformed to 8k characters, or that &lt;EM&gt;all&lt;/EM&gt; columns are transformed to VARCHAR types? I am experiencing the latter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 07:46:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3781787#M2203</guid>
      <dc:creator>BiJoe</dc:creator>
      <dc:date>2024-03-21T07:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data type preservation in ADF Copy Activity to Fabric warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3782862#M2210</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451446" data-lia-user-login="BiJoe" class="lia-mention lia-mention-user"&gt;BiJoe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I mean to say both.&lt;/P&gt;
&lt;P&gt;Nvarchar(n) -&amp;gt; varchar(8000)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 12:11:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3782862#M2210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-21T12:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data type preservation in ADF Copy Activity to Fabric warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3786776#M2224</link>
      <description>&lt;P&gt;experiencing the same.&lt;/P&gt;&lt;P&gt;to bypass we do this:&lt;/P&gt;&lt;P&gt;- encapsulate casting/converting in a view&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE VIEW dbo.MyViewWithCast
AS
SELECT  
  a = convert(varchar(10), t.a)
  b = convert(varchar(20), t.b)
FROM dbo.Table1 AS t&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- leverage CREATE TABLE AS SELECT in an stored procedure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE TABLE dbo.MyTable
AS
SELECT *
FROM dbo.MyViewWithCasting&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- call the stored procedure from a pipeline activity&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 17:23:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3786776#M2224</guid>
      <dc:creator>R1k91</dc:creator>
      <dc:date>2024-03-22T17:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Data type preservation in ADF Copy Activity to Fabric warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3789638#M2242</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451446" data-lia-user-login="BiJoe" class="lia-mention lia-mention-user"&gt;BiJoe&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&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. Otherwise, will respond back with the more details and we will try to help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 15:46:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3789638#M2242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-25T15:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data type preservation in ADF Copy Activity to Fabric warehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3791937#M2261</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/451446" target="_blank"&gt;@BiJoe&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&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. Otherwise, will respond back with the more details and we will try to help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 16:20:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Data-type-preservation-in-ADF-Copy-Activity-to-Fabric-warehouse/m-p/3791937#M2261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-26T16:20:21Z</dc:date>
    </item>
  </channel>
</rss>

