Printing: Error Type mismatch 13 in line

The database replicas exist in 2 servers and the agent is running in 2 different servers. The agent is working fine in 1 server. But the same agent is giving this error in second server: -

The server log.nsf reports this error in one server:

AMgr: Agent (‘agent- Scheduled|agnt’ in ‘folder\file.nsf’) printing: Error Type mismatch 13 in line 216

Why the agent is working fine in one server and not working in another server. Is something to be done with server date/zone format?

printing: Error Type mismatch 13 in line 216

The line 216 refers to: (Call curdate.AdjustYear( -1 ))

Subject: Need to see more code

It sounds like curDate doesn’t contain a valid date/time value, but unless you show us how you are setting that value, it is just speculation as to what your actual problem is.