<?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: Add new column in Data Pipeline source as Date type in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4265407#M6151</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not working. I've set Date format as I have specified in formatDateTime function&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;and if I check the destination table, the filed is still in string format:&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, 31 Oct 2024 10:49:03 GMT</pubDate>
    <dc:creator>amaaiia</dc:creator>
    <dc:date>2024-10-31T10:49:03Z</dc:date>
    <item>
      <title>Add new column in Data Pipeline source as Date type</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4264259#M6135</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to write some data with COPY activity into a lakehouse. I need to add a customized column to Destination lakehouse table. This column is a date. However, when I write it in the lakehouse table, it's written as string. How can I set this column to date type? I've tried with formating the value to datetime:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;{formatDateTime(item().&lt;/SPAN&gt;&lt;SPAN&gt;file_date&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'yyyy-MM-dd'&lt;/SPAN&gt;&lt;SPAN&gt;)}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But it still writes it as string.&lt;/P&gt;&lt;P&gt;Please don't tell me to set the column type in Mapping tab, because this Data Pipeline is going to be used with diferent sources, that is, different schemas. So I can't specify a fixed data schema.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 16:10:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4264259#M6135</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2024-10-30T16:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column in Data Pipeline source as Date type</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4264698#M6144</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="686932" data-lia-user-login="amaaiia" class="lia-mention lia-mention-user"&gt;amaaiia&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems difficult to achieve your purpose in the pipeline. I recommend that you do this in dataflow. It is more convenient to clean and transform data in dataflow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After connecting to the data source in dataflow, you can add custom date columns.&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;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set the destination as lakehouse.&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;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&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;</description>
      <pubDate>Thu, 31 Oct 2024 02:02:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4264698#M6144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-31T02:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column in Data Pipeline source as Date type</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4264993#M6146</link>
      <description>&lt;P&gt;I did not test this myself, but in the Mapping settings, you are able to set the 'Type conversation settings'. This does not require a fixed data schema, but allows you to set a date string format that should be read as a date type. If you set the 'Date format' to "yyyy-MM-dd" in combination with your already formatted date string @{formatDateTime(item().file_date,'yyyy-MM-dd')}, it may work. Here is the documentation: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/data-type-mapping" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-factory/data-type-mapping&lt;/A&gt;.&lt;BR /&gt;Do note that not all sources are supported. The list of supported items is in the link.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 06:24:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4264993#M6146</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2024-10-31T06:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column in Data Pipeline source as Date type</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4265407#M6151</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Not working. I've set Date format as I have specified in formatDateTime function&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;and if I check the destination table, the filed is still in string format:&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, 31 Oct 2024 10:49:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4265407#M6151</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2024-10-31T10:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column in Data Pipeline source as Date type</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4265409#M6152</link>
      <description>&lt;P&gt;Just to be sure, did you drop the table before running with this new setting?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 10:54:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4265409#M6152</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2024-10-31T10:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column in Data Pipeline source as Date type</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4265427#M6154</link>
      <description>&lt;P&gt;I need to develop this use case with Data pipeline because I need to parameterize all the flow. DFg2 is not good to work with parameters. I need to ingest some tables provided in a warehouse as master data, so I need to iterate through each row of the warehouse to ingest each table specified in the warehouse table. The destination tables, the source, the schemas... of each table is different. Is difficult to develop this in a dataflow.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 11:08:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Add-new-column-in-Data-Pipeline-source-as-Date-type/m-p/4265427#M6154</guid>
      <dc:creator>amaaiia</dc:creator>
      <dc:date>2024-10-31T11:08:57Z</dc:date>
    </item>
  </channel>
</rss>

