Automic Workload Automation

 View Only
  • 1.  No return code with JFTP ? (OA 12.3)

    Posted Dec 08, 2021 06:17 AM

    hello

    our environnement: 

    OA: 12.3

    on windows servers (windows 2019 and MSQL 2017)

     

    we have a JFTP between an agent (linux) and a FTPCONN object (it is some sftp)

     

    When it is in error, I have the information in the  report, but not as a return code:

    error in the report:
    ...

    ....
    No such file com.uc4.ftpjob.DataTransferException: Unable to open file
    ???

     

    I need to know if the JFTP works.

    I try to catch the return code in the post process:

         :SET &STATUT#  = GET_UC_OBJECT_STATUS(,,"STATUS")

          :PRINT le statut pour le transfert est &STATUT#

    And I get always 1900 (If the JFTP works or not).




    The question:

    Is it possible to catch the information of success or failure in a RETURN CODE

    Or I have  no choice and I have to read the report of the JFTP  to get the information  ?

     

    Thanks for your help



  • 2.  RE: No return code with JFTP ? (OA 12.3)

    Posted Dec 08, 2021 08:52 AM
    @marc broussard

    If you don't want to script the scan of the report using PREP_PROCESS_REPORT, you could use a FILTER object in the Output scan of the FTP-job​

    Cheers
    Christoph

    ------------------------------
    ----------------------------------------------------------------
    Automic AE Consultant and Trainer since 2000
    ----------------------------------------------------------------
    ------------------------------



  • 3.  RE: No return code with JFTP ? (OA 12.3)

    Posted Dec 08, 2021 12:49 PM

    When you click into the "copy" command of your FTP job, there is also an "Options" drop down.

    You should experiment with those options.  We typically turn on the option to "Abort the job when source files are not found".



    ------------------------------
    Pete Wirfs
    SAIF Corporation
    Salem Oregon USA
    ------------------------------



  • 4.  RE: No return code with JFTP ? (OA 12.3)

    Posted Dec 09, 2021 02:16 AM
    thanks

    @Pete Wirfs:
    I have the file in the source folder
    the transfert does not work
    no return code (I mean always 1900, in case of sucess or in case of failure)​
    I need to use PREP_PROCESS_REPORT and I think it is bad work