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
12 replies
Subscribers
7 subscribers
Views
2823 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
how to handle process report when there are no active processes
garym
over 7 years ago
Hi,
We have a process report which is supposed to show us any open tasks for a process model. It works fine when there are tasks for that process model.
However, I noticed it shows the following error when there are no active processes.
Error Evaluating UI Expression
Expression evaluation error in rule 'rct_report_gaalltaskreport' at function 'toUniformstring' parameter 1 [line 16]: Invalid index: Cannot index property 'c15' of type Text into type List of Variant
What would be the best way to handle this so that users don't see the pink error message?
Thanks,
Gary
OriginalPostID-243721
Discussion posts and replies are publicly visible
Parents
0
Shashank
over 7 years ago
@garym
HI ,
Please find the updated code attached
I have added a section ,with a condition which appears only when there is no data in the Task Report
I have also added null checks at some places where it is required , so that some looping functions do not break
This report might fail at places where it is definitely expecting data and we need to gracefully handle such situations
Please let me know , in case there are any issues with the code further on
Thanks
Cancel
Vote Up
-1
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Shashank
over 7 years ago
@garym
HI ,
Please find the updated code attached
I have added a section ,with a condition which appears only when there is no data in the Task Report
I have also added null checks at some places where it is required , so that some looping functions do not break
This report might fail at places where it is definitely expecting data and we need to gracefully handle such situations
Please let me know , in case there are any issues with the code further on
Thanks
Cancel
Vote Up
-1
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data