How to upsert data into salesforce using data factory?

Blasko, Dan W 40 Reputation points
2025-03-28T15:23:12.41+00:00

I am trying to perform an upsert into salesforce from data factory.

I am getting this error........

Failure happened on 'Sink' side. ErrorCode=InvalidParameter,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The value of the property '' is invalid: 'ExternalIdFieldName: psu_migration_id__c is required in the source data for upsert mode'.,Source=,''Type=System.ArgumentException,Message=ExternalIdFieldName: psu_migration_id__c is required in the source data for upsert mode,Source=Microsoft.Connectors.Salesforce,'

psu_migration_id__c exist in both the source and the destination table.

Here is my source.......

select id, psu_migration_id__c
from contact
where PSU_Migration_ID__c = '@{item().aqb__contactreferenced__c}'
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,455 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Aswin 392 Reputation points
    2025-03-31T08:26:58.2733333+00:00

    Hi Blasko, Dan W
    The error message says that the ExternalIdFieldName: psu_migration_id__c has atleast one empty value or null value in your source. For upsert operation, it can't have any null values. Check once, if you have any such rows in your source data.


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.