cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mba
New Member

Error when importing data to dataverse with alternative keys / lookups

Hello,

 

I am working with Dataflows to import data to Dataverse. I am creating alternative keys in dataverse to see the lookups in the field mapping of the dataflow (like here). When I try e.g. to create a product, I receive an error like:

 

Tabelle,5a5f6932-6a79-4f9f-80d6-aebcae3ed483,"https://orbsdedfcab72.crm4.dynamics.com/api/data/v9.1/products(productnumber='Hello1234'){

""productnumber"": ""Hello1234"",

""DefaultUoMId@odata.bind"": ""/uoms(name='Primary Unit')"",

""DefaultUoMScheduleId@odata.bind"": ""/uomschedules(name='Default Unit')""

}","{""error"":{""code"":""0x0"",""message"":""An error occurred while validating input parameters: Microsoft.OData.ODataException: An undeclared property 'DefaultUoMId' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values."

 

 

In my oppinion, this is an error. The dataflow should use the correct spelling of the NavigationProperty. In this case this is not the schemaname. The dataflow is using DefaultUoMId@odata.bind but should use defaultuomid@odata.bind :

 

From https://orbsdedfcab72.crm4.dynamics.com/api/data/v9.1/$metadata#EntityDefinitions

...

<EntityType Name="product" BaseType="mscrm.crmbaseentity">

...

NavigationProperty Name="defaultuomid" Type="mscrm.uom" Nullable="false" Partner="unit_of_measurement_products">

<ReferentialConstraint Property="_defaultuomid_value" ReferencedProperty="uomid"/>

...

 

what do you think?

 

Greetings 

Marvin

0 REPLIES 0

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (42,189)