Skip to main content
February 20, 2023
Question

To display interface error on UI

  • February 20, 2023
  • 10 replies
  • 0 views

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.

    10 replies

    achutaharshavardhanv6069
    February 20, 2023

    As far as i understood the question you want to show not the technical details and just the basic details to the user that some error occurred. If my understanding is correct there is a checkbox which you need to disable it in permissions section in Admin console which gives the basic information about the error to the user. 

    February 20, 2023

    Yeah just want to show the basic details to user.. actually in interface object when is there is any error in exporting data to Excel by any reason then we show One validation msg to UI. But the requirement is to show basic error details why this particular error occurred along with validation msg.

    harshitb6843
    February 20, 2023

    AFAIK I don't think there is a way to achieve it. You can build some logic around it but none of them will be 100% smooth. 

    abhayd3663
    February 20, 2023

    The user will see the pink UI errors as is. Are you looking to customize those? what's the exact use case?

    February 21, 2023

    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

    peter.lewis
    Employee
    February 21, 2023

    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.