Cron Expression: Daily on Days 1-18 except Sat/Sun

Hello @rchabbeh

I dont believe its possible to do this in one Cron expression.

Happy to be wrong though :slight_smile:

This is how I would achieve what you are asking in 2 steps.

Step 1: Create a Non-Working Days Calendar.
Follow these steps after opening UiPath Orchestrator:

  1. Click ‘Tenant’
  2. Click ‘Settings’
  3. Click ‘Non Working Days’ tab
  4. Upload a CSV for “Weekdays Only”. Unable to share a CSV with you on forums :frowning_face:
  5. Review/double check the non working days (see image below. Blue dots indicate the dates it won’t run - these are based on your spreadsheet).

Step 2: Create Trigger with Cron Expression
UiPath Description: At 08:30 AM and 05:30 PM, on day 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and 18 of the month
CRON: 0 30 8,17 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 * ? *
Select the Calendar from Non Working days:

In summary, these two elements combined will make the job run at the time and dates you require but will not run on weekends because of the Non Working days calendar you have selected.

Hope this helps

Cheers

Steve

1 Like