Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
Hey everyone,
I'm running into an issue in Microsoft Fabric's Copy Activity while trying to copy a CSV file into my SQL Data Warehouse. I'm adding a new column with a datetime2 value before the copy operation, but it's throwing an error during the process.
I’ve added the following dynamic content to create the datetime2 column in the Additional Columns section:
u/formatDateTime(convertFromUtc(utcNow(), 'W. Europe Standard Time'), 'yyyy-MM-ddTHH:mm:ss.fffffff')
But when the data is copied, I get this error:
ErrorCode=DWCopyCommandOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message='DataWarehouse' Copy Command operation failed with error ''Column '_DTS' of type 'DATETIME2' is not compatible with external data type 'Parquet physical type: BYTE_ARRAY, logical type: UTF8', please try with 'VARCHAR(8000)'.
It seems like the datetime2 column in my SQL Data Warehouse isn't compatible with the external data from the CSV file, which is being interpreted as a VARCHAR.
I would rather not change the column to VARCHAR(8000) I have tried using the correct datetime2 format in the dynamic content.
Has anyone faced a similar issue when copying a CSV file into a SQL Data Warehouse using Microsoft Fabric's Copy Activity? Or found a way to properly insert datetime2 values? I’d appreciate any advice or workarounds!
Thanks for your help!
Update: I think is because of the Staging area in the workspace. It might convert the data to a certain data type which the warehouse cant accept in the dateetime2 column, but im not sure?
Does anyone know how I can solve this?
according to documentation datetime2 in warehouses supports up to 6 digits fraction of seconds.
looking to your code you're using 7 digits.
I unfortunately get the same error after changing the digits
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Fabric update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
2 |