“不良请求”来自Azure数据工厂(ADF)中复制活动导入架构的消息

发布于 2025-02-06 19:30:25 字数 1024 浏览 2 评论 0原文

我必须将数据从CRM Business Central迁移到Azure SQL数据库。源数据来自REST API。我创建了一个与之相关的链接服务。然后,我使用以下内容创建了一个复制活动:

”输入映像在此处”

“在此处输入图像说明”

预览工作。我以JSON格式获得数据。对于“映射”选项卡,我尝试导入架构并将字段“值”设置为数组。我得到以下结果:

”在此处输入图像描述

但是,在映射的右侧,我只能看到“@odata.context”提出的“水槽映射”。我通过编写正确的字段来掩盖它。当我使用“调试模式”运行管道时,没有触发管道,我收到了一个“不良请求”:

“在此处输入图像说明”

错误来自映射。我的问题是:在JSON数据的情况下,“导入架构”如何工作?我必须手动导入模式吗?

I have to migrate data from CRM Business Central into an Azure SQL database. The source data comes from REST API. I created a linked service related to it. Then I created a copy activity with the following:

enter image description here

enter image description here

The preview works. I get data in a JSON format. For the mapping tab, I tried to import the schema and set the field "value" as an array. I got the following result:

enter image description here

However, on the right side of the mapping, I can only see "@odata.context" proposed as a "sink mapping". I overwrote it by writing the right fields. When I run the pipeline with "debug mode", the pipeline is not triggered and I received a "Bad Request":

enter image description here

The error comes from the mapping. My question is: how does the "Import schema" work in case of JSON data? Do I have to import manually the schema?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仄言 2025-02-13 19:30:25

通过排除特殊字符,将接收器列@odata.context更改为其他名称。

当我在接收器列中使用特殊字符(@,。)时,我已经使用示例REST API进行了回复,并遇到了相同的错误。

我更改了接收列名称ex:data_id以排除特殊字符,管道成功运行。

Change the sink column @odata.context to other name by excluding the special characters.

I have reproed with a sample rest API and got the same error when I used the special characters (@, .) in the sink column ex :@data.id.

enter image description here

I have changed the sink column name ex: data_id to exclude special characters and the pipeline ran successfully.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文