Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
8 subscribers
Views
3058 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I am getting below expression error when trying to access Task report by the ba
vineeta6579
over 9 years ago
I am getting below expression error when trying to access Task report by the basic user. but from the Administrator user it works fine.
Server logs attached.
errorlog
OriginalPostID-148366
OriginalPostID-148366
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 9 years ago
It seems your expression is trying to index the first element of a list but the list is empty:
java.lang.ArrayIndexOutOfBoundsException: Invalid index (1) for list: valid range is empty
maybe because this user doesn't have tasks and your expression doesn't handle this use case properly
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 9 years ago
but same report is working for the Admin user
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 9 years ago
If the Admin user expression returns an array that does have data then that's why this would work. Remember, the error shows that for the basic user the expression is returning an empty array somewhere and you're trying to get item 1 out of that empty array.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 9 years ago
When I am accessing report by the basic user, the getportalreportdatasubset is not returning any data.
My basic user is member of App_Viewer group. and same role is assigned to the viewer group config of tempo report. The security of portal report folder is also set to the administrator for the same role.
Any pointer!!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 9 years ago
Maybe you're not passing the right context for the report or the user does not have tasks.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 9 years ago
Thanks Eduardo..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel