You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Murali Sai Rama Krishna V <mu...@nalashaa.com> on 2014/11/14 15:05:59 UTC
Regarding requesting for Composite Primary Key
Hi Team,
When I request for composite primary key for example "http://localhost:8080/OData/JitterBitSAPMaster.svc/ADDRESS(CUSTOMERNO=300025,PI_SALESORG='ORG')"
I get below exception
org.apache.olingo.odata2.api.uri.UriSyntaxException: Invalid key predicate: 'CUSTOMERNO=300025,PI_SALESORG='ORG''.
at org.apache.olingo.odata2.core.uri.UriParserImpl.parseKey(UriParserImpl.java:450)
at org.apache.olingo.odata2.core.uri.UriParserImpl.handleEntitySet(UriParserImpl.java:215)
at org.apache.olingo.odata2.core.uri.UriParserImpl.handleNormalInitialSegment(UriParserImpl.java:184)
at org.apache.olingo.odata2.core.uri.UriParserImpl.handleResourcePath(UriParserImpl.java:158)
at org.apache.olingo.odata2.core.uri.UriParserImpl.parse(UriParserImpl.java:112)
Could you please help me on this.
Thanks & Regards,
Murali.
==============
RE: Regarding requesting for Composite Primary Key
Posted by "Amend, Christian" <ch...@sap.com>.
Hi Murali,
the URL including the key names is case sensitive so just by looking at the example you gave I would assume that these names are written wrong.
If you could give me the edm definition you are using for this entity type I could be more precise.
Best Regards,
Christian
From: Murali Sai Rama Krishna V [mailto:murali.v@nalashaa.com]
Sent: Freitag, 14. November 2014 15:06
To: user@olingo.apache.org
Cc: Ilya Pupko
Subject: Regarding requesting for Composite Primary Key
Hi Team,
When I request for composite primary key for example "http://localhost:8080/OData/JitterBitSAPMaster.svc/ADDRESS(CUSTOMERNO=300025,PI_SALESORG='ORG')"
I get below exception
org.apache.olingo.odata2.api.uri.UriSyntaxException: Invalid key predicate: 'CUSTOMERNO=300025,PI_SALESORG='ORG''.
at org.apache.olingo.odata2.core.uri.UriParserImpl.parseKey(UriParserImpl.java:450)
at org.apache.olingo.odata2.core.uri.UriParserImpl.handleEntitySet(UriParserImpl.java:215)
at org.apache.olingo.odata2.core.uri.UriParserImpl.handleNormalInitialSegment(UriParserImpl.java:184)
at org.apache.olingo.odata2.core.uri.UriParserImpl.handleResourcePath(UriParserImpl.java:158)
at org.apache.olingo.odata2.core.uri.UriParserImpl.parse(UriParserImpl.java:112)
Could you please help me on this.
Thanks & Regards,
Murali.
==============