The Definitive Guide to Data Quality
Solved! Go to Solution.
Have you got a screenshot of your Job, the error message and your constructed SOQL statement?
Sorry if I was not very clear before. The issue is what it says in the error: the operator less than (<) is invalid for the types date and null -- LastModifiedDate < null
This indicates that the value of context.lastRunDate is null -- likely because it is not being set before you execute your query.