Running automation following a 5-4-4 type schedule

Hi,
I was wondering how I would be able to run a job every 4 weeks for 2 weeks, and then 5 weeks. So it basically runs on 2/4/23, 3/4/23, 4/1/23, and then 5/6/23. Not quite sure how to configure the trigger to make it work as such. Any help would be appreciated

Hello @ibrahimabdulqadi.1, I would recommend doing this on Orchestrator:

  1. Open the Orchestrator web interface.
  2. Go to the Triggers section.
  3. Create a new trigger for the first schedule:
  • Set the Start Date and End Date as mentioned.
  • Choose the Weekly recurrence pattern.
  • Set the Interval to 4.
  • Select the specific day of the week you want the job to start on.
  • Choose First and Second for Weeks of Month.
  1. Create a second trigger for the second schedule:
  • Set the Start Date as mentioned.
  • Choose the Weekly recurrence pattern.
  • Set the Interval to 5.
  • Select the specific day of the week you want the job to start on.
  • Choose First for Weeks of Month.

By creating these two triggers, you’ll achieve the desired schedule of running the job every 4 weeks for 2 weeks and then running it after a gap of 5 weeks.

Hi, @rodrigo.simao appreciate the response. I don’t see any option for where it says “Interval”? All I have for weekly are boxes for Every Monday, Tuesday, Wednesday, and so on.

we can check our cron ideas if it is conform or not with the concept by:

  • A: will it result to a calendar depending series

OR

  • B: will it result to a recurrent calendar independent series

When answer is A, the idea is not conform to the cron concept

For the schedule you described:

  • Run every 2 weeks (14 days)
  • Run every 4 weeks (28 days)
  • Run every 5 weeks (35 days)

You can try using a combination of weekly triggers and setting appropriate intervals. For example:

  1. Run every 2 weeks: Set the trigger to run on a specific day every 14 days (2 weeks).
  2. Run every 4 weeks: Set another trigger to run on a specific day every 28 days (4 weeks).
  3. Run every 5 weeks: Similarly, set another trigger to run on a specific day every 35 days (5 weeks).

Hi @ibrahimabdulqadi.1

Welcome to Community!!

Could you please elaborate and specify your requirement so that we will be able to give you an solution.

Regards,

In addition to above also it is helpfully to crosscheck e.g. with online helpers like:

e.g. we do see that a every X of Y is also bound to unit and dimension

Sure, I need the automation to run on a recurring basis of a 5-4-4 week schedule. On 2/4, it will run after 4 weeks on 3/4, then again after 4 weeks which will be 4/1. The next time it runs will be 5 weeks later, on 5/6/23. Then the cycle repeats and it runs after 4 weeks, on 6/3,

Right it would be a recurring pattern of the initial date, then 4 weeks, then 4 weeks, then 5 weeks. So my initial thought was to use 3 triggers with a cron expression for every 13 weeks after these 3 dates: 2/4/23, 3/4/23, and 4/1/23, but I was wondering if there was a better way to do this.

looks like the A case - as resulting dates are not in a recurring pattern

  • there is no week unit
  • every X days is anchored on a month day

When marking for a particular 2 years series all schedules with a pen on a paper calendar you can easy see that it is more an A case

Hi @ibrahimabdulqadi.1

  1. Create the First Trigger (5 Weeks):
  • Go to the UiPath Orchestrator and navigate to the “Triggers” section.
  • Click on the “Add Trigger” button to create a new trigger.
  • Configure the trigger as follows:
    • Name: Give your trigger a descriptive name.
    • Start Process: Select the process/job you want to run.
    • Start Time: Set the initial start time as the desired date (e.g., 2/4/23).
    • Start Frequency: Set it to “Daily.”
    • Interval: Set it to “1” day(s).
    • Days: Select the days on which you want the job to run (Monday, Tuesday, Wednesday, etc.).
    • Occurrences: Set it to “35” occurrences (5 weeks).
  • Save the trigger.
  1. Create the Second Trigger (4 Weeks):
  • Click on the “Add Trigger” button again to create another trigger.
  • Configure the trigger as follows:
    • Name: Give your trigger a descriptive name.
    • Start Process: Select the process/job you want to run.
    • Start Time: Set the initial start time as the desired date (e.g., 3/4/23, which is the end of the first 5-week cycle).
    • Start Frequency: Set it to “Daily.”
    • Interval: Set it to “1” day(s).
    • Days: Select the days on which you want the job to run (Monday, Tuesday, Wednesday, etc.).
    • Occurrences: Set it to “28” occurrences (4 weeks).
  • Save the trigger.
  1. Create the Third Trigger (4 Weeks):
  • Click on the “Add Trigger” button once more to create the third trigger.
  • Configure the trigger as follows:
    • Name: Give your trigger a descriptive name.
    • Start Process: Select the process/job you want to run.
    • Start Time: Set the initial start time as the desired date (e.g., 5/6/23, which is the end of the first 4-week cycle).
    • Start Frequency: Set it to “Daily.”
    • Interval: Set it to “1” day(s).
    • Days: Select the days on which you want the job to run (Monday, Tuesday, Wednesday, etc.).
    • Occurrences: Set it to “28” occurrences (4 weeks).
  • Save the trigger.

Hope it helps!!

1 Like

@ibrahimabdulqadi.1

If you are happy with the explanation and found the solution for your query please mark it as solution to close the loop. Please do reply if further assistance needed.

Happy Automation
Regards,

Hi, when I choose Daily, my only options are: “Every day at ____ hour(s) and ____ minute(s)” there is no option for interval or days or occurences

Hi @ibrahimabdulqadi.1

  1. Create Three Triggers:

    • Go to the UiPath Orchestrator and navigate to the “Triggers” section.
    • Click on the “Add Trigger” button to create a new trigger for each phase of the schedule.
  2. Create the First Trigger (5 Weeks):

    • Configure the first trigger as follows:
      • Name: Give your trigger a descriptive name.
      • Start Process: Select the process/job you want to run.
      • Start Date: Set the initial start date of the 5-week cycle.
      • Start Time: Set the time of day when you want the process to start.
      • Recurrence: Select “Weekly.”
      • Days: Choose the days of the week (e.g., Monday to Friday) for the 5-week cycle.
      • Repeat Every: Set it to “35” days (5 weeks).
  3. Create the Second Trigger (4 Weeks):

    • Configure the second trigger:
      • Name: Give your trigger a descriptive name.
      • Start Process: Select the same process/job.
      • Start Date: Set the initial start date of the 4-week cycle, right after the end of the 5-week cycle.
      • Start Time: Set the time of day when you want the process to start.
      • Recurrence: Select “Weekly.”
      • Days: Choose the days of the week (e.g., Monday to Thursday) for the 4-week cycle.
      • Repeat Every: Set it to “28” days (4 weeks).
  4. Create the Third Trigger (4 Weeks):

    • Configure the third trigger:
      • Name: Give your trigger a descriptive name.
      • Start Process: Select the same process/job.
      • Start Date: Set the initial start date of the second 4-week cycle.
      • Start Time: Set the time of day when you want the process to start.
      • Recurrence: Select “Weekly.”
      • Days: Choose the days of the week (e.g., Monday to Thursday) for the 4-week cycle.
      • Repeat Every: Set it to “28” days (4 weeks).

Hope it helps!!

I don’t have that option for Weekly either, all I have for weekly are boxes for Every Monday, Tuesday, Wednesday, and so on.