If they do not continue making up UPCs for the items, I would put a flag via a custom field on the affected item records. Then the input (if it's a search) and output (if it's a list of objects, each referencing an item) of your getInputData could include that flag.