Not able to retrieve data from DB

Hi All,

I am running below query to get the data from a table which has 1000+ rows . But it gives me error "Expression evaluation error at function a!queryEntity: An error occurred while retrieving the data." .

When i query DB it doesn't take more than 20 ms . Any help on what can be done?

a!queryEntity(
entity: cons!XYZ,
query: a!query(
logicalExpression: a!queryLogicalExpression(
operator: "AND",
filters: {
a!queryFilter(
field: "helpId",
operator: "=",
value: 2
)
},
ignoreFiltersWithEmptyValues: true
),
pagingInfo: a!pagingInfo(
startIndex: 1,
batchSize: -1
)
),
fetchTotalCount: true
).data

Thanks in advance

  Discussion posts and replies are publicly visible

Parents
  • If this kind of issues occur there might be 2 reasons for this 

    1. If there is any date time fields in ur query and if any of the row has the value as 0000-00-00 it will throw an error

    2. If there is a huge data which is taking the query to execute more than 10 seconds it will throw an error,

    To see this error pls check in the perflogs/rdbms logs where it will tell whether it is taking 10 seconds in execution time .

Reply
  • If this kind of issues occur there might be 2 reasons for this 

    1. If there is any date time fields in ur query and if any of the row has the value as 0000-00-00 it will throw an error

    2. If there is a huge data which is taking the query to execute more than 10 seconds it will throw an error,

    To see this error pls check in the perflogs/rdbms logs where it will tell whether it is taking 10 seconds in execution time .

Children