Issue #24154:add error checking to coitem trigger