Events

  • 12 Oct

    How to send an email when a file is successfully transferred

    How to send an email when a file is successfully transferred

    Q: Just to confirm… for an email to be sent when a file is successfully transferred I tick the On Success button ? I remember the tick box for 1 email per file or 1 email per session.

    A: I’ve added some screenshots to get you started:

    • Open the Rule Events option:

    limagito file mover rule events option

    • Enable ‘On Success’ Event
    • Enable ‘Enable Mail’ with ‘On Success’ Event selected
    • Setup Email
    • Setup SMTP Server if not already done

    limagito file mover send an email when a file is successfully transferred

    • I remember the tick box for 1 email per file or 1 email per session
      • If you want a single email after the scan, and not for each file, then please enable ‘Trigger mail event after scan’.

    limagito file mover rule events options

    If you need any help with this ‘send an email when a file is successfully transferred’ request, please let us know.

    Best Regards,

    Limagito Team

    #smtp #managedfiletransfer #filetransfer #filemanagement

  • 20 Jul

    How to halt moving too many files and send an alert

    How to halt moving too many files and send an alert

    Q: I have a job that moves files from an external S3 bucket into our local storage. The other day a vendor hiccupped and sent 8000 files. Limagito did it’s job and moved them over, which ended up gumming up our systems. Is there any way to limit transfers? I’ve been looking through Help and haven’t seen anything yet.

    For instance…I know this vendor normally sends around 10 a month. Anything over 50 would obviously be abnormal and It would be great to throttle them, even better to send an alert and let us know, so we can correct the issue.

    Any help would be greatly appreciated.

    A: Please have a look at the following setup. So we’ll allow only a maximum of files per month.

    • We used a Windows folder as Source:

    halt moving too many files

    – Function Setup > set Destination Options to ‘Destination Memory & Exit Cyclus on Error’

    limagito file mover function setup

     – Destination Setup:
    • First Destination: Pascal Script
      • This script will check the month and the amount of files it successfully moved
      • You can adjust the “ctMaxFilesAllowed” Const value to allow more or less files per month
    • Second Destination: your output, can be any Destination type.
    • Third Destination: Pascal Script
      • Will increase the internal counter (VIA) if a file is successfully moved
    Link to both scripts, for the first and third Destination.
    limagito file mover Destination setup
    First Destination (Pascal Script):
    limagito file mover halt moving too many files
    Third Destination (Pascal Script):
    limagito file mover halt moving too many files
    – Open Our Rule Events option:
    limagito filemover rule events option
    – Select and enable ‘On Pascal Script Error’ event. Enable ‘Enable Mail’ and adjust the mail setup. There is a test button available.
    limagito file mover rule events setup
    Enable the ‘Error event memory’ because otherwise you’ll get too many emails in case the maximum of files is reached.
    limagito file mover rule events setup
    FYI: When you would test this setup and max files are reached we added a way to reset the internal counter (max files allowed per month).
    Right click on the Counter value below and select ‘Reset Counter’.
    limagito file mover reset counter

    This is is just an example of what is possible. If you need any help with this ‘halt moving too many files’ setup, please let us know.

    Best Regards,

    Limagito Team

    #managedfiletransfer #filetransfer #filemanagement

  • 11 Jan

    How to monitor if a file doesn’t make it to a directory

    Q: I’m looking for a way to monitor if a file doesn’t make I to a directory.  The filename of the files have the date in it.  “Importer_WXII_mm-dd-yyyy-#0.xml”.  example for today would be “Importer_WXII_01-09-2024-#.xml”  The date in the filename will not match the modified or created time stamp of the file.  I’m looking for a way to monitor the directory send a failure email if the file name is not present within a certain time span of the date.  Example would be

    If “Importer_WXII_01-11-2024-#0.xml” file exists and the current computer date is 01-10-2024 then nothing happens the file needed exists so no issues.  On the other hand.

    If “Importer_WXII_01-11-2024-#0.xml” file does not exist and the current computer date is 01-10-2024 and its 12hours before 01-11-2024 then email is sent.

    limagito file mover monitor if a file does not make it to a directory

    A: We did a test and added the following screenshots to get you started.

    • We used a Windows folder as Source:

    limagito file mover windows folder as source

     

    • We added the following Filename Include Filter. This filter will check if the xml you need is available.
    Importer_WXII_%TCD:[IncDay+1]MM-DD-YYYY:-#0.xml

    limagito file mover filename filter

    • Important, do not forget to enable ‘Allow parameters in File Name Filter’:

    limagito file mover file filter

    • Set Function to Copy, don’t worry we are not going to do anything with the xml files.

    limagito file mover function setup

    • We added a dummy ‘Pascal Script’ as Destination:
    Begin
    psExitCode:= 1;
    // ... add your code here
    psLogWrite(1, '', 'We found file: ' + psFilePath + psFileName);
    End.

    limagito fil emover pascal script as destination

    • Next, Rule Events setup:

    limagito file mover rule events option

    • Select and enable the ‘On No File Found’ event. We are going to send an email when the xml file is not available.
      • Enable and setup ‘Mail Event’:

    limagito file mover rule events setup

      • Enable and setup ‘Pascal Script’. This will add some info into the log window.
    Begin
    psExitCode:= 1;
    // ... add your code here
    psLogWrite(1, '', 'xml file not available');
    End.

    limagito file mover rule events setup

    • Schedule setup:
      • Disable Timer:

    limagito file mover timer setup

      • Add a Schedule when you would like to check for this xml file.

    limagito file mover scheduler setup

    • You can add multiple Schedules if you want.

    limagito file mover scheduler setup

    #managedfiletransfer #filetransfer #filemanagement

    If you need any help with this ‘monitor if a file doesn’t make it to a directory’ question, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team Events Filters
1 2
SEARCH