Synchronous Get File

Hello,
My requirement is to get the file from the FTP server and place it on a local server. BPEL process needs to be scheduled to run every night.
I have created a one way bpel process with Sync Get File from the FTP adapter and write the file to the local server. While defining the Sync Get file delete files after successful retrieval is greyed out. When I execute the process, I am getting the below error.
Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'SynchRead' failed due to: Error deleting file from FTP Server. Error deleting file from FTP Server. Unable to delete file from server. Please ensure whether the remote file has delete permission. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
Thanks.

oh ok, in that case you have only getfile option , but in this you can not schedule a process it will become polling process, whenever file comes to your ftp location it will read the file and move to your local server.
once it is moved to your local server you can have another bpel process which you can shedule to read the file. You can use ora:readFile function to read data synchronously
-Umesh

Similar Messages

  • OSB error while generating business service for FTP adapter Sync Get File

    Hi All
    I am trying to generate a business service from SOA Suite JCA FTP adapter Sync Get File, but i am getting this exception for no reasons (Rest operations list file, get file and put file are working)
    Invalid JCA transport endpoint configuration, exception: java.lang.NullPointerException     Unknown ALSB Conflict.
    Is this a bug in eclipse, can any body help me. Thanks
    Sorry Forgot to mention eclipse version...
    Eclipse Platform
    Version: 3.6.2
    Build id: M20110210-1200

    Ok,
    bcoz of this issue, i had to code the entire interface in OSB console. It runs fine in OSB console (i was able to test it successfully).
    Is this a bug in eclipse or only i am facing this issue? Has anybody tried to create a business service from JCA FTP Get Synchronous jca file?
    <adapter-config name="FTPReadMOMFileOnRMSDB" adapter="FTP Adapter"
         wsdlLocation="../wsdl/FTPReadMOMFileOnRMSDB.wsdl"
         xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
         <connection-factory location="eis/ftp/RMSDBFtpAdapter" />
         <endpoint-interaction portType="SynchRead_ptt"
              operation="SynchRead">
              <interaction-spec
                   className="oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec">
                   <property name="DeleteFile" value="true" />
                   <property name="PhysicalDirectory" value="/MOMFiles/output" />
                   <property name="FileName" value="*" />
                   <property name="FileType" value="binary" />
              </interaction-spec>
         </endpoint-interaction>
    </adapter-config>
    One more doubt? The PhysicalArchiveDirectory path can be on the FTP server something like: /MOMFiles/archive. Or do i have to use the Put operation to move it to /MOMFiles/archive directory. Currently OSB console and eclipse do not accept FTP path for this parameter and want me to specify a local directory on server. Thanks

  • Dispatcher yellow,J2EE status info unavailable,Could not get file from DB

    Hello Experts,
    I have successfully installed a ECC 6.0 server-ABAP +JAVA  system (DB2 v9.5 FP4 windows server 2008-x64 bit).
    Kernel: 700 , Patch: 185 ; SP level : rel 700 , level 17
    I upgraded JSPM sucessfully from 14 to 17.Then i was trying to apply JAVA sp's one by one using single sp option JSPM tool.
    I DEPLOYED the first sp component sucesfully but after that the next component gave warning in JSPM check that SDM is not started.
    I checked MMC.Dispatcher was YELLOW and J2EE status info unavailable. Cannot use JCMON to start SDM..option 20 gives error--cannot access shared memory
    I already tried Notes   784568 and 997510
    Relevant logs:-
    jvm_bootstrap.out
    =================================================================================================
    Error synchronizing file [.\..\os_libs\FontManagerService_native.zip].
    com.sap.engine.frame.core.configuration.InvalidPersistentDataStreamException: Could not get file from DB.
    Attempt to fully materialize lob data that is too large for the JVM.
    Disable data source property "fullyMaterializeLobData" for locator-based lob implementation. ERRORCODE=-4499, SQLSTATE=null ERRORCODE=-4499, SQLSTATE=null
    Exception occurred:
    com.sap.engine.bootstrap.SynchronizationException: Unable to synchronize native files for instance [ID140026]!
    ==============================================================================================
    dev_jcontrol
    =============================================================================================
    Thr 4360] *** ERROR => JsfOpenShm: FtInit(SESSION, 2, 176) failed (got (rc = 0 operation successful), expected (rc = 8 already initialized)) [jsfxxshm.c   913]
    [Thr 4360] *** ERROR => Can't create shared memory segment 69 (rc = 1) [jcntrxx.c    1749]
    [Thr 4360] *** ERROR => Can't initialize JControl Administration [jcntrxx.c    273]
    [Thr 4360] JControlCloseProgram: started (exitcode = -1)
    [Thr 4360] *** ERROR => JsfCloseShm: FiDetachIndex(SESSION) failed (rc = 6 invalid argument) [jsfxxshm.c   1243]
    [Thr 4360] *** ERROR => JsfCloseShm: FiDetachIndex(ALIAS) failed (rc = 6 invalid argument) [jsfxxshm.c   1250]
    [Thr 4360] *** ERROR => JsfCloseShm: FiDetachIndex(SERVICE) failed (rc = 6 invalid argument) [jsfxxshm.c   1257]
    =================================================================================================
    log_bootstrap_ID0140026.0
    ==========================================================================================
    Error synchronizing file [.\..\os_libs\FontManagerService_native.zip].
    com.sap.engine.frame.core.configuration.InvalidPersistentDataStreamException: Could not get file from DB.
    ============================================================================================
    Eagerly looking forward to a solution from you experts..
    Thanks,
    Rakesh

    Hi,
    I am facing the same related problem with ECC 6.0.
    My dispatcher started it is showing yellow-  dialog queue standstill, J2EE status info unavailable
    after some time dispatcher has stopped.
    Please check my below trace file for dispatcher:
    trc file: "dev_disp", trc level: 1, release: "700"
    sysno      03
    sid        DEV
    systemid   560 (PC with Windows NT)
    relno      7000
    patchlevel 0
    patchno    114
    intno      20050900
    make:      multithreaded, Unicode, optimized
    pid        13108
    Fri Nov 27 02:31:55 2009
    kernel runs with dp version 229000(ext=109000) (@(#) DPLIB-INT-VERSION-229000-UC)
    length of sys_adm_ext is 576 bytes
    SWITCH TRC-HIDE on ***
    ***LOG Q00=> DpSapEnvInit, DPStart (03 13108) [dpxxdisp.c   1239]
         shared lib "dw_xml.dll" version 114 successfully loaded
         shared lib "dw_xtc.dll" version 114 successfully loaded
         shared lib "dw_stl.dll" version 114 successfully loaded
         shared lib "dw_gui.dll" version 114 successfully loaded
         shared lib "dw_mdm.dll" version 114 successfully loaded
    rdisp/softcancel_sequence :  -> 0,5,-1
    use internal message server connection to port 3903
    Fri Nov 27 02:31:59 2009
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 4 seconds
    ***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c  5361]
    MtxInit: 30000 0 0
    DpSysAdmExtInit: ABAP is active
    DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
    DpIPCInit2: start server >sapdev_DEV_03                           <
    DpShMCreate: sizeof(wp_adm)          15800     (1436)
    DpShMCreate: sizeof(tm_adm)          4232256     (21056)
    DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
    DpShMCreate: sizeof(comm_adm)          528064     (1048)
    DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    DpShMCreate: sizeof(slock_adm)          0     (96)
    DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    DpShMCreate: sizeof(file_adm)          0     (72)
    DpShMCreate: sizeof(vmc_adm)          0     (1536)
    DpShMCreate: sizeof(wall_adm)          (38456/34360/64/184)
    DpShMCreate: sizeof(gw_adm)     48
    DpShMCreate: SHM_DP_ADM_KEY          (addr: 08290040, size: 4889440)
    DpShMCreate: allocated sys_adm at 08290040
    DpShMCreate: allocated wp_adm at 08292090
    DpShMCreate: allocated tm_adm_list at 08295E48
    DpShMCreate: allocated tm_adm at 08295E78
    DpShMCreate: allocated wp_ca_adm at 0869F2B8
    DpShMCreate: allocated appc_ca_adm at 086A5078
    DpShMCreate: allocated comm_adm at 086A6FB8
    DpShMCreate: system runs without slock table
    DpShMCreate: system runs without file table
    DpShMCreate: allocated vmc_adm_list at 08727E78
    DpShMCreate: allocated gw_adm at 08727EB8
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 08727EE8
    DpShMCreate: allocated wall_adm at 08727EF0
    MBUF state OFF
    DpCommInitTable: init table for 500 entries
    Fri Nov 27 02:32:00 2009
    EmInit: MmSetImplementation( 2 ).
    MM global diagnostic options set: 0
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation view
    <EsNT> Using memory model view.
    <EsNT> Memory Reset disabled as NT default
    <ES> 1023 blocks reserved for free list.
    ES initialized.
    J2EE server info
      start = TRUE
      state = STARTED
      pid = 13356
      argv[0] = D:\usr\sap\DEV\DVEBMGS03\exe\jcontrol.EXE
      argv[1] = D:\usr\sap\DEV\DVEBMGS03\exe\jcontrol.EXE
      argv[2] = pf=D:\usr\sap\DEV\SYS\profile\DEV_DVEBMGS03_sapdev
      argv[3] = -DSAPSTART=1
      argv[4] = -DCONNECT_PORT=2919
      argv[5] = -DSAPSYSTEM=03
      argv[6] = -DSAPSYSTEMNAME=DEV
      argv[7] = -DSAPMYNAME=sapdev_DEV_03
      argv[8] = -DSAPPROFILE=D:\usr\sap\DEV\SYS\profile\DEV_DVEBMGS03_sapdev
      argv[9] = -DFRFC_FALLBACK=ON
      argv[10] = -DFRFC_FALLBACK_HOST=localhost
      start_lazy = 0
      start_control = SAP J2EE startup framework
    DpJ2eeStart: j2ee state = STARTED
    rdisp/http_min_wait_dia_wp : 1 -> 1
    ***LOG CPS=> DpLoopInit, ICU ( 3.0 3.0 4.0.1) [dpxxdisp.c   1629]
    ***LOG Q0K=> DpMsAttach, mscon ( sapdev.visu.com) [dpxxdisp.c   11753]
    DpStartStopMsg: send start message (myname is >sapdev_DEV_03                           <)
    DpStartStopMsg: start msg sent
    CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    Fri Nov 27 02:32:01 2009
    CCMS: Initalizing shared memory of size 60000000 for monitoring segment.
    CCMS: start to initalize 3.X shared alert area (first segment).
    DpJ2eeLogin: j2ee state = CONNECTED
    DpMsgAdmin: Set release to 7000, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c   1050]
    DpMsgAdmin: Set patchno for this platform to 114
    Release check o.K.
    Fri Nov 27 02:32:05 2009
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4248]
    ERROR => NiIRead: SiRecv failed for hdl 4 / sock 1468
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:2927) [nixxi.cpp    4248]
    DpJ2eeMsgProcess: j2ee state = CONNECTED (NIECONN_BROKEN)
    DpIJ2eeShutdown: send SIGINT to SAP J2EE startup framework (pid=13356)
    ERROR => DpProcKill: kill failed [dpntdisp.c   371]
    DpIJ2eeShutdown: j2ee state = SHUTDOWN
    Fri Nov 27 02:32:40 2009
    ERROR => W0 (pid 13364) died [dpxxdisp.c   14441]
    ERROR => W1 (pid 13372) died [dpxxdisp.c   14441]
    ERROR => W2 (pid 13380) died [dpxxdisp.c   14441]
    ERROR => W3 (pid 13388) died [dpxxdisp.c   14441]
    my types changed after wp death/restart 0xbf --> 0xbe
    ERROR => W4 (pid 13396) died [dpxxdisp.c   14441]
    my types changed after wp death/restart 0xbe --> 0xbc
    ERROR => W5 (pid 13404) died [dpxxdisp.c   14441]
    my types changed after wp death/restart 0xbc --> 0xb8
    ERROR => W6 (pid 13412) died [dpxxdisp.c   14441]
    ERROR => W7 (pid 13420) died [dpxxdisp.c   14441]
    ERROR => W8 (pid 13428) died [dpxxdisp.c   14441]
    my types changed after wp death/restart 0xb8 --> 0xb0
    ERROR => W9 (pid 13436) died [dpxxdisp.c   14441]
    my types changed after wp death/restart 0xb0 --> 0xa0
    ERROR => W10 (pid 13444) died [dpxxdisp.c   14441]
    my types changed after wp death/restart 0xa0 --> 0x80
    DP_FATAL_ERROR => DpWPCheck: no more work processes
    DISPATCHER EMERGENCY SHUTDOWN ***
    increase tracelevel of WPs
    NiWait: sleep (10000ms) ...
    NiISelect: timeout 10000ms
    NiISelect: maximum fd=1593
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Nov 27 02:32:50 2009
    NiISelect: TIMEOUT occured (10000ms)
    dump system status
    Workprocess Table (long)               Thu Nov 26 21:02:50 2009
    ========================
    No Ty. Pid      Status  Cause Start Err Sem CPU    Time  Program          Cl  User         Action                    Table
    0 DIA    13364 Ended         no      1   0        0                                                                         
    1 DIA    13372 Ended         no      1   0        0                                                                         
    2 DIA    13380 Ended         no      1   0        0                                                                         
    3 DIA    13388 Ended         no      1   0        0                                                                         
    4 UPD    13396 Ended         no      1   0        0                                                                         
    5 ENQ    13404 Ended         no      1   0        0                                                                         
    6 BTC    13412 Ended         no      1   0        0                                                                         
    7 BTC    13420 Ended         no      1   0        0                                                                         
    8 BTC    13428 Ended         no      1   0        0                                                                         
    9 SPO    13436 Ended         no      1   0        0                                                                         
    10 UP2    13444 Ended         no      1   0        0                                                                         
    Dispatcher Queue Statistics               Thu Nov 26 21:02:50 2009
    ===========================
    --------++++--
    +
    Typ
    now
    high
    max
    writes
    reads
    --------++++--
    +
    NOWP
    0
    2
    2000
    6
    6
    --------++++--
    +
    DIA
    5
    5
    2000
    5
    0
    --------++++--
    +
    UPD
    0
    0
    2000
    0
    0
    --------++++--
    +
    ENQ
    0
    0
    2000
    0
    0
    --------++++--
    +
    BTC
    0
    0
    2000
    0
    0
    --------++++--
    +
    SPO
    0
    0
    2000
    0
    0
    --------++++--
    +
    UP2
    0
    0
    2000
    0
    0
    --------++++--
    +
    max_rq_id          12
    wake_evt_udp_now     0
    wake events           total     8,  udp     7 ( 87%),  shm     1 ( 12%)
    since last update     total     8,  udp     7 ( 87%),  shm     1 ( 12%)
    Dump of tm_adm structure:               Thu Nov 26 21:02:50 2009
    =========================
    Term    uid  man user    term   lastop  mod wp  ta   a/i (modes)
    Workprocess Comm. Area Blocks               Thu Nov 26 21:02:50 2009
    =============================
    Slots: 300, Used: 1, Max: 0
    --------++--
    +
    id
    owner
    pid
    eyecatcher
    --------++--
    +
    0
    DISPATCHER
    -1
    WPCAAD000
    NiWait: sleep (5000ms) ...
    NiISelect: timeout 5000ms
    NiISelect: maximum fd=1593
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Nov 27 02:32:55 2009
    NiISelect: TIMEOUT occured (5000ms)
    DpHalt: shutdown server >sapdev_DEV_03                           < (normal)
    DpJ2eeDisableRestart
    DpModState: buffer in state MBUF_PREPARED
    NiBufSend starting
    NiIWrite: hdl 3 sent data (wrt=110,pac=1,MESG_IO)
    MsINiWrite: sent 110 bytes
    MsIModState: change state to SHUTDOWN
    DpModState: change server state from STARTING to SHUTDOWN
    Switch off Shared memory profiling
    ShmProtect( 57, 3 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RW
    ShmProtect( 57, 1 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RD
    DpWakeUpWps: wake up all wp's
    Stop work processes
    Stop gateway
    killing process (13340) (SOFT_KILL)
    Stop icman
    killing process (13348) (SOFT_KILL)
    Terminate gui connections
    wait for end of work processes
    wait for end of gateway
    [DpProcDied] Process lives  (PID:13340  HANDLE:1564)
    waiting for termination of gateway ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1593
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Nov 27 02:32:56 2009
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process died  (PID:13340  HANDLE:1564)
    wait for end of icman
    [DpProcDied] Process lives  (PID:13348  HANDLE:1568)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1593
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Nov 27 02:32:57 2009
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:13348  HANDLE:1568)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1593
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Nov 27 02:32:58 2009
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:13348  HANDLE:1568)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1593
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Nov 27 02:32:59 2009
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:13348  HANDLE:1568)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1593
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Please help me to start my SAP MMC.
    Thanks

  • GET FILE NAME C:\temp\ADIBO.txt

    Hi,
    How to get file name?
    I used Get_File_NAME, but I'am getting an error.
    lv_lfilename is not the type LOGICAL_FILENAME
    C:\temp\ADIBO.txt
    I need to get  ADIBO ??
    tnh, Adibo..:)
    I am using this code to download file and after that I need to get FILE_NAME:
    DATA:  lv_lfilename TYPE string.
    PARAMETERS:
      pa_lfile TYPE zlocalfile
               DEFAULT 'C:temp'.
        CONCATENATE pa_lfile ''INTO lv_lfilename.
        CALL FUNCTION 'GUI_DOWNLOAD'
             EXPORTING
                  filename = lv_lfilename
                  filetype = 'ASC'
             TABLES
                  data_tab = it_billit_down.
        IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

    Hii..
    You have to Maintain the Logical filenames and their Physical Paths in Tcode FILE.
    Then create a program like this..
    REPORT  ZSEL_FILES1.
    DATA : V_LOGFILE TYPE STRING.
    DATA :V_PHYFILE TYPE STRING.
    DATA : ITAB TYPE TABLE OF SCARR.
    START-OF-SELECTION.
    SELECT * FROM SCARR INTO TABLE ITAB.
    **To get the Physical file based on the Logical file names - Maintained in Tcode FILE
    CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
       CLIENT                        = SY-MANDT
        LOGICAL_FILENAME              = VlOGFILE
      OPERATING_SYSTEM              = SY-OPSYS
      PARAMETER_1                   = ' '
      PARAMETER_2                   = ' '
      PARAMETER_3                   = ' '
      USE_PRESENTATION_SERVER       = ' '
      WITH_FILE_EXTENSION           = ' '
      USE_BUFFER                    = ' '
      ELEMINATE_BLANKS              = 'X'
    IMPORTING
      EMERGENCY_FLAG                =
      FILE_FORMAT                   =
       FILE_NAME                     = V_PHYFILE
    EXCEPTIONS
      FILE_NOT_FOUND                = 1
      OTHERS                        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    **To download the file to PC.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = V_PHYFILE
       FILETYPE                        = 'ASC'
      APPEND                          = ' '
       WRITE_FIELD_SEPARATOR           = 'X'
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = ITAB
      FIELDNAMES                      =
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED           = 8
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    <b>reward if helpful</b>

  • How to get file from FTP Server using File Control

    Hi,
    Any one did getting file from FTP Server?
    Please let me know any one help me.
    I would need to get file from FTP Server.
    Thanks,
    Madhu

    Yes I have done that. But In FTP Server I cannt read file, because no previliges. Only I need to copy file from FTP Server to local server then only I can read that file.
    I tried all options using FileConrol(getFiles(),read()).
    getFiles() - It wont copy the file, it give information about file.
    read() - I dont have previliges to read the file.
    Please tell me any other procedure would be there for getting file from FTPServer.
    Thanks,
    Madhu

  • Ftp get file without extension

    Hi
    I'm trying to use the sample code from http://blog.dbandbi.com/tag/ssis-script-task-check-if-file-exists-c/
    public void Main()
    string userName = Dts.Variables["User::userName"].Value.ToString();
    string password = Dts.Variables["User::password"].Value.ToString();
    string fileName = Dts.Variables["User::fileName"].Value.ToString();
    string ftpURL = String.Format("ftp://ftp.dbandbi.com/public_ftp/incoming/{0}",fileName);
    try
    FtpWebRequest ftpRequest = (FtpWebRequest)WebRequest.Create(ftpURL);
    ftpRequest.Method = WebRequestMethods.Ftp.DownloadFile;
    ftpRequest.Credentials = new NetworkCredential(userName, password);
    using (FtpWebResponse ftpResponse = (FtpWebResponse)ftpRequest.GetResponse())
    Dts.Variables["User::isFileExists"].Value = true;
    catch
    Dts.Variables["User::isFileExists"].Value = false;
    Dts.TaskResult = (int)ScriptResults.Success;
    but I'm having problems because the files are in unix format and they don't have extension. I  tried using filename*.* and filename*  but I always get "file does not exist".  What I'm trying to do is to know if the file created by
    another process has been freed so I can download it.
    thanks in advance
    cognosoft

    If no extension then check for the exact name. It must not matter. When you connect to the site using non SSIS facilities, do you see the file there? Wildcards do not work AFAIK.
    Basically, you need a directory listing to determine what files exist. You can run a remote dir command and save its output to a file or variable to skim thru.
    Arthur My Blog

  • How can i get files from my time capsule to my new mac?

    Hello there, 
    I know this topic i much discussed, but searching has not turned up a solution.
    I have a new mac book pro 15 on order and want to grab my files from my time capsule.   My old mac book pro 15 (3 months old) was encrypted with file safe.  In the past i have never had good results with bringing data to a new mac from time capsules; I've tried many times for my self and family.  As a result I use the time capsule for day to day old file retrieval needs and do manual backups of my data onto externals and NAS devices for migration to new computers-tedious but it has yet to fail me.  This time, I did that with everything except a few folders of my movies and pictures.  They are now prisoner on the time capsule.
    What is the best way to get files off the time capsule and does it require that my login and user name on the new mac be identical to that which was on my old mac?
    (I change my user names each time i get a new mac, not specifically on purpose but i haven't paid attention to what they were when setting up a new computer.)
    any assistance is appreciated.
    Thanks

    Thanks Allan,
    Help me understand what question you're referring to.  I've been through several new macs and am not sure what specifically you're speaking about.
    My old mac had a partition on the drive that I do not want on the new mac, so I am concerned about doing a full restore and prefer a file by file or folder by folder. is this possible?

  • How can I safely and securely get files from my mac.

    I want something like LogMeIn Pro but for free. ther is a free version it DOES support mac BUT not gettong files. I want to be able to securely get files from my mac from school or anywhere whitout paying!!
    I HAVE had a look on google, no help.

    Try versiontracker.com

  • How do I select multiple files under "Get File Info"and lock or unlock all?

    How do I select multiple files under "Get File Info"and lock or unlock them all? It seems to do it automatically when I have 10 or more selected. But how do I lock or unlock 5 or 6 files in one swoop? Thanks

    Select the desired files then press OPTION and select Show Inspector from the Finder's File menu.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • How to get file from server while click on link

    Hi,
    i created on link and i gave one server path to select file from server but while clickinng on link it no displaying any thing.
    following is the Destination url that i gave for the item.
    /u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/
    please tell me how to get file from server while click on link.

    Ok I got your requirement now.
    If you are getting file names from view attribute then you should not be adding destination URI property for the link.
    Instead you can use OADataBoundValueViewObject API.
    Try below code in your controller processRequest method:
    I am assuming that you are using classic table.
    Also in below example it considers OAMessageStyleText and you can replace it with link item if you want.
    OATableBean tableBean =
    (OATableBean)webBean.findChildRecursive("<table item id>");
    OAMessageStyledTextBean m= (OAMessageStyledTextBean)tableBean.findChildRecursive("<message styled text in table item id>");
    OADataBoundValueViewObject tip1 = new OADataBoundValueViewObject(m, "/u08/app/appvis/xxex/inst/xxex_apps/xxrbe/logs/appl/conc/log/"+"<vo attr name which stores file name for each row>");
    m.setAttributeValue(oracle.cabo.ui.UIConstants.DESTINATION_ATTR, tip1);
    Regards,
    Sandeep M.

  • SSIS 2012 Script Task to Get File Properties

    Hello,
    I researched on how to grab a file properties such as file size, file modified date, etc and I came across the following
    link:
    I followed exact steps and when I went to execute the package, I got the following error:
    Below is the code:
    // C# code
    // Fill SSIS variables with file properties
    using System;
    using System.Data;
    using System.IO; // Added to get file properties
    using System.Security.Principal; // Added to get file owner
    using System.Security.AccessControl; // Added to get file owner
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_cb8dd466d98149fcb2e3852ead6b6a09.csproj
    [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
    public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    #region VSTA generated code
    enum ScriptResults
    Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    #endregion
    public void Main()
    // Lock SSIS variables
    Dts.VariableDispenser.LockForRead("User::FilePath");
    Dts.VariableDispenser.LockForWrite("User::FileAttributes");
    Dts.VariableDispenser.LockForWrite("User::FileCreationDate");
    Dts.VariableDispenser.LockForWrite("User::FileExists");
    Dts.VariableDispenser.LockForWrite("User::FileInUse");
    Dts.VariableDispenser.LockForWrite("User::FileIsReadOnly");
    Dts.VariableDispenser.LockForWrite("User::FileLastAccessedDate");
    Dts.VariableDispenser.LockForWrite("User::FileLastModifiedDate");
    Dts.VariableDispenser.LockForWrite("User::FileOwner");
    Dts.VariableDispenser.LockForWrite("User::FileSize");
    // Create a variables 'container' to store variables
    Variables vars = null;
    // Add variables from the VariableDispenser to the variables 'container'
    Dts.VariableDispenser.GetVariables(ref vars);
    // Variable for file information
    FileInfo fileInfo;
    // Fill fileInfo variable with file information
    fileInfo = new FileInfo(vars["User::FilePath"].Value.ToString());
    // Check if file exists
    vars["User::FileExists"].Value = fileInfo.Exists;
    // Get the rest of the file properties if the file exists
    if (fileInfo.Exists)
    // Get file creation date
    vars["User::FileCreationDate"].Value = fileInfo.CreationTime;
    // Get last modified date
    vars["User::FileLastModifiedDate"].Value = fileInfo.LastWriteTime;
    // Get last accessed date
    vars["User::FileLastAccessedDate"].Value = fileInfo.LastAccessTime;
    // Get size of the file in bytes
    vars["User::FileSize"].Value = fileInfo.Length;
    // Get file attributes
    vars["User::FileAttributes"].Value = fileInfo.Attributes.ToString();
    vars["User::FileIsReadOnly"].Value = fileInfo.IsReadOnly;
    // Check if the file isn't locked by an other process
    try
    // Try to open the file. If it succeeds, set variable to false and close stream
    FileStream fs = new FileStream(vars["User::FilePath"].Value.ToString(), FileMode.Open);
    vars["User::FileInUse"].Value = false;
    fs.Close();
    catch (Exception ex)
    // If opening fails, it's probably locked by an other process
    vars["User::FileInUse"].Value = true;
    // Log actual error to SSIS to be sure
    Dts.Events.FireWarning(0, "Get File Properties", ex.Message, string.Empty, 0);
    // Get the Windows domain user name of the file owner
    FileSecurity fileSecurity = fileInfo.GetAccessControl();
    IdentityReference identityReference = fileSecurity.GetOwner(typeof(NTAccount));
    vars["User::FileOwner"].Value = identityReference.Value;
    // Release the locks
    vars.Unlock();
    Dts.TaskResult = (int)ScriptResults.Success;
    Eventually I am looking to just grab the Modified Date from the Windows Explorer folder and insert into table. Any suggestions? Thank you in advance!
    Sanjeev
    Sanjeev Jha

    Hi SSISJoost,
    I am so glad you responded to this thread. You are absolutely right. I copied the entire code including the project name (guid) and that solved the error problem.
    Now, what did you do to get the message box? I added the watch and I could see the values but how do I get these values in a table? If I remember correctly, in your blog, you mentioned something about using derived columns. I am familiar with Derived Columns
    but how do I do that? I appreciate your response.
    Thank you.
    Sanjeev
    Sanjeev Jha
    I used a second script task to show all variable values. It has a
    MessageBox in it and between all
    variables I added a
    newline to make it more readable...
    But with an Execute SQL Task and parameters you can also put these values in a Table... or you can read the file in a Data Flow Task and add those variables (as metadata) to each record with a Derived Column
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Get file not found error when I try to sync

    I get file not found error when I try to sync Iphone.

    SteveDVD,
    The use of the .WMV was because that was part of the Library .EM template. I would not anticipate problems with other formats, so long as they are supported and the same for all of your Menus in the Project.
    If you have done several Motion Menu Renderings, you might want to clear Encore's Media Cache, just in case it is still referencing previous Render files.
    And yes, the re-Importation should yield the same result as Linking/re-Linking.
    Unfortunately, I do not have CS4, so I can't test this for you. There do seem to be a few real Bugs in the various CS4 programs, and maybe this is one?
    That "File Not Found" rings a bell in my feeble brain. Seems that there was a post on that, but I do not remember it being related to Motion Menus. Maybe search will yield something of use.
    Good luck,
    Hunt

  • Web Matrix FTP Remote Connection Error - "Connection Error - Failure to get file list from server. An entry with the same key already exists."

    Does anyone have experience with this issue when connecting to a Linux FTP Web Server running a FTP Site?
    "Connection Error - Failure to get file list from server. An entry with the same key already exists."
    I cannot access the root directory of the ftp file server using Web Matrix 3. The site is .php based, and
    is accessible when connecting with FileZilla or Remote Connecting via FTP with Visual Studio.
    All sites have been deleted from Web Matrix, the user Application Data has been cleared and Web Matrix has been reinstalled.
    Issue Persists....
    Thanks in advance,
    Justin

    Turns out that the program leaves metadata in your app data folder that is not removed upon uninstallation of the software.
    This is incorporated to communicate with a file that uploaded into the ftp directory when publishing pages.

  • PREPARE UPLOAD_REQUEST CANNOT GET FILE LIST

    Hello all,
    In the PREPARE, phase UPLOAD_REQUEST, received error 'CANNOT GET FILE LIST OF '..EPS\in.. folder.
    Log UPLOADREQ.LOG has the followin. Search in SDN and SAP did not get any result.
    1 ETQ201XEntering upgrade-phase "UPLOAD_REQUEST" ("20081126150332")
    2 ETQ367 Connect variables are set for standard instance access
    4 ETQ399 System-nr = '60', GwService = 'sapgw60'
    4 ETQ399 Environment variables:
    4 ETQ399   dbs_db2_schema=SAPR3
    4 ETQ399   auth_shadow_upgrade=0
    4 ETQ399 Directory 'd:\usr\BZ3put\eps' not found.
    4 ETQ399 Skipping copy of OCS packages.
    2 ETQ730 Starting upload of all package files in "
    ustcf001\patches\EPS\in"
    4 ETQ010 Date & Time: 20081126150339 
    4 ETQ230 Starting RFC Login to: System = "BZ3", GwHost = "ustwa356", GwService = "sapgw60"
    4 ETQ359 RFC Login to: System="BZ3", Nr="60", GwHost="ustwa356", GwService="sapgw60"
    4 ETQ232 RFC Login succeeded
    4 ETQ233 Calling function module "SPDA_PREPARE_PATCH" by RFC
    4 ETQ234 Call of function module "SPDA_PREPARE_PATCH" by RFC succeeded
    4 ETQ239 Logging off from SAP system
    4 ETQ010 Date & Time: 20081126150339 
    2 ETQ731 Upload failed, rc = "1", reason = "CANNOT GET FILE LIST OF
    ustcf001\patches\EPS\in"
    2 ETQ730 Starting upload of all package files in "
    ustcf001\patches\EPS\in"
    4 ETQ010 Date & Time: 20081126151823 
    4 ETQ230 Starting RFC Login to: System = "BZ3", GwHost = "ustwa356", GwService = "sapgw60"
    4 ETQ359 RFC Login to: System="BZ3", Nr="60", GwHost="ustwa356", GwService="sapgw60"
    4 ETQ232 RFC Login succeeded
    4 ETQ233 Calling function module "SPDA_PREPARE_PATCH" by RFC
    4 ETQ234 Call of function module "SPDA_PREPARE_PATCH" by RFC succeeded
    4 ETQ239 Logging off from SAP system
    4 ETQ010 Date & Time: 20081126151823 
    Hope anyone can help, thanks in advance.
    Thanks and regards
    Terry

    I tried to load the packages via SPAM, and got the following - does it mean I have corrupted EPS/in?
    Could not create file list
    Message no. PS 012
    Diagnosis
    A list of the required files could not be created as an error occurred.
    Directory:
    ustcf001\patches\EPS\in
    File mask:
    Error code: 17
    Definition of error codes:
    03 RFC system failure
    04 RFC communication failure
    11 invalid EPS subdirectory
    12 sapgparam failed
    13 build directory failed
    14 no authorization
    17 read directory failed
    18 read attributes failed
    22 too many read errors
    23 empty directory list
    System Response
    The operation was terminated.
    Procedure
    Eliminate the cause of the error and repeat the operation.

  • Java does not get file list from shared folder in another server.

    Hi,
    I'm using java 1.4.2.16,
    Command below does not get file list.
    import java.io.;*..
    File file = new File("\\\\10.242.22.28\\SapMII");
    File[] files = file.listFiles();
    SapMII folder is Everyone full Control permission.
    How can i solve this problem?
    Thanks.

    Could you please post replies in a more helpful way? Just informing me that it was an NPE doesn't really tell me anything. Post the stacktrace (Exception#printStackTrace()). And the listFile() methods API has this to say:
    Returns null if this abstract pathname does not denote a directory, or if an I/O error occurs.I'm able to run this sample code easily:
    import java.io.File;
    public class TestFileList {
         public static void main(String[] args) {
              File file = new File("\\\\10.40.55.33\\shared");
              File [] files = file.listFiles();
              for(File currentFile: files )
                   System.out.println(currentFile.getName());
    }

Maybe you are looking for

  • IPod touch will not turn on, charge or do anything.

    Hi everyone, Yesterday I bought an iPod touch 4G. When I got home, I plugged my iPod into iTunes and synced it all up. It was working for about two hours but then it started to act weird. I would be in the middle of playing a game and it would freeze

  • JDKs in weblogic server return wrong time zone

    Hi , i am running weblogic server 8.1.4, 8.1.6 and 10 on my windows vista all of the JDK bundled (both Sun's and JRockit) return GMT instead of my local time zone when i call Timezone.getDefault() I am quite sure the operating system has set to corre

  • Automatic put back workitem after execution

    Hi there, you might be interested in this short piece of code that could be executed after method execution (as the latest call) to have the currently processed workitem put back again (i.e. available for the assigned user(s) again). After calling th

  • SAP SD-FI Accounting entries

    Dear Experts While booking a SD bill; system creates accounitng entries for all the items in the bill with respective line itemsr; i need to restrict this and need one line for customer debit and other accounting line for all the credit items in the

  • How do I set up Firefox to clear my browsing history and tabs when I quit?

    Unless I go to settings and clear everything before I quit Firefox, next time I open it I am on the last page I was browsing during the previous session. I would like Firebox to open in the home page, with all tabs and history cleared.