REST API to external list not working consistently (SP 2019 on-premises)

Copper Contributor

I have external content types, which are read operations (item/list) to SQL Server views. I've made external lists from them. There are hundreds of thousands of entries in the table, so I've increased the return limit from 2000 to 10000. Besides that, I have limit filter to 10000 entries in my CTs. The problem is that whenever I send query with filter on date field, it looks like there's some sort of limit of what I'm getting. I thought that the external list limit is for maximum amount of entries returned from single operation, but I'm not sure now.

For instance, I have results for this date from Management Studio:

 

1MFM6.png

 

But when I make a query to my external list based on this view:

_api/web/lists/getbytitle('Bnp55All')/items?$select=ID,Data&$top=1000&$orderby=ID%20desc&$filter=Data%20le%20datetime%272020-11-12T11:00:00.000Z%27

 I'm not getting any results. If I change the 'Data' field filter to 2020-11-14, I'm getting those results from the 11-13 day (but not 11-12). Now, does this mean that ECT limit impacts returned results, and I can't get results in any way some time back? Is there a way to overcome this, so I could just filter on the date field without restrictions (for instance, get records from last year)? Or is it something else?

0 Replies