Quantcast
Channel: SCN : Popular Discussions - SAP NetWeaver Gateway Developer Center
Viewing all articles
Browse latest Browse all 1657

Error in using key predicates

$
0
0

Hi all,

 

When executing the service URL with key predicates i am getting an error raised by exception /IWBEP/CX_MGW_TECH_EXCEPTION (message Internal error occurred, contact your system.).

 

The Associations, Referential constraints and Navigation properties have been maintained correctly.

 

The key predicates being passed are:

Airlineid='AA',Connectid='0017',Flightdate=datetime'2013-09-04T00:00:00'

 

The complete URL looks like:

http://<host>:<port>/sap/opu/odata/SAP/FLIGHTLISTDCR/FlightLists(Airlineid='AA',Connectid='0017',Flightdate=datetime'2013-09-04T00:00:00')/FlightDetail where FlightLists is the name of the Entity set and FlightDetail is the name of the Navigation property. Without the key predicates the entity set  returns the desired result.

 

Metadata

 

<?xml version="1.0" encoding="utf-8" ?>

 

-<edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"

 

 

-<edmx:DataServices m:DataServiceVersion="2.0">

 

 

-<Schema Namespace="FLIGHTLISTDCR" xml:lang="en" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">

 

 

-<EntityType Name="FlightDetail" sap:content-version="1">

 

 

-<Key>

 

 

<PropertyRefName="Airlineid" />

 

 

<PropertyRefName="Connectid" />

 

 

<PropertyRefName="Flightdate" />

 

</Key>

 

<PropertyName="Flighttime" Type="Edm.Int32" Nullable="false" sap:label="Flight time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Distance" Type="Edm.Decimal" Nullable="false" Precision="9" Scale="4" sap:label="Distance"
sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="CurrIso" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="ISO code" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Econofree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Businfree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Firstfree" Type="Edm.Int32" Nullable="false" sap:label="Free seats" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Curr" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="Airline local currency" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airlineid" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Airline" sap:sortable="false"
sap:filterable="false" />

 

 

<PropertyName="Airline" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Airline" sap:creatable="false"
sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Connectid" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Connection Number" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Price" Type="Edm.Decimal" Nullable="false" Precision="23" Scale="4" sap:label="Airfare" sap:creatable="false"
sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Flightdate" Type="Edm.DateTime" Nullable="false" sap:label="Flight Date" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airportfr" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Departure airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Cityfrom" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Depart. city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Arrdate" Type="Edm.DateTime" Nullable="false" sap:label="Arrival date" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airportto" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Destination airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Cityto" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Arrival city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Deptime" Type="Edm.Time" Nullable="false" sap:label="Departure time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Arrtime" Type="Edm.Time" Nullable="false" sap:label="Arrival Time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

</EntityType>

 

-<EntityType Name="FlightList" sap:content-version="1">

 

 

-<Key>

 

 

<PropertyRefName="Flightdate" />

 

 

<PropertyRefName="Connectid" />

 

 

<PropertyRefName="Airlineid" />

 

</Key>

 

<PropertyName="Airportto" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Destination airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Cityfrom" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Depart. city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airportfr" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Departure airport" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Flightdate" Type="Edm.DateTime" Nullable="false" sap:label="Flight Date" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Connectid" Type="Edm.String" Nullable="false" MaxLength="4" sap:label="Connection Number" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airline" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Airline" sap:creatable="false"
    sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Airlineid" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="Airline" sap:sortable="false"
    sap:filterable="false" />

 

 

<PropertyName="Cityto" Type="Edm.String" Nullable="false" MaxLength="20" sap:label="Arrival city" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Deptime" Type="Edm.Time" Nullable="false" sap:label="Departure time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Arrtime" Type="Edm.Time" Nullable="false" sap:label="Arrival Time" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Arrdate" Type="Edm.DateTime" Nullable="false" sap:label="Arrival date" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Price" Type="Edm.Decimal" Nullable="false" Precision="23" Scale="4" sap:label="Airfare"
    sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="Curr" Type="Edm.String" Nullable="false" MaxLength="5" sap:label="Airline local currency" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<PropertyName="CurrIso" Type="Edm.String" Nullable="false" MaxLength="3" sap:label="ISO code" sap:creatable="false" sap:updatable="false" sap:sortable="false" sap:filterable="false" />

 

 

<NavigationPropertyName="FlightDetail" Relationship="FLIGHTLISTDCR.FlightListFlightDetail"
FromRole="FromRole_FlightListFlightDetail" ToRole="ToRole_FlightListFlightDetail" />

 

</EntityType>

 

-<Association Name="FlightListFlightDetail" sap:content-version="1">

 

 

<EndType="FLIGHTLISTDCR.FlightList" Multiplicity="1" Role="FromRole_FlightListFlightDetail" />

 

 

<EndType="FLIGHTLISTDCR.FlightDetail" Multiplicity="1" Role="ToRole_FlightListFlightDetail" />

 

 

-<ReferentialConstraint>

 

 

-<Principal Role="FromRole_FlightListFlightDetail">

 

 

<PropertyRefName="Flightdate" />

 

 

<PropertyRefName="Connectid" />

 

 

<PropertyRefName="Airlineid" />

 

</Principal>

 

-<Dependent Role="ToRole_FlightListFlightDetail">

 

 

<PropertyRefName="Flightdate" />

 

 

<PropertyRefName="Connectid" />

 

 

<PropertyRefName="Airline" />

 

</Dependent>

</ReferentialConstraint>

</Association>

 

-<EntityContainer Name="FLIGHTLISTDCR" m:IsDefaultEntityContainer="true">

 

 

<EntitySetName="FlightDetails" EntityType="FLIGHTLISTDCR.FlightDetail" sap:pageable="false" sap:addressable="false"
sap:content-version="1" />

 

 

<EntitySetName="FlightLists" EntityType="FLIGHTLISTDCR.FlightList" sap:requires-filter="true" sap:content-version="1" />

 

 

-<AssociationSet Name="AssocSet_FlightListFlightDetail" Association="FLIGHTLISTDCR.FlightListFlightDetail"
sap:creatable="false" sap:updatable="false" sap:deletable="false" sap:content-version="1">

 

 

<EndEntitySet="FlightLists" Role="FromRole_FlightListFlightDetail" />

 

 

<EndEntitySet="FlightDetails" Role="ToRole_FlightListFlightDetail" />

 

</AssociationSet>

</EntityContainer>

 

<atom:linkrel="self" href="http://<host>:8000/sap/opu/odata/sap/FLIGHTLISTDCR/$metadata"
    xmlns:atom="http://www.w3.org/2005/Atom" />

 

 

<atom:linkrel="latest-version" href="http://<host>:8000/sap/opu/odata/sap/FLIGHTLISTDCR/$metadata"
    xmlns:atom="http://www.w3.org/2005/Atom" />

 

</Schema>

</edmx:DataServices>

</edmx:Edmx>

 

 

The Error log message is vague and is as follows:

Internal error occurred, contact your system administrator.

 

Shall be grateful for any hints which could help me resolve this issue.

 

regards

Nitesh


Viewing all articles
Browse latest Browse all 1657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>