Skip to Content

Date Invalid URI Syntax Odata Gateway


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?


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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

    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.

    Add comment
    10|10000 characters needed characters exceeded