Automic Workload Automation

 View Only

  • 1.  EVNT.FILE OBJECT ENDED WHEN NO FILE IN THE DIRECTORY

    Posted Feb 25, 2025 11:10 AM

    Hello guys ! 

    I am trying to do something really simple : Start a JOBP when there is one or multiple files added in a windows folder. 




    As long as there are files in the folder, the JOBP gets triggers.  However, when there are no files in the folder, the EVNT.FILE ends with status ENDED_OK and I get the following message in the LOG report : 

    Error in function checkFileChanged(): the system cannot find the file specified '\\fld6filer\BrsSystems\JobApp\Dev\mlegaultpython\file_exists_test\*'.  Error '18', error description: 'There are no more files.'.
    2025-02-25 10:43:22 - U00011166 System message: ''

    I was under the impression that the object would execute every 2 minutes even if there were not files in the folder. Can somebody please help me with this ?

    Thanks a lot in advance :-)



    ------------------------------
    Mylene
    ------------------------------


  • 2.  RE: EVNT.FILE OBJECT ENDED WHEN NO FILE IN THE DIRECTORY

    Posted Feb 25, 2025 12:58 PM

    Ok so for time being, I created a Time Event that runs every 2 minutes and triggers my File Event if it is not already activated.  I hope I will be able to make this work only with the File Event to avoid supporting 2 objects for nothing.

    I am waiting for your answer ;-)



    ------------------------------
    [JobTitle]
    [CompanyName]
    [State]
    ------------------------------



  • 3.  RE: EVNT.FILE OBJECT ENDED WHEN NO FILE IN THE DIRECTORY
    Best Answer

    Posted Feb 26, 2025 01:00 AM

    You need to remove file changed in file option keep it blank, then in right pane i.e time parameters you can select repeatedly option and time interval




  • 4.  RE: EVNT.FILE OBJECT ENDED WHEN NO FILE IN THE DIRECTORY

    Posted Feb 26, 2025 07:17 AM

    I tried that !
    I get the following error message :
    Runtime error in object 'EVNT.FILE.BR_FILE.EXISTS.MYLENE', line '00001': Event type is not 'Console'

    What does that mean ?



    ------------------------------
    [JobTitle]
    [CompanyName]
    [State]
    ------------------------------



  • 5.  RE: EVNT.FILE OBJECT ENDED WHEN NO FILE IN THE DIRECTORY

    Posted Feb 26, 2025 08:33 AM

    Remove first line from EVENT PROCESS tab and try




  • 6.  RE: EVNT.FILE OBJECT ENDED WHEN NO FILE IN THE DIRECTORY

    Posted Feb 26, 2025 12:03 PM

    I know it was a silly thing !!
    Thank you...  it's working !



    ------------------------------
    [JobTitle]
    [CompanyName]
    [State]
    ------------------------------