I am using ADF copy activity to copy data from Azure SQL DB to Azure SQL DB using MI authentication. issue in coping data

Chimmili, Madhan 5 Reputation points
2023-06-14T06:55:26.71+00:00

I am using ADF copy activity to copy data from Azure SQL DB to Azure SQL DB using MI authentication. all tables are available in both source and sink

Issue:

all the required permissions were already available for source and sink but data is not coping into sink table saying below error.

Failure happened on 'Sink' side. ErrorCode=SqlOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A database operation failed. Please search error to get more details.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Data.SqlClient.SqlException,Message=Cannot find the object "dbo.appointment" because it does not exist or you do not have permissions.,Source=.Net SqlClient Data Provider,SqlErrorNumber=1088,Class=16,ErrorCode=-2146232060,State=11,Errors=[{Class=16,Number=1088,State=11,Message=Cannot find the object "dbo.appointment" because it does not exist or you do not have permissions.,},],'.

but when I tried 14 tables to copy data only 6 tables copy activity's are failing with above error.

and also

  1. when tried to copy data from sink table to same table it is working.
  2. when tried to preview data , it is showing preview

never came across this kind of issue. could anyone help me in resolving this.

Thanks in advance.

Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,648 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Chimmili, Madhan 5 Reputation points
    2023-06-16T05:02:38.7+00:00

    Hello BhargavaGunnam,

    the object exists in the sink database and the schema name is correct too.

    I got actual issue, issue is I have mapped identity column from source to sink where MI Auth don't have identity insert permission.

    when I tried removing identity mapping issue got resolved, where ADF able to copy data.

    Thanks BhargavaGunnam for the response

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.