You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by "Naser, Moneer" <mo...@sap.com> on 2015/12/29 10:29:25 UTC

Cannot find type with name error

Hi,
When I'm trying to retrieve Transactions EntitySet I defined in Olingo, I'm getting this message:
<code>500</code>
<message>Cannot find type with name: OData.SLA</message>

Even though I have SLA defined in the $metadata as a complex type and as an attribute to Transaction EntityType:

<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="OData">
<EntityType Name="Application">..</EntityType>
<EntityType Name="Transaction">
<Key>..</key
<Property Name="EntityType" Type="Edm.String" />
<Property Name="PageId" Type="Edm.String" />
<Property Name="Count" Type="Edm.Double" />
<Property Name="ElapsedTime" Type="Edm.Double" />
<Property Name="ErrorCount" Type="Edm.Double" />
<Property Name="TransactionsPerMinute" Type="Edm.Double" />
<Property Name="Label" Type="Edm.String" />
<Property Name="Name" Type="Edm.String" />
<Property Name="TransactionName" Type="Edm.String" />
<Property Name="PercentageOfTransactions" Type="Edm.Double" />
<Property Name="PageTransactionType" Type="Edm.String" />
<Property Name="TransactionManipulatedName" Type="Edm.String" />
<Property Name="PageLoadTime" Type="Edm.Double" />
<Property Name="PageLoadBaseTime" Type="Edm.Double" />
<Property Name="PageLoadContentTime" Type="Edm.Double" />
<Property Name="PageLoadRedirectTime" Type="Edm.Double" />
<Property Name="PageDwellTime" Type="Edm.Double" />
<Property Name="StaticContentLoadTime" Type="Edm.Double" />
<Property Name="StaticContentTotalPayloadSize" Type="Edm.Double" />
<Property Name="Sla" Type="OData.SLA" />
<Property Name="Id" Type="Edm.String" />
</EntityType>
<ComplexType Name="SLA" BaseType="OData.BaseType">
<Property Name="Error" Type="Edm.Int64" />
<Property Name="Red" Type="Edm.Int64" />
<Property Name="Green" Type="Edm.Int64" />
<Property Name="Undefined" Type="Edm.Int64" />
<Property Name="Ember" Type="Edm.Int64" />
</ComplexType>
<ComplexType Name="BaseType" Abstract="true" />
<EntityContainer Name="Container">
<EntitySet Name="Transactions" EntityType="OData.Transaction" />
<EntitySet Name="Applications" EntityType="OData.Application" />
</EntityContainer>
</Schema>
</edmx:DataServices>
</edmx:Edmx>

Appreciate your response.
Thanks in advance,
Moneer