Skip to Content
0

Strange OData error

Nov 22, 2016 at 01:55 PM

58

avatar image

I'm getting an OData metadata error I cannot understand.

When sending the request:

CompletedClaimLines?$filter=Company eq '1000' and Belnr eq '9999999' and Year eq '2016'

I'm getting the error:

Property year not found in type CompletedClaimLine

Note the case miss-match between the requested "Year" and the error "year"

Anyone got any ideas what might be happening?

Extracts from the metadata below

<EntityType Name="CompletedClaimLine" sap:content-version="1">
            <Key>
               <PropertyRef Name="Company" />
               <PropertyRef Name="Belnr" />
               <PropertyRef Name="Year" />
               <PropertyRef Name="Line" />
            </Key>
            <Property Name="Company" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Company code" sap:creatable="false" sap:updatable="false" sap:sortable="false" />
            <Property Name="Belnr" Type="Edm.String" Nullable="false" MaxLength="10" sap:label="Document Number" sap:creatable="false" sap:updatable="false" sap:sortable="false" />
            <Property Name="Year" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Fiscal Year" sap:creatable="false" sap:updatable="false" sap:sortable="false" />
            <Property Name="Line" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Line item" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
            <Property Name="Amount" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Amount" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
            <Property Name="Currency" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="G/L currency" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" sap:semantics="currency-code" />
            <Property Name="Text" Type="Edm.String" Nullable="false" MaxLength="999" sap:label="Text Line" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />
         </EntityType>
<EntitySet Name="CompletedClaimLines" EntityType="ZESS_AP_EXP_SRV.CompletedClaimLine" sap:creatable="false" sap:updatable="false" sap:deletable="false" sap:pageable="false" sap:addressable="false" sap:content-version="1" />
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers