<?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: [Fabric] Dataflow Gen 2: Write from CSV to Delta partitioned Table fails in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/Fabric-Dataflow-Gen-2-Write-from-CSV-to-Delta-partitioned-Table/m-p/4030928#M3346</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770148" data-lia-user-login="FrancescoPwc" class="lia-mention lia-mention-user"&gt;FrancescoPwc&lt;/a&gt;&amp;nbsp; I'd probably start with what&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; suggested. Ensure that the table schema of your query matches the table schema of your destination table. It could be that your lakehouse table expects a date (or other data type) and you're trying to insert a text. Check the definition of your Lakehouse table to see what the table schema is&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 18:17:28 GMT</pubDate>
    <dc:creator>miguel</dc:creator>
    <dc:date>2024-07-08T18:17:28Z</dc:date>
    <item>
      <title>[Fabric] Dataflow Gen 2: Write from CSV to Delta partitioned Table fails</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Fabric-Dataflow-Gen-2-Write-from-CSV-to-Delta-partitioned-Table/m-p/4026951#M3325</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I set up a Dataflow where I read from a csv, add a column X_DATE_REF valued "2024-07-05" and write to a previously created table in lakehouse.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The table is partitioned by column X_DATE_REF STRING.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Dataflow gives an error after running it:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WriteToDataDestination: Mashup Exception Data Format Error Couldn't refresh the entity because of an issue with the mashup document MashupException.Error: DataFormat.Error: We don't support inserting records into a partitioned Delta Lake table when the records might end up in more than one partition. Details: Reason = DataFormat.Error;Microsoft.Data.Mashup.Error.Context = User&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am sure my input data shouldn't end in different partitions because I personally set the column to a fixed value. What is the matter?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 11:05:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Fabric-Dataflow-Gen-2-Write-from-CSV-to-Delta-partitioned-Table/m-p/4026951#M3325</guid>
      <dc:creator>FrancescoPwc</dc:creator>
      <dc:date>2024-07-05T11:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: [Fabric] Dataflow Gen 2: Write from CSV to Delta partitioned Table fails</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Fabric-Dataflow-Gen-2-Write-from-CSV-to-Delta-partitioned-Table/m-p/4029205#M3335</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770148" data-lia-user-login="FrancescoPwc" class="lia-mention lia-mention-user"&gt;FrancescoPwc&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although you mentioned setting columns to fixed values. However, based on the error reporting information you provided, it appears that one of your conversions has a changed type causing the data type to report an error. This is why you are getting the following error: &lt;STRONG&gt;DataFormat.Error;Microsoft.Data.Mashup.Error.Context = User.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You can troubleshoot the error in several ways as follows:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Ensure that the column X_DATE_REF in the CSV is of the same data type as in the table schema and is set to STRING correctly.&lt;/LI&gt;
&lt;LI&gt;Verify the conversion in Dataflow to ensure that no other operation has accidentally changed the value of column X_DATE_REF.&lt;/LI&gt;
&lt;/UL&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;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&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;</description>
      <pubDate>Mon, 08 Jul 2024 03:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Fabric-Dataflow-Gen-2-Write-from-CSV-to-Delta-partitioned-Table/m-p/4029205#M3335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T03:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: [Fabric] Dataflow Gen 2: Write from CSV to Delta partitioned Table fails</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Fabric-Dataflow-Gen-2-Write-from-CSV-to-Delta-partitioned-Table/m-p/4029513#M3338</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;X_DATE_REF is a an added column and it is not present in the csv.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code of the dataflow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = Lakehouse.Contents([]),&lt;BR /&gt;#"Navigation 1" = Source{[workspaceId = "xxxx-xxxx-41bf-xxxx-xxxxx"]}[Data],&lt;BR /&gt;#"Navigation 2" = #"Navigation 1"{[lakehouseId = "xxxx-xxx-xxxx-a6b7-xxxx"]}[Data],&lt;BR /&gt;#"Navigation 3" = #"Navigation 2"{[Id = "Files", ItemKind = "Folder"]}[Data],&lt;BR /&gt;#"Navigation 4" = #"Navigation 3"{[Name = "DataSources"]}[Content],&lt;BR /&gt;#"Navigation 5" = #"Navigation 4"{[Name = "input_csv.csv"]}[Content],&lt;BR /&gt;#"Imported CSV" = Csv.Document(#"Navigation 5", [Delimiter = ";", Columns = 38, QuoteStyle = QuoteStyle.None]),&lt;BR /&gt;#"Promoted headers" = Table.PromoteHeaders(#"Imported CSV", [PromoteAllScalars = true]),&lt;BR /&gt;#"Added custom" = Table.TransformColumnTypes(Table.AddColumn(#"Promoted headers", "X_DATE_REF", each DateTime.ToText(DateTime.LocalNow(), "yyyy-MM-dd")), {{"X_DATE_REF", type text}})&lt;BR /&gt;in&lt;BR /&gt;#"Added custom"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 07:03:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Fabric-Dataflow-Gen-2-Write-from-CSV-to-Delta-partitioned-Table/m-p/4029513#M3338</guid>
      <dc:creator>FrancescoPwc</dc:creator>
      <dc:date>2024-07-08T07:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: [Fabric] Dataflow Gen 2: Write from CSV to Delta partitioned Table fails</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Fabric-Dataflow-Gen-2-Write-from-CSV-to-Delta-partitioned-Table/m-p/4030928#M3346</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="770148" data-lia-user-login="FrancescoPwc" class="lia-mention lia-mention-user"&gt;FrancescoPwc&lt;/a&gt;&amp;nbsp; I'd probably start with what&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; suggested. Ensure that the table schema of your query matches the table schema of your destination table. It could be that your lakehouse table expects a date (or other data type) and you're trying to insert a text. Check the definition of your Lakehouse table to see what the table schema is&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 18:17:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Fabric-Dataflow-Gen-2-Write-from-CSV-to-Delta-partitioned-Table/m-p/4030928#M3346</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-07-08T18:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: [Fabric] Dataflow Gen 2: Write from CSV to Delta partitioned Table fails</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Fabric-Dataflow-Gen-2-Write-from-CSV-to-Delta-partitioned-Table/m-p/4034306#M3380</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="223" data-lia-user-login="miguel" class="lia-mention lia-mention-user"&gt;miguel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the schema of the lakehouse table is as follow (every field is string):&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"col_name": "X_DATE_REF",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "DATA_RIFERIMENTO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "TIMESTAMP_ESTRAZIONE",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "ABI_BANCA",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "SERVIZIO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "RAPPORTO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "CAG_CLIENTE",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "CAG_RISCHIO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "CAG_GRUPPO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "CAG_GRUPPO_RISCHIO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "COD_SAE",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "COD_ATECO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "COD_FINREP",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "COD_TIPO_IMMOBILE_GARANZIA",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "COD_DEST_ECONOMICA_INVEST",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "FLAG_PICCOLA_MEDIA_IMPRESA",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "COD_TIPO_OPERAZIONE",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "COD_TIPO_GARANZIA",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "FLAG_ESCUSSIONE_IN_CORSO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "IMP_SALDO_IAS_FINE_MESE",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "DATA_SCADENZA_MUTUO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "DATA_SCADENZA_GARANZIA",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "NUM_MESI_SCAD_RESIDUA_GARAN",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "IMP_ESCUSSIONE_PERIODO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "COD_GRADO_RISCHIO_FINE_MESE",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "NUM_GIORNI_SCADUTO_FINE_MESE",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "FLAG_RAPP_CONC_FORBORNE",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "COD_STAGE_IFRS9",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "IMP_SVALUTAZ_IMPAIRMENT",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "IMP_IMPATTI_VOCE140_PERIODO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "FLAG_PRESENZA_GARANZIA_COVID",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "IMP_GARANZIA_COVID",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "PERC_COPERTURA_GARANZIA",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "DATA_INGRESSO_DEFAULT",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "DATA_PRIMA_LIQUIDAZIONE",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "IMP_INTERESSI_PERIODO_IAS",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "IMP_INTERESSI_ANNO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "IMP_SPESE_RATA_DATA_RIF_ANNO",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"col_name": "IMP_RISK_WEIGHTED_ASSETS",&lt;BR /&gt;"data_type": "string",&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also in Dataflow every field in the preview is a string:&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>Wed, 10 Jul 2024 09:49:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Fabric-Dataflow-Gen-2-Write-from-CSV-to-Delta-partitioned-Table/m-p/4034306#M3380</guid>
      <dc:creator>FrancescoPwc</dc:creator>
      <dc:date>2024-07-10T09:49:33Z</dc:date>
    </item>
  </channel>
</rss>

