An escalation date cannot be smaller than the startdate

  • 18 January 2008
  • 1 reply
  • 0 views

Badge
We have received this kind of error in our production. The error is clear but I cant understand why it occured, because the code was designed to escalate a few days after the stardate. Any idea how this error was hit?

1 reply

Badge +13

Put this code in there to catch any exceptions:  

     DateTime = DateTime.Parse(strDateTime)

    'If we don't do this the start date might indicate it started in the past
    If DateTime < Date.Now Then
        DateTime = Date.Now
    End If

   
    K2.SetEscalationRule(DateTime)

Reply