简体   繁体   English

Azure 数据工厂 CICD 错误:由于引用无效,文档创建或更新失败

[英]Azure Data Factory CICD error: The document creation or update failed because of invalid reference

All, when running a build pipeline using Azure Devops with ARM template, the process is consistently failing when trying to deploy a dataset or a reference to a dataset with this error:所有,当使用 Azure Devops 和 ARM 模板运行构建管道时,在尝试部署数据集或对数据集的引用时,该过程始终失败并出现此错误:

ARM Template deployment: Resource Group scope (AzureResourceManagerTemplateDeployment) BadRequest: The document creation or update failed because of invalid reference 'dataset_1'. ARM 模板部署:资源组 scope (AzureResourceManagerTemplateDeployment) BadRequest:由于引用“dataset_1”无效,文档创建或更新失败。

I've tried renaming the dataset and also recreating it to see if that would help.我试过重命名数据集并重新创建它以查看是否有帮助。

I then deleted the dataset_1.json file from the repo and still get the same message so it's some reference to this dataset and not the dataset itself I think.然后我从 repo 中删除了 dataset_1.json 文件,但仍然收到相同的消息,所以它是对该数据集的一些引用,而不是我认为的数据集本身。 I've looked through all the other files for references to this but they all look fine.我查看了所有其他文件以获取对此的参考,但它们看起来都很好。

Any ideas on how to troubleshoot this?关于如何解决这个问题的任何想法?

thanks谢谢

try this尝试这个

Looks like you have created 'myTestLinkedService' linked service, tested connection but haven't published it yet and trying to reference that linked service in the new dataset that you are trying to create using Powershell. In order to reference any data factory entity from Powershell, please make sure those entities are published first.看起来您已经创建了“myTestLinkedService”链接服务,测试了连接但尚未发布它并尝试在您尝试使用 Powershell 创建的新数据集中引用该链接服务。为了引用来自 Powershell 的任何数据工厂实体,请确保首先发布这些实体。 Please try publishing the linked service first from the portal and then try to run your Powershell script to create the new dataset/actvitiy.请尝试先从门户发布链接服务,然后尝试运行您的 Powershell 脚本来创建新的数据集/actvitiy。

I think I found the issue.我想我发现了问题。 When I went into the detailed logs I found that in addition to this error there was an error message about an invalid SQL connection string, so I though it may be related since the dataset in question uses Azure SQL database linked service.当我进入详细的日志时,我发现除了这个错误之外,还有一条关于无效 SQL 连接字符串的错误消息,所以我认为它可能是相关的,因为有问题的数据集使用 Azure SQL 数据库链接服务。

I adjusted the connection string and this seems to have solved the issue.我调整了连接字符串,这似乎解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM