Skip to main content
Question

Entity missing Key in TechPortalTaskExecution projection

  • January 2, 2025
  • 0 replies
  • 76 views

Forum|alt.badge.img+2

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 ?