To display interface error on UI

Certified Associate Developer

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

Parents Reply Children
  • 0
    Certified Associate Developer
    in reply to Abhay Dalsaniya

    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

  • 0
    Appian Employee
    in reply to ruchiy9131

    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.

  • 0
    Certified Associate Developer
    in reply to Peter Lewis

    We want to display the actual error to the user in the run time. Is it possible?

  • 0
    Certified Lead Developer
    in reply to ruchiy9131

    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.

  • 0
    Appian Employee
    in reply to ruchiy9131

    Whether you can show the error message inline can vary depending on the function that you are using. If you're using the a!exportDataStoreEntityToExcel function, it doesn't currently have a way of exposing the error to the user. However, some other functions like a!writeRecords do allow you to return this information from the function.

    That being said, I echo what Stefan said - I don't really see how it would be useful to the user to be able to see what the error is. It's much better to have the user report when they receive the error and have the dev team investigate (usually through the logs).

  • 0
    Certified Lead Developer
    in reply to ruchiy9131

    Agreed with Stefen & Peter. I don't see an advantage of showing error message to end user.