无网络连接
  1. Home
  2. Questions

Message Source Schedules when Database is offline

作者:@MattA
    2022-12-20 10:05:53.194Z

    Hello

    Wondering what others do with regards to when updating a database when that database is offline overnight for an hour running its backup?

    My scenario is that, as a 24\7 IT Company, we have emails constantly incoming throughout the night and would ideally like to park them until our CRM has completed its backup and then they kick back in. It can sometimes be no emails or a dozen or so that get marked failed with the following:

    Is there a way to make them retry in TAv5 until they are successful?

    Thanks in advance

    Matt

    • 5 回复
    1. R
      @readar
        2023-01-03 21:03:37.034Z

        If you are using an exchange/o365 user mailbox, then you could schedule the message source around the backup and let the emails queue up until the backup is done.

        If using the ThinkAuto mail server, you could drop the incoming email to file and have another file pickup message source (which would do the actual work) checking for these files. The file pickup message source can then be scheduled around the backup.

        Hope that helps.

        1. M@MattA
            2023-01-05 12:19:10.671Z

            Thanks for the response, we do use M365 however, when trying to use the built in schedule to omit just a couple of hours in the morning it wouldn't work.
            I am testing the Timeout option tonight to see if that is my fix.

            Cheers
            Matt

          • R
            回复MattA:
            @readar
              2023-01-05 14:05:43.100Z

              I haven't used the schedule before, sounds like a bug. One other thing I have done is basically to detect any failures during an automation (database updates are one of them) and then queue the message for resend after a couple hours to try again.

              1. M@MattA
                  2023-03-13 16:53:36.416Z

                  Hello

                  Sorry that i'm a tad late in coming back!
                  Are you able to provide the steps\code you have in place that will queue the message for a couple of hours please as i can't seem to get that bit right as it calls up the database to log against at the end of various automated checks and then fails so i am not sure if it is the positioning or the wrong use of On Error or if there's something else i needed to use.
                  As you can see the end looks like this where it eventually calls the database to upload to and then fails.

                  Thank you.
                  Matt

                  1. R@readar
                      2023-03-13 17:30:56.364Z

                      I am just using the scheduled send option within the send email function. If you return a value of 0 for rows affected from the update a database function (or from using the onerror functions) then just send that scheduled email.