Strange Email Error - Won't send form Automation, but sends from Script Sandbox

I have hit a very strange error when developing an automation. Emails were not going out, so i did all sorts of troubleshooting until I ended up with an automation that JUST sends an email with text, no variables, for subject, body, and toemail. This email sends fine in the script sandbox but throws the following error when triggered via Automation. What am I doing wrong, is this a bug?

UnknownException: Sending email reported failure. (An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review.) ---> System.Exception: Sending email reported failure.
Parents Reply Children
  •  core_v2_widget.ExecuteFile("ThreadMoveCheck.jsm", {RunAsServiceUser: 1}); 


    ^ That is still throwing the Email Send Error. This is sounding like a Verint bug right?

    sendReturn:{
      "Warnings": [],
      "Errors": [
        {
          "Type": "UnknownError",
          "Message": "An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review."
        }
      ]
    }
  • Former Member
    0 Former Member in reply to Stephen Vicino

    Is there no exception being logged?  Email Unable to Send error should be getting logged in the exception log.

  • Its logging many errors; all about the same:

    UnknownException: Sending email reported failure. (An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review.) ---> System.Exception: Sending email reported failure.
       --- End of inner exception stack trace ---
       at Telligent.Evolution.VelocityExtensions.Email.Send(String subject, String body, IDictionary options)
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Jint.Runtime.Interop.MethodInfoFunctionInstance.Invoke(MethodInfo[] methodInfos, JsValue thisObject, JsValue[] jsArguments)
       at Jint.Runtime.Interop.MethodInfoFunctionInstance.Call(JsValue thisObject, JsValue[] arguments)
       at Jint.Runtime.ExpressionInterpreter.EvaluateCallExpression(CallExpression callExpression)
       at Jint.Engine.EvaluateExpression(Expression expression)
       at Jint.Runtime.StatementInterpreter.ExecuteVariableDeclaration(VariableDeclaration statement)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Runtime.StatementInterpreter.ExecuteStatementList(IEnumerable`1 statementList)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Runtime.StatementInterpreter.ExecuteForStatement(ForStatement forStatement)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Runtime.StatementInterpreter.ExecuteStatementList(IEnumerable`1 statementList)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Runtime.StatementInterpreter.ExecuteIfStatement(IfStatement ifStatement)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Runtime.StatementInterpreter.ExecuteStatementList(IEnumerable`1 statementList)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Runtime.StatementInterpreter.ExecuteIfStatement(IfStatement ifStatement)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Runtime.StatementInterpreter.ExecuteStatementList(IEnumerable`1 statementList)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments)
       at Jint.Native.Function.FunctionPrototype.CallImpl(JsValue thisObject, JsValue[] arguments)
       at Jint.Runtime.Interop.ClrFunctionInstance.Call(JsValue thisObject, JsValue[] arguments)
       at Jint.Runtime.ExpressionInterpreter.EvaluateCallExpression(CallExpression callExpression)
       at Jint.Engine.EvaluateExpression(Expression expression)
       at Jint.Runtime.StatementInterpreter.ExecuteExpressionStatement(ExpressionStatement expressionStatement)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Runtime.StatementInterpreter.ExecuteStatementList(IEnumerable`1 statementList)
       at Jint.Engine.Execute(Program program, JintCallStack callStack)
       at Telligent.Evolution.Platform.Scripting.Implementations.ScriptedExtensionExecutionService.ExecuteJavascript(JavascriptExecutionContext context, String resourceName, DateTime sourceLastModifiedDateUtc, Func`1 getSource, ScriptLanguage parentLanguage, String scriptName)
       at Telligent.Evolution.Platform.Scripting.Implementations.ScriptedExtensionExecutionService.<>c__DisplayClass28_1.<ExecuteScriptFile>b__0()
       at Telligent.Evolution.Platform.Scripting.Implementations.ScriptedExtensionOutputCachingService.Get(ScriptedExtension extension, String cacheKey, Boolean cacheable, Func`1 getRenderedOutput)
       at Telligent.Evolution.Platform.Scripting.Implementations.ScriptedExtensionExecutionService.ExecuteScriptFile(ScriptedExtension extension, ScriptedFileType fileType, String fileName, ScriptExecutionExceptionHandling exceptionHandling)
       at Telligent.Evolution.VelocityExtensions.Widget.›(String —, NameValueCollection )
       at Telligent.Evolution.VelocityExtensions.Widget.•.Ÿ()
       at Telligent.Evolution.Components.UserDataService.RunAsUser(Action a, String username, Nullable`1 userId, Nullable`1 membershipId)
       at Telligent.Evolution.Components.UserService.RunAsUser(Action a, String username, Nullable`1 userId, Nullable`1 membershipId)
       at Telligent.Evolution.Api.Services.UserService.RunAsUser(Action a, String username, Nullable`1 userId, Nullable`1 membershipId)
       at Telligent.Evolution.Extensibility.Api.Version1.Users.RunAsUser(String username, Action a)
       at Telligent.Evolution.VelocityExtensions.Widget.Ÿ.Ÿ()
       at Telligent.Evolution.VelocityExtensions.Widget.ExecuteFile(String fileName, IDictionary options)
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at Jint.Runtime.Interop.MethodInfoFunctionInstance.Invoke(MethodInfo[] methodInfos, JsValue thisObject, JsValue[] jsArguments)
       at Jint.Runtime.Interop.MethodInfoFunctionInstance.Call(JsValue thisObject, JsValue[] arguments)
       at Jint.Runtime.ExpressionInterpreter.EvaluateCallExpression(CallExpression callExpression)
       at Jint.Engine.EvaluateExpression(Expression expression)
       at Jint.Runtime.StatementInterpreter.ExecuteExpressionStatement(ExpressionStatement expressionStatement)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Runtime.StatementInterpreter.ExecuteStatementList(IEnumerable`1 statementList)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments)
       at Jint.Native.Function.FunctionPrototype.CallImpl(JsValue thisObject, JsValue[] arguments)
       at Jint.Runtime.Interop.ClrFunctionInstance.Call(JsValue thisObject, JsValue[] arguments)
       at Jint.Runtime.ExpressionInterpreter.EvaluateCallExpression(CallExpression callExpression)
       at Jint.Engine.EvaluateExpression(Expression expression)
       at Jint.Runtime.StatementInterpreter.ExecuteExpressionStatement(ExpressionStatement expressionStatement)
       at Jint.Engine.ExecuteStatement(Statement statement)
       at Jint.Runtime.StatementInterpreter.ExecuteStatementList(IEnumerable`1 statementList)
       at Jint.Engine.Execute(Program program, JintCallStack callStack)
       at Telligent.Evolution.Platform.Scripting.Implementations.ScriptedExtensionExecutionService.ExecuteJavascript(JavascriptExecutionContext context, String resourceName, DateTime sourceLastModifiedDateUtc, Func`1 getSource, ScriptLanguage parentLanguage, String scriptName)
       at Telligent.Evolution.Platform.Scripting.Implementations.ScriptedExtensionExecutionService.<>c__DisplayClass27_0.<ExecuteScriptByName>b__0()
       at Telligent.Evolution.Platform.Scripting.Implementations.ScriptedExtensionOutputCachingService.Get(ScriptedExtension extension, String cacheKey, Boolean cacheable, Func`1 getRenderedOutput)
       at Telligent.Evolution.Platform.Scripting.Implementations.ScriptedExtensionExecutionService.ExecuteScriptByName(ScriptedExtension extension, String scriptName, ScriptExecutionExceptionHandling exceptionHandling)
       at Telligent.Evolution.Platform.Automations.Implementations.AutomationExecutionService.<>c__DisplayClass10_0.<Execute>b__0()
       at Telligent.Evolution.Components.UserDataService.RunAsUser(Action a, String username, Nullable`1 userId, Nullable`1 membershipId)
       at Telligent.Evolution.Components.UserService.RunAsUser(Action a, String username, Nullable`1 userId, Nullable`1 membershipId)
       at Telligent.Evolution.Api.Services.UserService.RunAsUser(Action a, String username, Nullable`1 userId, Nullable`1 membershipId)
       at Telligent.Evolution.Platform.Automations.Implementations.AutomationExecutionService.Execute(TextWriter writer, ConfiguredAutomation configuredAutomation, AutomationTriggerContext triggerContext, Nullable`1 cancellationToken, Boolean throwExceptions)
       at Telligent.Evolution.Platform.Automations.Implementations.AutomationExecutionService.<>c__DisplayClass11_1.<Initialize>b__0(Object arguments)
       at Telligent.Evolution.Forums.Plugins.ForumApiRegistrar.<>c__DisplayClass6_21.<RegisterEvents>b__53(ForumThreadBeforeUpdateEventArgs args)
       at Telligent.Evolution.Extensibility.Api.Version1.ForumThreadBeforeUpdateEventHandler.Invoke(ForumThreadBeforeUpdateEventArgs e)
       at Telligent.Evolution.Forums.Internal.Thread.ForumThreadEventExecutor.OnBeforeUpdate(ForumPost forumthread, ForumPost originalForumThread)
       at Telligent.Evolution.Forums.Internal.Thread.ThreadDataService.MovePost(ForumPost post, Int32 moveToForumId, Int32 movedBy, Boolean sendEmail)
       at Telligent.Evolution.Api.Plugins.ContentConversion.ForumThreadConverter.Convert(Guid sourceContentId, Guid targetApplicationId, Guid targetApplicationTypeId, IDictionary options)
       at Telligent.Evolution.CoreServices.ContentConversion.Implementations.ContentConversionService.Converter.Convert(Guid sourceContentId, Guid targetApplicationId, Guid targetApplicationTypeId, IDictionary options)
       at Telligent.Evolution.CoreServices.ContentConversion.Implementations.ContentConversionService.Convert(Guid sourceContentTypeId, Guid sourceContentId, Guid targetContentTypeId, Guid targetApplicationId, Guid targetApplicationTypeId, IDictionary options)
       at Telligent.Evolution.Api.Services.ContentConversionApiService.<>c__DisplayClass6_0.<Convert>b__2()
       at Telligent.Evolution.Extensibility.Api.Version1.Process.RunProcessWithDisabledNotifications(Action a)
       at Telligent.Evolution.Api.Services.ContentConversionApiService.<>c__DisplayClass6_0.<Convert>b__1()
       at Telligent.Evolution.Extensibility.Api.Version1.Process.RunProcessWithDisabledActivityStories(Action a)
       at Telligent.Evolution.Api.Services.ContentConversionApiService.<>c__DisplayClass6_0.<Convert>b__0()
       at Telligent.Evolution.Extensibility.Api.Version1.Process.RunProcessWithDisabledAbuseChecking(Action a)
       at Telligent.Evolution.Api.Services.ContentConversionApiService.Convert(Guid sourceContentTypeId, Guid sourceContentId, Guid targetContentTypeId, Guid targetApplicationId, Guid targetApplicationTypeId, IDictionary options)
       at Telligent.Evolution.Rest.Resources.ContentConversion.ContentConversionRoutePlugin.ConvertContent(IRestRequest request)
       at Telligent.Evolution.Rest.Framework.Infrastructure.RestPluginHttpHandler.ProcessRequest(HttpContextBase context, HttpResponse httpResponse)
       at Telligent.Evolution.Rest.Framework.Infrastructure.RestPluginHttpHandler.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
       at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
       at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
       at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
  • Former Member
    0 Former Member in reply to Stephen Vicino

    That appears as if there is no exception, but just failing some check along the way.  There are some checks that if failed, will cause that generic error to be logged.

    • User you are sending email to has no Private Email address or has disabled receiving emails.
    • The process that is executing when the email is being sent has notifications disabled <-- good possibility it may be this, since it works in one automation but not another.
    • Trying to send email to a system account
  • I am using my User Id and the same code execution is working in the script sandbox so i believe 1 and 3 have been checked.

    How would I check if a process has notifications disabled?

  • if possible can you please share the exact code you are using for sending emails?

    that would look like core_v2_email.Send(subject, body, { FromEmail: fromEmail, ToEmail: allEmails[te] }); 

  • return core_v2_email.Send("Test2","Test1", {ToUserId: 85429});


    This code works in script sandbox, but throws the error I posted above when fired from an automation with the ForumThread Before Update event. The thread author is getting the Verint OOTB move notification on this action however,

  • Former Member
    +1 Former Member in reply to Stephen Vicino

    Now that I know you are using the Move (Content Conversion Service), that process is run with Notifications (and ActivityStory and Abuse) disabled to prevent any of the standard notifications/emails from being sent.

    I am filing a bug to take a look at this.  Either we need a way for you to temporarily override the Notification Disabling in your ExecuteFile call or API SendEmail calls should not be subject to that flag.

    The only good workaround I currently see would be to create your own widget extension that sends an email that does not make use of our APIs.

    TE-17689: Api SendEmail calls are subject to ProcessDisableNotifications setting

    Completed for 12.1.3, 11.1.13