cancel
Showing results for 
Search instead for 
Did you mean: 

Date Invalid URI Syntax Odata Gateway

12-13-2016 8:23 AM
Abhinav_Sharma1 Contributor
8503 views 4 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (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.

0 Likes

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

naveen4796
Participant
0 Likes

Hi venkatareddi.kuppireddi ,

This is literally saved the day, thanks for sharing the solution.

Thaseel
Associate
Associate
0 Likes
I had the same problem. It helped me a lot. Thank you!!!