Error while ingesting data into dataverse using Synapse dataflow (Sustainability Manager)

Kuldeep Singh 11 Reputation points
2022-12-21T15:29:41.877+00:00

I'm trying to load data into dataverse using Azure Synapse pipelines (Dataflows).

Sink: Dataverse table - Mobile combustion (https://learn.microsoft.com/en-gb/common-data-model/schema/core/industrycommon/sustainability/mobilecombustion)
Below are 4 different combinations I tried for Organizational Unit which is a lookup column. I tried attribute name as msdyn_organizationalunitId & msdyn_organizationalunitid and values as GUID value & name of the organization. None of these combination worked for me.

273862-image.png

Can someone help me in understanding what parameter name and value should I pass for a lookup column while inserting a record in Dataverse entity having lookup property. In this case Mobile combustion is the entity name and Organizational unit is the lookup property.

Below is the error message for the last combination:

msdyn_organizationalunitId: 'OrgUnit01'

Microsoft.OData.ODataException: A 'PrimitiveValue' node with non-null value was found when trying to read the value of the property 'msdyn_organizationalunitId'; however, a 'StartArray' node, a 'StartObject' node, or a 'PrimitiveValue' node with null value was expected.

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.
4,601 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Kuldeep Singh 11 Reputation points
    2023-03-10T13:17:48.26+00:00

    0

    After spending a couple of months this is what worked for me.

    Column name: 'msdyn_organizationalunitId@odata.bind'

    Column Value: '/msdyn_sustainabilityorganizationalunits(<OrgUnitGUIDValue>)'

    For any dynamics entity, while writing data to an entity with reference columns, your data set must have reference column names ended with '@odata.bind' and column value must be in '/ReferenceEntity(GUIDValue)' format.

    1 person found this answer helpful.