Cron Expression: 1st Day of Every Month

I need help with creating a cron expression for my trigger.
The process needs to run every 1st day of every month of the year.
I’ve tried to use:
0 0 1 * *
0 0 0 1W ?

Everytime I use them it throws an error: Invalid cron expression syntax (#1600)

@Martin_Juel_Andersen
Welcome to the forums have a look here:

Hi @Martin_Juel_Andersen

Welcome to UiPath Forum.

Can you please try the below one?

First Working Day of Every Month
0 0 0 1W*?*

OR

First Day of Every Month

* * 1 * * 

Thank you.


eg. 7 AM
done with:
https://www.freeformatter.com/cron-expression-generator-quartz.html
grafik

Hi @Martin_Juel_Andersen

You can try with this Cron expression

0 0 0 1 1-12 ? *

https://www.freeformatter.com/cron-expression-generator-quartz.html

Regards
Gokul

Hi,

Do you want run in any specific timing.

0 0 8 1 * ?

this would run run on 1 st of the month at 8 AM

Thank you to everybody who came up with suggestions!
@ppr had the correct solution, and this fixed the issue.
Thank you for the warm welcoming aswell :slight_smile:

To expand on why this is the correct solution for anyone that would stumble on it

UiPath Orchestrator uses Quartz.NET Framework for its Cron Expressions.

This is expecting the following (6 to 7) fields in the expression with the last one year being optional. If you come from other non-compatible expression parsing, you might be used to only 5 fields where seconds is not supported.

* * * * * * *
| | | | | | | 
| | | | | | +-- Year              (range: 1970-2099)
| | | | | +---- Day of the Week   (range: 1-7, SUN-SAT)
| | | | +------ Month             (range: 1-12 JAN-DEC)
| | | +-------- Day of the Month  (range: 1-31)
| | +---------- Hour              (range: 0-23)
| +------------ Minute            (range: 0-59)
+-------------- Seconds           (range: 0-59)

More details in the links below

https://www.quartz-scheduler.net/

You can also find other topics by searching the Cron Tag for similar problems/solutions.

3 Likes

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