Robotic Process Automation

Apply Email Search Filer not working

  • 1.  Apply Email Search Filer not working

    Posted 3 days ago
    when I apply email search filter and use for each loop to read email messages, it returns the following error. 

    System.NullReferenceException: Object reference not set to an instance of an object.
    at WDG.Automation.Base.MailKitClientBase`1.<EnsureClientConnected>d__23.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Base.ImapClient.<InternalFetchMessages>d__11.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Base.MailClientBase.<FetchMessages>d__81.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Base.MailClientBase.qGV3egaU5w8VEMGEf8g.<MoveNextAsync>d__8.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Base.ForeachCommand.<Execute>d__23.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ErrorHandler.siGoeLgDn4jTHyxEYZh(Object )
    at WDG.Automation.Language.ErrorHandler.wcxFopw8BV(Exception )
    at WDG.Automation.Language.ErrorHandler.HandleExecutionExceptionIfNeeded(Exception exception, IAutomationCommand command)
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()

    ------------------------------
    Nisala Chamath Jayasinghe
    ------------------------------