When a data not formatted as expected is present on the UserTable, GetNextCode fails with index out of boundaries exception.