CLONE - Import Trans Log > Duplicate Records are being added

Issue No: ST-1727
Created 5/25/2020 8:32:10 AM
Type Bug
Priority Major
Status Closed
Resolution Fixed
Fixed Version 19.2, 20.1, 21.1
Description This issue relates to i21 Help Desk ticket. Click the link below to go to Help Desk ticket.   [HDTN-245012 - Cig Scan Data error with RJR|https://helpdesk.irely.com/iRelyi21live//#/HD/Ticket/?ticket=HDTN-245012]   * Issue ** During Trans Log file import, multiple records are being added to the database with the same intTermMsgSN, intScanTransactionId, and dtmDate. *** intScanTransactionId is a rownumber calculated field *** Currently this is being duplicated when there is more than one payline by pay codes ** Together these fields should always be unique. * Requirements ** Transaction Records should not be duplicated in database on import. *** Take First Payment Line only ** Need cleanup script to remove duplicates, while preserving the original transaction. *** Should keep the first payment line and remove additional lines