IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Inbuilt service - pub.client.sftp.put

    Posted Fri November 04, 2022 06:59 AM

    Hi All,

    Im using pub client sftp put .

    By using this im able to place the file in the desired location. But the file is still visible in source location ?

    Any idea why the file is still visible on the source location ? Does SFTP put copys the file or it does cut+paste


    #Service-Designer
    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Inbuilt service - pub.client.sftp.put

    Posted Fri November 04, 2022 09:09 AM

    It uploads a copy to the remote location - this is how the file-transfer protocol works, and it’s not a webMethods feature/limitation.

    You need to manage the cleanup at the source, after a successful upload - you can add a local file deletion step at the end of your flow, on success (inside Try).

    Alternatively, you can create a master clean-up service that will clean multiple folders, if you have a lot of file-based instances. Use a property/config type of design, instead of harcoding paths, file patterns, file age, etc. You can then create a scheduled job for this.

    KM


    #Service-Designer
    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 3.  RE: Inbuilt service - pub.client.sftp.put

    Posted Fri November 04, 2022 09:23 AM

    As Kasi has mentioned, it works like a copy and not as cut paste , More details in the documentation at built in services guide


    #Service-Designer
    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Inbuilt service - pub.client.sftp.put

    Posted Fri November 04, 2022 02:37 PM

    Another common approach is to move (rename) the source file to an archive directory after the successful put.


    #Flow-and-Java-services
    #Service-Designer
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Inbuilt service - pub.client.sftp.put

    Posted Tue February 14, 2023 06:31 PM

    what method are you using to know that there is a file in source location? Or is it always a fixed file name?
    are you applying any transformation?


    #Integration-Server-and-ESB
    #webMethods
    #Service-Designer
    #Flow-and-Java-services