如何使用 Microsoft Azure 从 JSON 文件导入数据库?

问题描述 投票:0回答:0

我正在尝试使用管道从 JSON 文件导入到 Microsoft Azure 中的数据库。我可以从 JSON 文件转换很多内容,但是在尝试从 JSON 文件导入带小数的数字值时出现错误。

这是JSON代码的一部分:

{"Email":"[email protected]","Longitude":12.6026244,"Latitude":66.0176966,"HomePage":"www.webpage.com"}

当我尝试在管道上运行调试时,它显示此错误消息:

ErrorCode=UserErrorInvalidDataValue,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=列“经度”包含无效值''。无法将“”转换为类型“Double”。,Source=Microsoft.DataTransfer.Common,''Type=System.FormatException,Message=Input string was not in a correct format.,Source=mscorlib,'

数据库的类型为 Double,其中 Longitude 和 Latitude 值应该是。是 Azure 无法识别 JSON 数字类型的问题吗?我不明白

json azure azure-devops azure-pipelines
© www.soinside.com 2019 - 2024. All rights reserved.