I have a basic error:
The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.\r\nThe statement has been terminated.
I have this thing in multiple places, but when stack trace throws an exception I don't know how to find what method or part of code is causing the problem.
The problem is its hard to debug, because when I add 1 element it works properly, when I loop I guess It loses the assignment of datetime somehow.
The code is too long, I just need a tip how to read the stack trace when it throws the exception.