Scheduled Jobs

Sourabh22
Tera Contributor

I have created a scheduled job to create catalog task on 1st of every month but sometimes it is creating duplicate tasks 
do I have to run it as timezone?

8 REPLIES 8

Okay... so it may be not be time zone isue, did you check the created by for both?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

yeah same for the both tasks

Sorry mate, no idea then. May be log a case with SN help here. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Siddhesh Gawade
Mega Sage
Mega Sage

Hello @Sourabh22 , 

 

you can Implement some checks in your scheduled job to verify if a record already exists. Utilize glideQuery to inspect certain fields to ensure their uniqueness. - Only create a new record if these conditions are met.

 

Is there any pattern that you can see when this duplicates records creating? maybe that will help to understand the issue.

 

Kindly mark the answer āœ”ļø Correct or Helpful āœ”ļø If it addresses your concern.


Regards,

Siddhesh