IBM Sterling Transformation Extender

 View Only
  • 1.  How to prevent processing the same file twice?

    Posted Thu May 02, 2024 04:43 AM
    Edited by NeverXP YANG Thu May 02, 2024 04:45 AM

    Hi, can anyone help me with this situation?

    We placed a file to a WTX map, but the file was processed twice. Even the second time we got a source not available error.

    Is it because of the multithreading setting?

    Settings for Input card: Onsuccess=Delete, OnFailure=Commit.



    ------------------------------
    NeverXP



  • 2.  RE: How to prevent processing the same file twice?

    Posted Fri May 03, 2024 02:50 PM

    Triggering will happen if the file timestamp is updated.  Both outputs are set to "sink", which suggests you are doing named adapter rules in the output cards.  If those named adapter rules change the input file in place (not a copy) that will update the timestamp and trigger another watch event.

    If "multithreading setting" means Cooperative Listener mode, that should not cause a problem like this.  We have been running tons of files through coop Listener without any collisions.

    Jim



    ------------------------------
    Jim Davee
    ------------------------------



  • 3.  RE: How to prevent processing the same file twice?

    Posted Mon May 06, 2024 05:22 AM
    Edited by NeverXP YANG Mon May 06, 2024 05:27 AM

    Thanks Jim.

    We did not update the input file in WTX Map, the logic is that whenever the Map is triggered, it will fetch the data from the database and generate a file with a unique file name. What happened is that WTX generated two files because of this issue. Understand that WTX wasn't supposed to be like that. But it happened.

    I've been using WTX for over ten years and this is the first time I've encountered this problem. Is this something to do with this setting in the launcher?

    And this?



    ------------------------------
    NeverXP YANG
    ------------------------------



  • 4.  RE: How to prevent processing the same file twice?

    Posted Mon May 06, 2024 09:42 AM

    We normally set our File triggers to Rollback instead of Commit for "OnFailure".  I'm wondering if that Commit is upping the timestamp on the file and causing the 2nd trigger?

    We had a similar problem of double triggers a few years ago when we moved to RHEL.  ITX support helped debug it by setting all the Launcher logs to '1' and we saw the double hits with the 2nd one failing or being in collision with the first.

    The problem we uncovered was letter case!  We had files with longer file names of 20-50 chars where the source was doing a alpha-numeric increment.  The alpha part was mixed case and it could write out fully identical file names except for one single alpha that changed letter case. 

    Launcher was not able to distinguish that letter case change properly on RHEL and was treating both files as the same.  The OS and file system didn't care and knew they were two different files, but Launcher triggering would trip up on it.

    In our case we solved the problem by having the source use upper case only for that increment.  Never had the problem again after that.

    I'm wondering if you have something similar.

    Jim



    ------------------------------
    Jim Davee
    ------------------------------



  • 5.  RE: How to prevent processing the same file twice?

    Posted Mon May 06, 2024 10:17 PM

    We set the File triggers to Commit for "OnFailure" because we want the file to be deleted even if a failure occurs. Is there any other way?

    FYI. We did not encounter any issues with file names. The source system only pushed one file.



    ------------------------------
    NeverXP YANG
    ------------------------------



  • 6.  RE: How to prevent processing the same file twice?

    Posted Mon May 06, 2024 01:31 PM

    Is this a network drive?  I've seen things like this when trying to set up cooperative browsing on a SAN.  Check with your team to see if the drive is throwing NFS errors.   

    Rich



    ------------------------------
    Rich McFate
    ------------------------------



  • 7.  RE: How to prevent processing the same file twice?

    Posted Mon May 06, 2024 10:28 PM

    It is not a network drive. Could a hard drive problem cause this? Which logs to check?



    ------------------------------
    NeverXP YANG
    ------------------------------



  • 8.  RE: How to prevent processing the same file twice?

    Posted Tue May 07, 2024 07:25 AM

    Hi,

    I have few questions. Is the trigger map defined in one system deployed on several launcher?

    If yes, is the CooperativeListener configuration setup to 1 and the MovePrivateFilesDir configured in the dtx.ini? 

    Is the map defined in more than one system?



    ------------------------------
    Thomas Lucas
    ------------------------------