copy data gives error NullReferenceException: Object reference not set to an instance of an object

MarkDG 0 Reputation points
2025-02-03T23:51:04.0566667+00:00

I'm copying from Azure Blob Storage .csv files into Snowflake, and receiving the error ErrorCode=SessionLogFailToWriteLog,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Write log is failed with error message: 'System.NullReferenceException: Object reference not set to an instance of an object.

I know this is trying to write a null where a value is expected. However as it is logging the copy operation of a file I'd expect there to be a log. It happens on different files each day and only started last week on an operation that's been running fine for months.

However the blob is present with data in it.

I can see that there is no log file for the run ID in the copy activity log location. I also note the output run table that records skipped rows is missing an entry. Therefore I can't see any reason why it has failed to write to Snowflake and log that it did. Unless there's a data issue throwing the copy activity off, something I can look for in the file itself, an error in ADF or an error transporting to blob, I don't know.

Any ideas? The origin is Oracle OBIA (which could be the issue that cascades through ADF. There are 51 files written through this run every day.

Many thanks

Mark

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

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.