Data Factory Copy Data Activity Can't Find Record to Update

Bethany Griffin 40 Reputation points
2024-04-04T10:05:38.21+00:00

I am getting the following error when running a pipeline in Azure Data Factory:

Operation on target PlotSales failed: ErrorCode=DynamicsOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Dynamics operation failed with error code: -2147220891, error message: Cannot find record to be updated.,Source=Microsoft.DataTransfer.ClientLibrary.DynamicsPlugin,''Type=System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]],Message=The creator of this fault did not specify a Reason.,Source=Microsoft.DataTransfer.ClientLibrary.DynamicsPlugin,'

I am running a Copy Data Activity, which should be an upsert, so I'm confused as to why it's failing. I would have thought if it couldn't find the record, it would insert it instead.

User's image

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

Accepted answer
  1. Azar 22,860 Reputation points MVP
    2024-04-05T11:08:55.4533333+00:00

    Hi Bethany Griffin

    Thanks for getting back with us with the solution, as QandA platform doesn't allow users to accept their own answer, ill post the same solution you gave here, and kindly accept it, as it helps people with the similar issue.

    Solution : Turns out there was a process running that updated a plot when a plot sale is updated, even though the plot foreign key wasn't required. Turning off this process has fixed the issue.

    Thanks much for your contributrion.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Bethany Griffin 40 Reputation points
    2024-04-05T11:04:43.9333333+00:00

    Turns out there was a process running that updated a plot when a plot sale is updated, even though the plot foreign key wasn't required. Turning off this process has fixed the issue

    0 comments No comments

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.