If there is any expression evaluation error on interface, how can we display that error on UI if want to show to user. Reason for error need to display on UI.
Discussion posts and replies are publicly visible
The user will see the pink UI errors as is. Are you looking to customize those? what's the exact use case?
We are currently saving in a local variable "an error occurred while exporting the data " on the "onError" parameter. But we want to show the actual error, that appian is generating. In the user interface rule,for example, if we try to query a table with more than 50 columns, it says "numbe rof columns exceeded 50" something like that. But how do we display the same in the run time in sites?. The issue is that in higher environments, we are getting "an error occurred while exporting the data " even though the same code works fine lower environments. We want to know what is breaking the exportdatastoreentitytoexcel function. The documentation says it can export more than 100k records. I was able to export 300k records in lower environments. Not sure whether it is breaking due to view complexoty or something else in higher environments
This doesn't sound like an issue with the UI, it just sounds like you want to know what the error is, right? In this case I'd suggest looking at the tomcat-stdout.log and you should be able to find errors that occurred when exporting.
We want to display the actual error to the user in the run time. Is it possible?
I do not want to show such a technical error to any user. Typically he is not able to do anything about it.
Instead, I make sure, that the internal support process is working. Then I tell the user that there was an error and a support person takes care of it and will contact him.
But, requirements vary. AFAIK, there is no good way to display such a low level error message to the user.