Scheduled agent issue in replicated servers

Hi,

I have a scheduled agent which runs 2AM every day. Within the agent, there is trigger to send nitification whenever the day is the FIRST day of the month. Code snippet is below:

sendMemo = False

Set dtTarget = New NotesDateTime(Datevalue(Today))

dayofmon% = Day(dtTarget.DateOnly)

If dayofmon% = 1 Then sendMemo = True

if sendMemo then

//call send memo routine

end if

The agent works fine before. But problem happens after a replica is built on a INDIA server. The problem: no memo is sent even the running day is the first day of the month.

BTW, I configurated agents on replicas to make it run on USA server ONLY. Does the time zone cause this problem. I am confused…

thanks for help!

Subject: scheduled agent issue in replicated servers

Hi,

Have you tested the send memo routine on the India server to ensure it works? There could be issues like access to mail servers, authority, etc.

I’m not a Notes admin guy, so maybe that explains why I am confused by your setup. If the USA and India servers replicate their DBs, then the agent only needs to run on one server and a regular replication schedule will ensure the DBs on the two servers are in sync.

Ken