Odatacollectionview request exceeds HTTP Get maximum QueryString size

Posted by: dr.nooch2 on 14 September 2019, 12:06 am EST

    • Post Options:
    • Link

    Posted 14 September 2019, 12:06 am EST

    Hi all,

    I have an issue using Odatacollectionview for retrieving data. It send request as a HTTP Get by default. When I want to query with many fields on filter, or using a long input for searching in some fields, the generated request length exceeds the query string limitation. Is there any workaround for this issue?

  • Posted 15 September 2019, 5:35 pm EST

    Hi,

    We have queried the dev team on this issue. The internal tracking id of this case is 398361. We will give you an update as soon as we hear from them.

    Regards,

    Ashwin

  • Posted 27 September 2019, 5:20 pm EST

    Hi Ashwin,

    Did they find out the problem? Is there any workaround for this issue?

    Regards

  • Posted 29 September 2019, 2:26 pm EST

    Hi,

    The OData API itself does not limit the URL length, but browsers may do that internally.

    But, the length limit for GET requests is most often set by the server. If you own the server and are able to change its configuration, then you might be able to solve the problem very easily.

    We are sorry but we cannot provide any workarounds on our side since there are no fixed limits.

    ~regards

  • Posted 30 September 2019, 5:34 pm EST

    I know the limitations of Get requests and how browsers taking care of that, But a solution is that OdataCollectionView let us to choose if we want to send the request as Get request or Post request. I know the cons of this solution, but it makes it possible to send the request to server which is not possible now.

    Regards

  • Posted 2 October 2019, 4:06 pm EST

    Hi,

    We are sorry but this is not possible due to the limitations of OData API. The OData API only uses the POST method when it is writing the data and the GET method when it is reading the data.

    ~regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels