Skip to Content
0

Date Invalid URI Syntax Odata Gateway

Dec 13, 2016 at 07:23 AM

639

avatar image

Hi,

I am trying to develop a simple UI5 application where I need to consume a ODATA service defined in Gateway. It is the embedded deployment.
I defined FLIGHT Model in SEGW and exposed SFLIGHT entries in the GET_ENTITY and GET_ENTITYSET method.

In SAPUI5, I used the FIORI Worklist template and the first view is loaded with the all the flights available in the SFLIGHT table. Now when I try to view the detail entry, I click the lineitem and detail page should display the single record.

I am passing the CARRID, CONNID and FLDATE as a key to the ODATA service, however, it is giving me error as invalid URI segment 00:00)'.

I believe there is somehting wrong with the passing of date parameter as in my other project everything works fine if I dont pass the date parameter.

Can you please help?

Regards
Abhi

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member May 30, 2017 at 06:43 AM
1

Not sure if you still need it but here is my reply for others who might face this issue.

The problem is because of the special character : in your URI.

Use encodeURIComponent() to encode your URI. It will replace : with %3A and it should work. It did for me.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

I had the same problem. Your solution helped me. Thank you!

0