Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Bad Request returned when value of String type Key is empty string

0 Kudos
119
  • SAP Managed Tags:

I'm using MS SQL database.

In one of the tables it has a key column of type varchar(5). Empty Strings are valid values for such a type of column. Let's say the name of this column is Unit.

When I want to access a particular entry through olingo I do something like

/servletDest/MyODataDest.svc/Table2(Charid=3,Chaid=1,Kid=1,Mdt='000',Objid=2,Statnr=0,Symbolid=1,Unit='')

As you can see I pass an empty string for Unit.

It returns me a bad request error (400)

0 REPLIES 0