Error to set lookup field in N:1 relationship while writing data to Dynamics CRM from Azure Data Factory

AnaC 0 Reputation points
2023-01-25T21:03:04.89+00:00

While trying to sync data from sql staging table to Account entity in CRM,  I faced an issue in populating the multi-lookup column.

The input column is Manager Name that is of string data type. The destination field is dfws_sareportingmanager (GUID data type) in the Account entity. The "Manager Name" should exactly match "fullname" in systemuser entity.

Below is a screenshot with the the relationship lookup in Dynamics 365:

User's image

I created a copy activity in ADF. The normal field mapping should be "Manager Name" in the source to dfws_sareportingmanager in Account entity but the datatypes are different between the 2. The "Target_SystemUser" column contains the logical name of the target entity (systemuser) and represents the entity reference.

I am not really sure how to pass the Manager Name from source to sink Account entity, if dfws_sareportingmanager is of GUID datatype.

User's image

When running the Copy Activity it returns an error

User's image

However, this was passible with KingswaySoft in SSIS:

User's image

User's image

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