✅ Schedule event at future DateTime based on DateOnly input, doesn't work if called <2min before
It seems to work fine during testing, but when I call
ScheduleMethod(DateOnly);
too close to the trigger time I get an error. System.ArgumentOutOfRangeExemption
The added or subtracted value results in an un-representable DateTime. I tested this morning at approx 6:53am and it calculated the Time unit trigger, closed and tried again at approx 6:58am and got the error.2 Replies
I'm not sure why you are getting an ArgumentOutOfRange exception, you might want to log your inputs so you can create a debuggable test case.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.