255 is not wide enough for diagnosticCode. Surely it can't go over 1000.