Reading Multiple files of same kind wth File adapter  urgnt plz solve this.

Hi evry one
i am new to BPEL and i am in need of file adapter functionality. I have a folder which has files of naming convention
NSD 123-222 090714T01:23:23 if i suppose i have some hundred files in that folder and i am pointing the file adapter to read files from that folder.The pois all the files have same naming convention with different time stamp and at the same time if all the files have same start name all of the files get picked up at the same time my concern here is if i want to process each file in a while loop as soon as the file get picked up according to the target schema.what can be the condition inthe while loop so that each file gets processed in the loop.
Is there any process where i can count the number of files in the folder so that i can make use of that count in the while process.The files in the folder are in xml format these multiple files of same target schema.
please help me in figuring out this issue.
Regards,
P

There is no direct solution in my opinion. What you can do is - write some java code (either embedded activity or through WSIF). In this code you access the directory and count the files, return that count to your bpel process...then use the while loop with sync read

Similar Messages

  • Unexpected problem; recently upgraded to version 3. Export of multiple tracks makes each file length same as longest file. Didn't do that in Vers2

    Unexpected problem; We rrecently upgraded to version 3. Export of multiple tracks in a multitrack session makes each file length same as longest file. Didn't do that in Vers 2 of soundtrack

    Hmm... Ok, so I took that project and tried importing it to a new project, still with no luck. Then I tried taking that project and creating a new timeline by dragging one of the stills to the new item icon so that I'd get whatever PrPro decided was the best timeline, and still no luck. Then I tried creating a new project and importing different footage and it worked. Tells me perhaps there's something wrong with the stills? I know not to use overly-large stills in a project, but they're all around 4k resolution or smaller... so surely that's not too big, right? 412 stills total 1.5GB which means an average of about 2.5 MB per file... certainly not too big. I even had a couple video clips in the timeline that were shot with a point-and-shoot still camera, and I tried taking those out just in case it was something in those, and still no success.
    So, ultimately this project got exported without CUDA, and I'm okay... but I also am wondering what caused the problem? I do a fair amount with stills (not a lot, but enough) and I need it to work... do I just go on with life, assuming that it was some weird fluke? Or do I try a complete wipe and reinstall of OS and Programs?
    Oh, one other tidbit... whenever PrPro crashed and closed, the application itself wouldn't close. I have to go into the program manager and force quit it...
    Thoughts? Recommendations?

  • I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    By doing a Google search. 

  • Require output file name same as input file without extension

    I am doing a POC where I require that my output file name should be same as input file name. The input is a XML and output is Flatfile. If I use %SourceFileName%,
    i am getting the output with extension. How can I remove the extension? Do I need to write a custom pipeline component?

    I don't think Orchestration or custom Pipeline can help you on this as  you are setting
    %SourceFileName% Macros at your send Handler which comes after Pipeline Processing .
    As you are converting xml file to Flat file I would suggest to use  Macros  as
    %SourceFileName%.txt 
    %SourceFileName% Macro gives the file name along with extention. This won't work!

  • Need to genereate Target file name same as Source File Name thru Local J2SE

    Hi Everyone,
    I want to genereate Target file name exactly same as Source File Name. I know how to handle this in Central Adapter Engine(Sender & Receiver Communication Channel).
    But I need to do this in Local J2SE adpater engine.
    Please help me in this regard.
    Thanks & Regards,
    Nagaraju

    U can use the parameter to save the filename in the message header
    file.messageAttributes=<name,directory>
    This is similar "Adapter-Specific Message Attributes" concept.
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/frameset.htm
    Regards,
    Prateek

  • ** File Content Conversion Error in Receiver CC - How to solve this?

    Hi friends,
    My target structure looks like below.
    EmployeeJobDetails                                        --> Message Type
       JobCode                                                      --> Node
            EmployeeNumber            xsd:string
            Domain                           xsd:string
       JobTrack                                                     --> Node
             Department                    xsd: string
             Position                         xsd: string
    I use the FCC parameters in the receiver CC as below:
    Recordset Structure:    JobCode,JobTrack
    JobCode.fieldSeparator = |
    JobCode.endSeparator = 'nl'
    JobTrack.fieldSeparator = |
    JobTrack.endSepartor = 'nl'.
    Because, we want the output like below
    1099|Raja
    Accts|JuniorAccountant
    1100|Ram
    HR|Recruiter
    like this.
    In this scenario Source is XML and target is txt file.
    I am using XSLT Mapping. The FCC works fine, if my source input file contains some records. But, when we send empty source XML file as below
    <?xml version="1.0" encoding="UTF-8"?>
    <EMPLOYEE_DATA/>
    Mapping works fine. Message is processed successfully in SXMB_MONI. The payload in response also comes with Message Type name like below
    <EmployeeJobDetails    namespace >
    </EmployeeJobDetails>
    While convert this, the system throws below error.
    Error Message:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'
    Friend, how to convert this when source XML is empty.
    But, if we remove JobTrack node in target strucutre and remove the JobTrack parameters in CC, then if we send the same empty XML file FCC is working  fine and  we  get the target text file 0 KB. (Amazing !!)
    But, in the first case, how to solve the issue?
    Kind Regards,
    Jegathees P.

    Hi friends,
    If we remove JobTrack node in target strucutre and remove the JobTrack parameters in CC, then if we send the <b>same empty XML file</b> FCC is working fine and<b> we get the target text file 0 KB</b>. (Amazing !!)
    But, if we give parameters like JobCode,JobTrack then send pass the same empty file, we face the problem 'File Content Conversion' Error.
    Searching solution for this problem ...

  • My Spotlight is not working.  I get the message that my start up disc is full and to start deleting files.  What kind of files?

    I am getting a pop up message that my start up disc is full and my spotlight is not working.  The message tells me that I need to delete files.  My question is what files do I need to delete? And why is my Spotlight not working?

    You may find this link of interest and value...
    http://macmost.com/what-to-do-when-your-hard-drive-is-full.html

  • Is multiple driver for same kind of devices allowed?

    Hi,
    Suppose I have two disks c0t0d0 and c0t1d0, sd driver by default manages these two disks.
    Can I make sd driver to manage only c0t0d0 disk and write my own SCSI target driver to manage other disk(c0t1d0)?
    If so, what should be the entries in sd.conf and newdriver.conf?

    Answer is "YES" for tape device. I believe it is same for disk device. But, you must be very careful to avoid the conflict operation from the two drivers.

  • How to read multiple segments with same name in IDOC

    I want to read segments in IDOC say e1edk02.I am using orders05 idoc.
    BUT If I use the statement
    CONSTANTS :
                c_segnam1     type  char19 value  'E1EDK02'.
    read table idoc_data into wa_idocdata with key segnam = c_segnam1.
    It will read only one segment.but we are populating 2 e1edk02 segments.

    LOOP AT IDOC_DATA
        WHERE DOCNUM = IDOC_CONTRL-DOCNUM.
        CASE IDOC_DATA-SEGNAM.
          WHEN 'E1EDK02'.
           MOVE IDOC_DATA-SDATA TO E1EDK02.
    reward if useful
    check FM idoc_input_orders for reference

  • When saving photoshop file in PDF, my document changes, how do I solve this?

    Hello everybody,
    Im trying to save my CS6 files as PDF documents. When I save my files as PDF some texts or images disappear or deform.
    Is there anything i'm doing wrong?
    Is there a setting I need to change for saving my files so they don't change?
    Thank you for your help!

    Hi,
    Which operating system and version of photoshop cs6 are you using?
    You can find out the exact photoshop cs6 version by going to Help>System Info from within photoshop and looking at the very first line that says Photoshop Version.

  • Itunes saves podcast files where it likes. Please help me to solve this

    Hi guys
    I have started using Itunes to download a few podcasts but it doesn't
    do what I want...
    I have the itunes library files in My Macbook drive while the Itunes
    Music folder, with all my MP3s is in an external drive.
    I have just noticed that itunes is saving a few podcast in a folder
    called podcast in my Home/itunes folder while a few other podcasts in
    a folder called podcasts in My MP3 folder in the external hard drive.
    I'd like to understand which is the criteria it's using. I don't
    understand why it's splitting the files in 2 different folders...
    The final result i'd like to have is that all the podacast are saved
    on the macbook and not in the external drive, because I watch them
    while I am in my bed....
    Thanks in advance for your help.
    Max

    Fazila,
    This is probably more of a question for the SQL/PLSQL forum: PL/SQL
    Andy

  • ITunes Library is locked, on locked disk, or you do not have write permission for this file... (on windows 7) how do i solve this...

    I have a ipod classic now for 3 yrs.... old laptop (windows) crashed... bought new laptop (windows 7)... pulled all music to expandable drive... so on new computer i loaded itunes... and tried to pull over my 5000 songs from external drive... about half went over... so tried to convert other half to itunes.... then closed itunes...tried  to open back up... and it wont let me.... saying :    iTunes library is locked, on locked disk, or you do not have write permission for this file......  pleaseeeeeee help me..... i am pulling my hair out.... whew...

    You can try to Fix permissions problems or see Recover your iTunes library from your iPod or iOS device.
    tt2

  • If you check the don't show this again box when closing multiple tabs, how do you get it to warn you when closing multiple tabs, or to save previous tabs? Checking the warn me when closing multiple tabs box under tools/tabs does not work to solve this?

    I accidentally checked the do not ask me again box when closing multiple tabs. Now I no longer get a warning when closing multiple tabs, and it saves my previous session. I have tried checking and un-checking the warn me box under tools which has not worked. If I open a second window and try to close multiple tabs it will warn me but not on the first window.

    You can reset the warn prefs on the about:config page via the right-click context menu.
    browser.tabs.warnOnClose , see http://kb.mozillazine.org/About%3Aconfig_entries
    browser.warnOnQuit , see http://kb.mozillazine.org/browser.warnOnQuit
    browser.warnOnRestart , see http://kb.mozillazine.org/browser.warnOnRestart
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • Single and  Multiple Records On Same Data Block?

    Hi all,
    Im using forms 6i with db 9i.
    Im having a nested table which contains a column of datatype TYPE(table of varchar2(100)).
    Now i want to create a data block based on the nested table.
    So, I want only one column should be multirecord in the block.
    When i set the block level NO OF RECORDS PROPERTY to multiple, then all the items in the block getting changed as
    multi records.
    Is that possible to have multirecord for a particular field OR how to fix this issue?
    Regards
    Sankar MN
    Edited by: SankarMCA on Oct 17, 2010 9:55 PM

    Hi Baiq,
    Thanks for your responses. I moved the multirecord item into a separate block(control block) and it worked.
    But still im having a doubt regarding this.
    How can we map a db column which has datatype of TYPE(Collection) to a particular item in forms?
    Because when i try to create a new datablock based on that table im not able to move that collection column from
    the available columns to database items in the datablock wizard. It seems like disabled and tree node structure and
    im not able to select the same.
    Next thing, Even though we assigned those column manually, How the commit_form save that multirecord column
    with multiple values?
    So kindly let me know how to solve this case if possible.
    Regards
    Sankar MN
    Edited by: SankarMCA on Oct 18, 2010 7:14 AM

  • Read multiple text files

    Hi everyone out there,
    I would like to know how to read multiple files from same directory, but files hve different name, using java. Any help is appreciate, need asap..
    Thnx,

    I want to process all the files that are in the
    folder. Okay. This is the critical piece of information that you hadn't provided previously.
    And you saying using loop? how do you propose
    using loop for this?There are two different tasks: Identifying all the files, and processing each of them.
    You definitely need a loop for processing them. That's what loops are for--doing the same thing multiple times.
    You might or might not use a loop to identify the files.
    I see two main possible approaches:
    1) Provide the list of files as command line args when you start the VM, using your command shell's wildcard/globbing: java MyClass * Then inside your code: public static void main(String[] args) {
        for (int ix = 0; ix < args.length; ix++) {
            String fileName = args[ix];
            // process it
    } 2) Provide your class with the name of the directory you want to process (for instance as a command line arg). Create a java.io.File instance that corresponds to that directory. File has methods that list the files inside a diretory. Use that to get a list of the files, and run through that list.

Maybe you are looking for

  • SLD for FILE TO FILE Scenario

    Experts,    I have created one Technical system and two busines system for F2F scenario.Both the  BS are of third party. Sender is  MDM (Master data management) Receiver is BW (sap system) I am right.Please suggest. Thanks Veeru

  • How do I display result of EXTRACT in PL/SQL

    I'm new to Oracle. I've begun experimenting with the XML functions. I was able to test existsNode and extractValue and see my results OK using DBMS_OUTPUT.PUT_LINE(<some variable of type X>) but I'm failing with EXTRACT. I currently think that extrac

  • Refreshing ALV output display

    Hi, I have a report with ALV .In the output success or error message gets displayed in a column based on certain conditions.The errors can be manually corrected.I f the errors are corrected and 'Refresh' button is pressed in my output,the error messa

  • I am getting the error "we're sorry but we can not complete your request at this time through the itunes store"

    Hi Itunes was working on monday and now it isn't, it's giving me this error anytime I try to access updates for my apps or buy new apps, any ideas?

  • Loss of apps and major productivity due to 3.1.3 update

    For some odd reason it took better than 12 hours to backup (I backup every few weeks using iTunes) before install of 1.3.1 (I have not jailbroken the phone). After completion, my massive, 10-page collection of apps were largely gone including some ma