Skip to Content
author's profile photo Former Member
Former Member

$filter with GET method is not working on batch call

Hi Experts,

i am trying to fetch data using batch call, that time i am getting status accepted for batch but getting bad request status with error 'Invalid type for '$filter' system query option. Expected type is 'Edm.Boolean'' for one GET request which is present inside my batch call.


i tried with different entityset with filter option same error i am getting.


bellow is my batch request body....

>>>>>>>>>>>>>>>>>>>>>>>

--batch

Content-Type: application/http

content-transfer-encoding: binary

GET FILE_DOCUM_ES/?$filter=Guid eq '0050568F090A1ED3B3ED417ACFC3C6FB' and TabType eq 'INTRAY' and Wiid eq '000000121022' and FileID eq '000000007318'HTTP/1.1

--batch

Content-Type: application/http

content-transfer-encoding: binary

GET FILE_DOC_FI?param_1='FS'&param_2='0050568F090A1ED39DEE316E0B4348A7'&param_3=''&param_4=''&param_5='' HTTP/1.1

--batch--



>>>>>>>>>>>>>>>>>>>>>>>>>

for 2nd request i am getting status-200 and for 1st one getting 500.

Please help me.

Regards

Saumya

gerror.PNG (114.7 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 26, 2014 at 02:46 PM

    Hi Saumya,

    maybe try to add space between '000000007318' and HTTP/1.1.

    Regards,

    Peter

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 10, 2016 at 06:53 AM

    Hi,

    Service call : /sap/opu/odata/sap/ZEMPS_SRV/$batch

    My query is

    --batch

    Content-Type: application/http

    Content-Transfer-Encoding: binary

    Accept: application/xml

    GET ztotal_EmpSet/?$filter= StartDate+eq+'24.08.2016 00:00:00'+and+EndDate+eq+'28.08.2016 23:00:00'+and+Unit+eq+'50006636'+and+DateField+eq+'BASIC'+and+Id+eq+'EMP1' HTTP/1.1

    --batch--

    The debugger is going into the get_entityset method, but

    it_filter_select_option is empty.

    How do I get these filter values?

    Regards,

    Gopa

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.