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

hello,
how to write in the trigger the cron expression of run at 8h30 and 17h30 from the first of the month to 18 of the month except the weekend , no run on saturday and sunday,
i tried this expression but not accepted in the orchestrator,
00 30 08,17 1-18 * MON-FRI *
any idea o suggession? thanks,

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

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.