Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Verified Answer
+2
person also asked this
people also asked this
Replies
16 replies
Answers
1 answer
Subscribers
9 subscribers
Views
21886 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Error occurred while retrieving the data.
Soumya.Behera
over 8 years ago
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
Top Replies
Fredrick Omeniho
over 4 years ago
+6
verified
Hey All, I am just very new in Appian, 2 weeks to be specific but I am not new to application database nor database development - 18 years experience as of today. I encountered this problem today with…
0
Stefan Helzle
A Score Level 3
over 8 years ago
Did you check the server logs for some more error details. Did you query this view using SQL to test execution times?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkateshs329
over 8 years ago
#Soumyab243
As of my knowledge please check below points,
1. In view don't use select * command , instead of these command you can take particular columns
from the table.
2.As stefanh791 said check query execution time in database.
3.Use filters in query entity rule for faster response
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jagadeesh
Certified Senior Developer
over 8 years ago
Lets say view corectly executing then please make sure that Primary key should be unique and
can u please verify that the constant SSB_IAL_EMP_DETAILS_VIEW having correct value to data store entity i.e view/Table. Sometimes if you changed the data store mapping then the constant will be reset to null.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Soumya.Behera
over 8 years ago
Thanks for the response. But, #venkateshs239, done the mentioned steps. #Jagadeesh, checked that too. Execution time is really very less.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkateshs329
over 8 years ago
#soumyb243
Try to get the same data using QueryRule
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Soumya.Behera
over 8 years ago
The following error came up-
Expression evaluation error in rule 'ssb_ial_getemployeedetailsfromqueryrule' at function 'queryruleexec': Error evaluating function 'queryruleexec' : Unexpected error executing query (type: [SSBIALEMPDETVIEWDT13262], query: [SSB_IAL_getEmployeeDetailsFromQueryRule], order by: [[Sort[id asc]]], filters:[null])
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Venu
over 8 years ago
@Soumya,
Have you checked you datastore is correctly mapped with DB?
i mean verify mapings,
some times this may be due to data size, try to add filters.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkateshs329
over 8 years ago
@soumya
I think it may be something going on with the view being used
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
narasimhaadityac
A Score Level 2
over 8 years ago
Hi, could you please rename the ID column, I think Appian by default reserves this column.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Soumya.Behera
over 8 years ago
Solved. This is what I did-
1. Replaced some joins which didn't support sql_mode='only_full_group_by_mode' with subqueries.
2. replaced one datetype column with decimaltype column.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>