Forum Discussion
Dataflow Gen2 to Warehouse - Date Column Type Mismatch Error
Hello Fabric Community,
I'm encountering a persistent error when trying to write a simple date column from Dataflow Gen2 to a new Warehouse table. Despite multiple attempts to enforce the correct data type, I keep getting a type mismatch error.
Error Details:
'Couldn't refresh the entity because of an issue with the mashup document MashupException.Error:
We can't update the table. The type of column 'Import_Date' doesn't match the type of the column in the table.
Details: Reason = Expression.Error; ErrorCode = 10557;
Reproductions Steps:
Dataflow Gen2 Query:
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjIwMtI3MNU3MFGKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
#"Changed column type" = Table.TransformColumnTypes(Source, {{"Column1", type date}})
in
#"Changed column type"
Destination Settings:
Warehouse: New table
Update Method: Replace
Schema: Fixed
Column Mapping: Column1 (Date → Date)
What I've Tried:
- Simplified the query to use #date() hardcoded values
- Explicitly converted dates to text (yyyy-MM-dd) and back to type date
- Used locale-invariant parsing ("en-US")
- Verified schema with Table.Schema() (shows type date)
Questions:
Is there a known issue with Dataflow Gen2 writing type date to Warehouse tables?
Are there additional settings required in the Warehouse destination?
Could this be related to regional settings or service updates?
Any guidance or workarounds would be greatly appreciated!
Hello zaherbilal
This error (`The type of column 'X' doesn't match the type of the column in the table`) is a recognized, open issue in Microsoft Fabric
Official Workaround
Microsoft’s current guidance is as follows:
1. Export the Template of the failed Dataflow Gen2.
2. Recreate the Dataflow as a new Dataflow Gen2 with CI/CD enabled.
3. Import the Template into the new dataflow.
4. Reset Output Destinations to point to your Warehouse.
2 Replies
- nilendraFabricSuper User
Hello zaherbilal
This error (`The type of column 'X' doesn't match the type of the column in the table`) is a recognized, open issue in Microsoft Fabric
Official Workaround
Microsoft’s current guidance is as follows:
1. Export the Template of the failed Dataflow Gen2.
2. Recreate the Dataflow as a new Dataflow Gen2 with CI/CD enabled.
3. Import the Template into the new dataflow.
4. Reset Output Destinations to point to your Warehouse.- zaherbilalFrequent Visitor
Hi nilendraFabric , that has solved the issue. Many thanks.