Digital Exchange

 View Only
last person joined: yesterday 

This community is a place to discuss Blue Prism DX assets and development.

  • 1.  BluePrismScheduleMonitor send mail error

    Posted 02-25-2022 14:43
    Hello,

    I'm currently testing BluePrismScheduleMonitor version 1.0.2, which by the way is version 1.0.1 according to the details 😁

    When I try to send an email with the information, I get the following message "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 SMTP - Client was not authenticated to send anonymous mail during MAIL FROM"

    For testing the smtp object on blueprism using I think as in the BluePrismScheduleMonitor the .net SmtpClient class, we managed to send a mail with the same info.

    However we had modified the object code to use the "UseDefaultCredentials" property so that we didn't have to re-enter the password.

    I asked our exchange expert about the error and he said "This is normal! The problem is that the application did not authenticate itself before sending the email."

    Have you already identified the error?

    ------------------------------
    Ludovic COTTEZ-ABRATE
    ------------------------------


  • 2.  RE: BluePrismScheduleMonitor send mail error

    Posted 02-25-2022 19:47
    Hi Ludovic,

    Yes, the SmtpClient class is being used the same way in both the BluePrismScheduleMonitor and the SMTP VBO - which is set up for direct send.

    A few questions:
    1. Are you using smtp.office365.com as an SMTP server?
    2. I presume multi-factor authentication is not enabled for this email account? Or if it is, an App Password is being used instead.
    3. Is a full email address being entered in the "Email Username" field? eg. 'user@example.com' instead of just 'user'
    4. Is the email recipient address part of another domain? or internal to the same org?

    I have read that setting the SmtpClient.UseDefaultCredentials property to false is often all it takes to get it working. Is this how your customized SMTP VBO is configured?


    ------------------------------
    Charles Kovacs
    Developer Consultant
    Blue Prism
    America/Chicago
    ------------------------------



  • 3.  RE: BluePrismScheduleMonitor send mail error

    Posted 02-26-2022 13:52
    Hello,

    Thank you for your feedback.

    1 : We use our internal smtp host
    2 : Without going too far, it doesn't seem to me that
    3 : Yes, we have entered a full address
    4 : It is an internal address too

    To complete, we tested the VBO SMTP object with (if we want to send an email with the email associated with the open session account without entering the password) or without the UseDefaultCredentials with success, we also entered the same info to test in BluePrismScheduleMonitor.

    I would say that the particularity is that in the VBO it asks us for a user/password in addition to the "From" parameter, necessary to authenticate with the System.Net.NetworkCredential before sending the email.

    I'm not sure what I'm saying because I don't have the source code in front of me but I think it could be an idea.

    ------------------------------
    Ludovic COTTEZ-ABRATE
    ------------------------------



  • 4.  RE: BluePrismScheduleMonitor send mail error

    Posted 03-07-2022 20:24
    Hi Ludovic,

    I have taken some time to look further into this issue. A proper v1.0.3 release is available for download now: https://digitalexchange.blueprism.com/dx/entry/9648/solution/blue-prism-schedule-monitor

    The notification component is refactored so Username and From fields are separate and UseDefaultCredentials is set to false. I wasn't able to recreate the error you are experiencing, but this new solution still passes my existing tests, just can't 100% confirm this is a sure fix for you. Regardless, looking forward to how it works if you give it a try. And to that end, the source code for the Schedule Monitor is also available should you find it necessary to fork - the download link is towards the bottom of the page linked above.

    Cheers

    ------------------------------
    Charlie Kovacs
    Sr. Digital Exchange Engineer
    Blue Prism
    Austin, USA
    ------------------------------



  • 5.  RE: BluePrismScheduleMonitor send mail error

    Posted 03-23-2022 11:16
    Hello,

    Thank you for the correction, it does work now.

    Looking at the source code I have a question about the choice to query the "BPAScheduleLog" table based on the "firereason" field.

    To test this I ran a schedule with a 2 min occurrence without the resource being run, I can see the errors in the recent activities but in the [BPAScheduleLog] table the entries show me a "firereason" of 0.

    However, in the [BPAScheduleLogEntry] table I can see the errors.

    Do you know if this is a malfunction?

    Thank you for your help,

    ------------------------------
    Ludovic COTTEZ-ABRATE
    ------------------------------



  • 6.  RE: BluePrismScheduleMonitor send mail error

    Posted 03-23-2022 15:44
    Hello,

    I believe there are two ways in which a schedule might be considered a failure:
    1. The schedule fails to fire at all
    2. The schedule fires but runs into a termination
    The Schedule Monitor tool is considering option number 1 - to determine instances where a schedule failed to fire at all. My understanding  is the [BPAScheduleLogEntry] table covers the second option by recording instances where the schedule successfully fired but ran into a termination.

    If I follow, it sounds like you are interested in having the Schedule Monitor report both scenarios (misfires and terminations). I think it would be a good idea, I will look into it.


    ------------------------------
    Charlie Kovacs
    Sr. Digital Exchange Engineer
    Blue Prism
    Austin, USA
    ------------------------------



  • 7.  RE: BluePrismScheduleMonitor send mail error

    Posted 03-23-2022 16:35
    Hello,

    Thank you for your feedback, indeed it explains the reason, for the second case I think it could interest many members :)


    ------------------------------
    Ludovic COTTEZ-ABRATE
    ------------------------------



  • 8.  RE: BluePrismScheduleMonitor send mail error

    Posted 8 days ago
    Hi Ludovic,

    I updated the Schedule Monitor recently so that it can detect both types of schedule failures we discussed previously in this thread. This will be version 1.1.0 here on the Digital Exchange if you are interested: https://digitalexchange.blueprism.com/dx/entry/9648/solution/blue-prism-schedule-monitor

    ------------------------------
    Charlie Kovacs
    Sr. Digital Exchange Engineer
    Blue Prism
    Austin, USA
    ------------------------------



Welcome to the Blue Prism Digital Exchange Community!

The Blue Prism Digital Exchange is a "shop window" for new and emerging technologies—a platform that puts powerful RPA and AI capabilities into the hands of business leaders. Users can find and apply pre-built AI capabilities, in the form of downloadable integrations and Visual Business Objects (VBOs), to automated processes. These assets connect and integrate Digital Workers, existing systems and processes to Blue Prism's technology partners, creating a solid foundation of AI-enabled Intelligent Automation that's scalable and sustainable.

Blue Prism Digital ExchangeDX Asset IdeasContact DX Support

FAQs

The Blue Prism Digital Exchange (DX) is an online marketplace where businesses can instantly access, apply and share pre-built AI, cognitive and advanced RPA technologies from best-in-class providers. These assets easily connect to existing digital workers, systems and processes to enhance automation capabilities.
The Digital Exchange is free to all users. Most of the content on the DX is free to download but there are some submissions that do have a cost associated. The submissions with a cost are advertised on the asset card and profile. No unwanted costs will be applied to any users.
You can visit and browse the Digital Exchange here. If you would like to consume or download any material it is necessary to create an account on the Blue Prism Portal first.
Everyone can access the Digital Exchange and consume the assets on it. If you would like to contribute to the marketplace it is necessary that you create an account and sign up as a partner.