Azure Synapse: Failure happened on 'Sink' side, when copying data from ADLS2 to Cosmos database

Rosi Reddy 21 Reputation points Microsoft Employee
2022-11-23T17:17:33.777+00:00

Only for one specific dataset, copying data from ADLS2 to Cosmos database is failing. This is a consistent repro. But error details not providing any information on the reason for this issue.
I see input data is working as expected.

Error:
{
"errorCode": "2200",
"message": "Failure happened on 'Sink' side. 'Type=System.NullReferenceException,Message=Object reference not set to an instance of an object.,Source=Microsoft.DataTransfer.ClientLibrary.CosmosDbSqlApiV3,'",
"failureType": "UserError",
"target": "act-push-egress-to-cosmosDB",
"details": []
}

RunIds:
146460b3-0766-40c0-b3c9-1a1a068c0fec
77c95066-d8f5-4c9b-b526-5a89a5237b12
9904dc89-fd43-49a6-bfda-607bd6150661

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,352 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 38,546 Reputation points Microsoft Employee Moderator
    2022-11-25T04:49:20.253+00:00

    Hi @Rosi Reddy ,

    Thank you for posting query in Microsoft Q&A Platform.

    Usually Object reference not set to an instance of object error will come when we are trying to refer some null.

    Could you please recheck and confirm is everything good with your Sink dataset? The account or db or table to which its pointing actually exists?


0 additional answers

Sort by: Most 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.