Hi @Shaista Lubna ,
Thanks for posting your query on Microsoft Q&A platform
Just one clarification,
Did you copy and paste the copy activity from some other pipeline or you created it afresh?
Thanks
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to copy data from SQL Server to Snowflake using ADF Pipeline, I am using a copy activity, my source and destination column data types all match , my source column "LastUpdateTime" in SQL Server is a TIME data type . My destination column "LastUpdateTime" in Snowflake is also TIME, but it errors out by appending an additional "0:", This is the error I get
ErrorCode=UserErrorOdbcOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=ERROR [22007] Time '0:09:40:57.9433333' is not recognized
My source column value is "09:40:57.9433333' . Not sure why ADF is interpreting an additional "0:", I also tried explicit conversion of my column using CAST(LastUpdateTime as TIME) by using the Query instead of direct table source, even though the source column data type is already time, it still fails .
Hi @Shaista Lubna ,
Thanks for posting your query on Microsoft Q&A platform
Just one clarification,
Did you copy and paste the copy activity from some other pipeline or you created it afresh?
Thanks
Hi @Shaista Lubna ,
Additionally to what Subhashri mentioned above, you can try using type conversion settings if date columns in your table have similar format .
If all the date fields are having different date formats like (yyyy.MM.dd , yyyy.MM.dd HH:mm, yyyy.MM.dd HH:mm:ss) then try using data flows to achieve the requirement.
Check this thread for more details.
Hope this will help. Please let us know if any further queries.
------------------------------