We have a scenario where we may receive the Duplicate documents while resubmitting the Process Instance. We have to eliminate the duplicate documents in TN and it should not be routed to the Customer.
Hence we tried using the Pre-Processing Action “Check for Duplicate Document” in TN doc type. Whenever the same Doc-id comes into TN, TN Checks for the duplicate and throws the error, TN is throwing the error as expected. But even if we have the Criteria "Recognition errors = Has no errors set in the Processing Rule, whenever the duplicate document enters TN, the action (Execution of Service) is happening which shld not happen. The document status is DONE W/ERRORS due to duplicate doc but the action of that rule is getting executed.
Please advise. Is it means that we have to handle this duplication error in my service invoked by the action of the rule or To go for a Customized service for duplicate checking.