cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,274)