Query Rule is failing to fetch the Data from Oracle DB

Certified Senior Developer

Hi All,

 I am trying to fetch data from Oracle DB using a query rule with batch size as -1, but the system is throwing the following error :

Expression evaluation error at function a!queryEntity [line 2]: An error occurred while retrieving the data. Details: Unexpected error executing query (type: [DataTypeName], query: [queryentity expression], order by: [[Sort[primaryKey asc]]], filters:[((Ts= TypedValue[it=9,v=3000-01-01 00:00:00.0]) AND (Valid= TypedValue[it=3,v=Y]))])

It had data of 147 rows and if I use batch size of 100 with start index 1 it's sometimes working but when I use startindex as 101 it's always failing with the above error.
I am facing the same issue with some more tables from the same Oracle schema.
Here I am attaching

a!queryEntity(
  entity: cons!DSE_TABLE_NAME,
  query: a!query(
    pagingInfo: a!pagingInfo(startIndex: 1, batchSize: -1, )
  ),
  fetchTotalCount: true
)
the sample Code I have used.

  Discussion posts and replies are publicly visible