odata4j client compatibility with Microsoft Dynamics NAV 2013 R2

39 views
Skip to first unread message

Supriya Shyamal

unread,
Jan 22, 2015, 12:41:18 PM1/22/15
to odata4j...@googlegroups.com
Hello All,

I am trying to use odata4j client bundle to consume OData service from Microsoft Dynamics NAV 2013 R2 system. For the first level entity select works good but the subentity thriws me parse error ..
Exception in thread "main" java.lang.IllegalArgumentException: bad valueString ['TESTCompany')/Contact('1000000'] as part of keyString ['TESTCompany')/Contact('1000000']
at org.odata4j.core.OEntityKey.parse(OEntityKey.java:157)
at org.odata4j.format.xml.AtomFeedFormatParser.parseEntityKey(AtomFeedFormatParser.java:300)
at org.odata4j.format.xml.AtomFeedFormatParser.entityFromAtomEntry(AtomFeedFormatParser.java:431)
at org.odata4j.format.xml.AtomFeedFormatParser.parseEntry(AtomFeedFormatParser.java:349)
at org.odata4j.format.xml.AtomFeedFormatParser.parseFeed(AtomFeedFormatParser.java:169)
at org.odata4j.format.xml.AtomFeedFormatParser.parse(AtomFeedFormatParser.java:157)
at org.odata4j.format.xml.AtomFeedFormatParser.parse(AtomFeedFormatParser.java:45)
at org.odata4j.consumer.ConsumerQueryEntitiesRequest.doRequest(ConsumerQueryEntitiesRequest.java:67)
at org.odata4j.consumer.ConsumerQueryEntitiesRequest.getEntries(ConsumerQueryEntitiesRequest.java:50)
at org.odata4j.consumer.ConsumerQueryEntitiesRequest.execute(ConsumerQueryEntitiesRequest.java:40)

The URL looks like ..
http://<NAV-server>:<NAV-port>/INST_NAMEOData/Company('TESTCompany')/Contact

Thanks,
supriya
Reply all
Reply to author
Forward
0 new messages