add genError to pixelRecord
modify the GenError handling for generic CPE
Merge pull request #3373 from dkotlins/v510_pre6

V510 pre6