Write them in a separate target file. Ideally , there should be no database level rejects. Only at the router level , which you can send to a flat file.