Error occurred while retrieving the data.

This is my expression rule:-

a!queryEntity(
entity: cons!SSB_IAL_EMP_DETAILS_VIEW,
query: a!query(
pagingInfo: a!pagingInfo(1, -1)
)
)

The error I'm getting-
Expression evaluation error at function a!queryEntity: An error occurred while retrieving the data.

I've attached a file with XSD and MySQL query for View definition. I have seen few earlier questions related the same issue and followed the solutions. Tried recreating everything again. But the challenge persists. Let me know the solution please.
In case you are wondering, yes the id column consists of unique values.

OriginalPostID-238664


details.txt

  Discussion posts and replies are publicly visible