Skip to main content

Hello,

I'm working on a integration where I try to fetch data from a projection end-point and show the dataset in a third party client( integration uses Microsoft.OData.Client). When working with the TechPortalTaskExecution projection the Microsoft OData client lib failed with following error.

DataServiceQuery<PurchasedRequisitionQuery>' does not contain a definition for 'ByKey' and the best extension method overload 'ExtensionMethods.ByKey

Upon further investigating the meta data for TechPortalTaskExecution projection it looks like one of the entities/queries(PurchasedRequisitionQuery) is missing the <key> element

With a closer look at the metadata it looks like all the other entities have a <key> defined while only PurchasedRequisitionQuery missing it.

Is this a mistake or was it intentional by design ? Is the OData contract valid in this case ? 

 

Be the first to reply!

Reply