• I did a simple test and the same scenario works absolutely fine for me. Not sure anymore what the problem could be.

    The only other thing that comes to my mind is Null values, is it possible that the this parameter could be Null by any chance? NULL values can cause such errors too.