【发布时间】:2019-02-14 12:47:15
【问题描述】:
我有一个 HTTP 端点,它返回包含日期时间的数据,格式如下:
"RowInsertDateTime": "2018-09-10T15:31:21.223",
由于此错误,我的数据工厂管道无法将此行作为 DATETIME 导入:
"message": "ErrorCode=UserErrorInvalidDataValue,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=,Source=,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Column'RowInsertDateTime' 包含无效值 '2018-09-10T15:39:50.33'。无法将“2018-09-10T15:39:50.33”转换为 使用格式输入“日期时间” 'YYYY-MM-DDTHH:MM:SS'.,Source=Microsoft.DataTransfer.Common,''Type=System.FormatException,Message=String 未被识别为有效的 DateTime.,Source=mscorlib,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Column “RowInsertDateTime”包含无效值 '2018-09-10T15:39:50.33'。无法将“2018-09-10T15:39:50.33”转换为 使用格式输入“日期时间” 'YYYY-MM-DDTHH:MM:SS'.,Source=Microsoft.DataTransfer.Common,''Type=System.FormatException,Message=String 未被识别为有效的 DateTime.,Source=mscorlib,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Column “RowInsertDateTime”包含无效值 '2018-09-10T15:39:50.33'。无法将“2018-09-10T15:39:50.33”转换为 使用格式输入“日期时间” 'YYYY-MM-DDTHH:MM:SS'.,Source=Microsoft.DataTransfer.Common,''Type=System.FormatException,Message=String 未被识别为有效的 DateTime.,Source=mscorlib,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Column “RowInsertDateTime”包含无效值 '2018-09-10T15:39:50.33'。无法将“2018-09-10T15:39:50.33”转换为 使用格式输入“日期时间” 'YYYY-MM-DDTHH:MM:SS'.,Source=Microsoft.DataTransfer.Common,''Type=System.FormatException,Message=String 未被识别为有效的 DateTime。,Source=mscorlib,'",
我尝试设置格式为 YYYY-MM-DDTHH:MM:SS,但同样失败。有任何想法吗?我认为日期时间格式是有效的。
【问题讨论】:
标签: datetime-format azure-data-factory azure-data-factory-2