AppWorx, Dollar Universe and Sysload Community

  • 1.  export error 21723

    Posted Apr 23, 2019 11:19 AM

    I am mapping a network drive;
    I execute the export command;

    always return fail 21723

     

    net use
    net use Y: "\\10.254.1.95\test"

     

    :Set &Data# = SYS_DATE("DDMMYYYY")
    :Set &hora# = sys_time("HHMMSS")
    :set &timestamp# = str_cat(&Data#,&hora#)

    :set &obj# = "JOBS.WIN.EXPORT.PYT"
    :set &local# = "Y:\backups"
    :set &file# = str_cat("\BB_exported_",&timestamp#)
    :RSET &file# = str_cat(&file#, ".xml")
    :rset &file# = str_cat(&local#,&file#)

    :set &ret# = Export(&obj#,&file#, "Y")
    :if &ret# = "0"
    :  print "Sucesso: &file#"
    :else
    :  print "Verifique a falha: &ret#" ,&obj#
    :  print "Verifique a falha: &ret#" ,&file#
    :endif

    net use
    net use Y: /delete

    If I export to a local disk or then copy this file with the 'copy' command the process works.


  • 2.  Re: export error 21723
    Best Answer

    Posted Apr 23, 2019 11:28 AM

    Dear Poyato,

    have you tried to use the UNC path instead of the mapped network drive?

    It may be worth a try.

    Regards, Nicole



  • 3.  Re: export error 21723

    Posted Apr 23, 2019 12:51 PM

    dont work... :/

     

     

    If you look at the report (REP) below, the drive was mapped correctly and the copy command worked perfectly. The problem is when I try to export directly to the mapped drive.

     

    c:\>E:\Automic\Automation.Platform\Agents\windows\bin\UCXJWX6M.EXE JNR=0001065078 MNR=0100 PNR=2300 IPA=10.254.1.86 TYP=S TXT="        Job started"
    Program 'UC4 Job Messenger' version '12.2.2+build.1549050306180' started
    UCMDJP: *********************************************************************
    UCMDJP: ** JOB 0001065078 (ProcID:0000014152) START AT 23.04.2019/13:40:24 **
    UCMDJP: **                                    UTC TIME 23.04.2019/16:40:24 **
    UCMDJP: ** --------------------------------------------------------------- **
    UCMDJP: **                                    USED:      0.000 CPU         **
    UCMDJP: *********************************************************************
    Program 'UC4 Job Messenger' version '12.2.2+build.1549050306180' terminated normally

    c:\>net use
    New connections will not be remembered.


    Status       Local     Remote                    Network

    -------------------------------------------------------------------------------
    The command completed successfully.


    c:\>net use Y: "\\hostname.domain.com.br\util" /user:automic password
    The command completed successfully.

    c:\>copy c:\arquivo.txt y:\
            1 file(s) copied.

    c:\>net use
    New connections will not be remembered.


    Status       Local     Remote                    Network

    -------------------------------------------------------------------------------
    OK           Y:        \\hostname.domain.com.br\util
                                                    Microsoft Windows Network
    The command completed successfully.


    c:\>net use Y: /delete
    Y: was deleted successfully.


    c:\>E:\Automic\Automation.Platform\Agents\windows\bin\UCXJWX6M.EXE JNR=0001065078 MNR=0100 PNR=2300 IPA=10.254.1.86 TYP=E RET=00000000 TXT="        Job ended"
    Program 'UC4 Job Messenger' version '12.2.2+build.1549050306180' started
    UCMDJP: *********************************************************************
    UCMDJP: ** JOB 0001065078 (ProcID:0000014152) ENDED AT 23.04.2019/13:40:24 **
    UCMDJP: **                                    UTC TIME 23.04.2019/16:40:24 **
    UCMDJP: ** --------------------------------------------------------------- **
    UCMDJP: **                                    USED:      0.000 CPU         **
    UCMDJP: *********************************************************************
    Program 'UC4 Job Messenger' version '12.2.2+build.1549050306180' terminated normally

    c:\>GOTO JOBENDE




     

     

    Already the report (ACT) says that the system did not find the PATH

     

    2019-04-23 13:40:24 - U00020237 The object variable '&FILE#' in object: 'JOBS.WIN.EXPORT.PYT', line: '00013' (RunID: '0001065078') has been created with the value '\BB_exported_23042019134023.xml' by using the command :RSET.

    2019-04-23 13:40:24 - U00020206 Variable '&file#' was stored with value '\BB_exported_23042019134023.xml'.

    2019-04-23 13:40:24 - U00020230 Value '&FILE#' in object: 'JOBS.WIN.EXPORT.PYT', line: '00014' (RunID: '0001065078') was changed from '\BB_exported_23042019134023.xml' to 'Y:\backups\BB_exported_23042019134023.xml' using the command :RSET.

    2019-04-23 13:40:24 - U00020206 Variable '&file#' was stored with value 'Y:\backups\BB_exported_23042019134023.xml'. 2019-04-23 13:40:24 - U00021721 EXPORT, counter '0000000001': Object: 'JOBS.WIN.EXPORT.PYT' exported.

    2019-04-23 13:40:24 - U00021723 Error writing file: 'Y:\backups\BB_exported_23042019134023.xml'. Error message: '0000000003 The system cannot find the path specified.'.

    2019-04-23 13:40:24 - U00020408 Verifique a falha: 0000000000021723 2019-04-23 13:40:24 - U00020408 Y:\backups\BB_exported_23042019134023.xml 2019-04-23 13:40:24 - U00020408 0000000000021723


  • 4.  Re: export error 21723

    Posted Apr 23, 2019 01:12 PM

    its work!

     

    :set &local# = "\\10.254.1.95\util\"