We have a requirement to read exceptions and search if a particular string found in the exception using automation script. If so it will trigger email to some team. Is there API to read exceptions using automation script?
We have a requirement to read exceptions and search if a particular string found in the exception using automation script. If so it will trigger email to some team. Is there API to read exceptions using automation script?
As Satish Kumar (3sides) mentioned, it is possible to catch an exception that is thrown during the execution of an automation, and then log or create an email from it. (It would also be automatically logged even if you did not). However, this will only apply to exceptions that are thrown from the automation, itself. There isn't an event that's raised for other exceptions thrown elsewhere, so an automation would not be able to intercept those. There also is not a supported API for listing exceptions - only for logging them. Depending on the requirements, it may be worth noting that system notifications are emailed to administrators when they're thrown. If you share a bit more about what you're trying to achieve, there may be an alternative approach.
Thank you Satish Kumar (3sides) , Michael Monteleone for your input.
To be more specific, our requirement is to read the Exceptions listed at (Administration->Monitoring->Exceptions) for last 24 hours in an automation script and if a particular string found in the exception then trigger email to some team.
Unfortunately, that would be unsupported by any APIs. If a specific action is triggering a specific exception, it may be a better approach to figure out what that is and to correct it. And if it can't be corrected, identify what is causing it. It may be possible that you can capture *that* event and email/log that instead of the exception itself. What kind of a string are you trying to watch for?
Earlier we had issue in our community some users were unable to login. Upon investigating found the following error.
------------------------------------------------------------------------------------------------------------------------------------------------------------
One of the web nodes was not redirecting to the SSO login. I have recycled it application pool and it is currently redirecting correctly. Below is the error message that I am seeing in the database for this issue.
• UnknownException: An error occurred while rendering the 'Content' script from the widget 'SSO Redirect by Social Edge' (b4d882f7ea7d4fa7b609d45f7f55e803) (An error occurred while trying to render a widget. Details of the issue were logged for review by the administrator.) ---> NVelocity.Exception.MethodInvocationException: Invocation of method 'RedirectToAuthenticationLink' in Telligent.Evolution.VelocityExtensions.AuthenticationScriptedContentFragment threw exception System.NullReferenceException : Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
So we are trying to read the exceptions of last 24 hours and search the string "SSO Redirect by Social Edge". And if it is found then trigger an email to some team.
I would recommend investigating the widget. You could potentially customize it in Widget Studio to log the parameters via the event log API it passes to the RedirectToAuthenticationLink API to correlate.
Michael Monteleone which widget are you referring to here?
I'm referring to the SSO Redirect by Social Edge widget.
I'm referring to the SSO Redirect by Social Edge widget.