简体   繁体   English

Azure 数据工厂无法执行复制数据任务到 SQL 服务器

[英]Azure Data Factory fails to execute copy data task to SQL Server

I have an Azure Data Factory pipeline that contains copy data task.我有一个包含复制数据任务的 Azure 数据工厂管道。 The task copies the data from Azure Blob storage to SQL Server Table.该任务将数据从 Azure Blob 存储复制到 SQL 服务器表。 The SQL Server is hosted on-prem and hence is accessed through integration runtime. SQL 服务器托管在本地,因此可以通过集成运行时访问。

I tested the connections to both Azure Blob Storage and SQL Server from Azure Data Factory and they work.我测试了从 Azure 数据工厂到 Azure Blob 存储和 SQL 服务器的连接,它们工作正常。

However, when I try to execute the copy task I get the following error:但是,当我尝试执行复制任务时,出现以下错误:

在此处输入图像描述

The object (covered in black for confidentiality) is the name of the table I want to write to in SQL Server. object(为保密而用黑色覆盖)是我要在 SQL 服务器中写入的表的名称。 I can confirm that the table exists.我可以确认该表存在。 I can confirm that the user that is the integration run time is using to access SQL server is having the required permissions to write to the table.我可以确认作为集成运行时用于访问 SQL 服务器的用户具有写入表所需的权限。

This is not an issue with Data factory, as you say your connection is successful it seems to be true.这不是数据工厂的问题,正如您所说的连接成功,这似乎是真的。

It more of seems to an issue with either not using the correct database or you do clearly have no access on the table .更多的问题似乎是没有使用正确的数据库,或者您显然无法访问该

Can you use the same database credentials login using SSMS and try running select/update queries?您可以使用 SSMS 使用相同的数据库凭据登录并尝试运行选择/更新查询吗?

Also can you check if the auto increment is true?您还可以检查自动增量是否为真吗?

Please find this link for your reference - > https://support.microsoft.com/en-us/topic/error-message-when-you-try-to-insert-data-into-a-custom-table-in-microsoft-dynamics-nav-cannot-find-the-object-navdbname-dbo-companyname$-tablename-because-it-does-not-exist-or-you-do-not-have-permissions-70dc2a61-c5f7-a85e-ae24-0b4d8931d9ef请找到此链接以供参考 - > https://support.microsoft.com/en-us/topic/error-message-when-you-try-to-insert-data-into-a-custom-table-in -microsoft-dynamics-nav-cannot-find-the-object-navdbname-dbo-companyname$-tablename-because-it-does-not-exist-or-you-do-not-have-permissions-70dc2a61-c5f7- a85e-ae24-0b4d8931d9ef

A few things you can do to further check if the table is accessible.您可以做一些事情来进一步检查该表是否可访问。

  1. Open the related Dataset that is used as 'Sink'打开用作“接收器”的相关数据集
  2. In Connection tab of the dataset, try both 'Test connection' and 'Preview data', as in the image below.在数据集的连接选项卡中,尝试“测试连接”和“预览数据”,如下图所示。 图像1
  3. In Schema tab, try the 'Import schema' button, as in the image below.架构选项卡中,尝试“导入架构”按钮,如下图所示。 图2

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

相关问题 Migrating Data from a SQL Server Encrypted Table to SQL Azure using Azure Data Factory Copy data - Migrating Data from a SQL Server Encrypted Table to SQL Azure using Azure Data Factory Copy data 如何在 Azure 数据工厂中执行 SQL 查询 - How to execute a SQL query in Azure Data Factory Azure 数据工厂管道 - 从本地 SQL Server 和 Dynamics CRM 复制数据 - Azure Data Factory pipeline - copy data from on-premises SQL Server and Dynamics CRM Azure数据工厂复制活动失败。 用户登录失败 - Azure data factory copy activity fails. Login failed for user 使用数据工厂将嵌套对象从 SQL Server 复制到 Azure CosmosDB - Copy nested objects from SQL Server to Azure CosmosDB using a Data Factory Azure 数据工厂复制嵌套的 JSON 到 SQL 表 - Azure Data Factory copy nested JSON to SQL table Azure数据工厂-Azure SQL Server目标架构 - Azure Data Factory - Azure SQL Server Destination Schema 从SQL Server中提取Azure数据工厂作业的作业详细信息 - Pulling job details for an Azure Data Factory Job from SQL Server 带有间隙的 Azure 数据工厂复制标识列 - Azure Data Factory Copy Identity Column With Gaps Azure 数据工厂复制活动无法将 MongoDB ISODate 转换为 DateTime v2 连接器 - Azure Data Factory Copy Activity fails converting MongoDB ISODate to DateTime v2 connector
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM