File Adapter - Reading 2 files from sender and one file to receiver

All - I am looking for a best solution for reading two files from sender and generating one file to the receiver.
Here is the scenario
Sender file s - A is a master file. B is a detail file; B will have a one to many records for each record of File A.. that is the relation ship between 2 files..  I am looking for a better solution to
Example
Input:
File A will have a record like "summary1 ABC 1234"
File B will have a record like "Detailfor Summary1 CDF 8679"
Output:
File C shall have a record "consolidatedofSummary&Detail ABC 1234 8679"
1) read records of master row and detail row from these 2 files
2) do the mapping to the receiver output format which it is creating for records with some harcoded values and based on the values from master and detail rows of sender file
if I can accomblish reading sender files and do the mapping to the receiver , assume that mapping to the receiver format would not be cumbersome.
please help me...
Thanks

Hi Gopal,
Ur approach to the interface is perfect.... Go ahead.
For selecting multiple files in source use Advanced Selection for files.. and specify the directory paths and also the file name shema...
This will fetch the 2 files into the integration engine... then u map the 2 source files to one target file(2:1 mapping).
Specify accordingly the receiver side FCC and test it end to end...
If u face any prblm post here... some1 will help u out..
Babu

Similar Messages

  • XI Sender file adapter - How to process data and control files.

    Hello all,
       I have the following requirement to fulfill: I am using an FTP client (XI Sender file adapter) to retrieve data from an FTP site. To make sure I am not picking up a data file that is currently being written to, 2 files are actually present on the FTP site (for each data file):
    1. abc.ctrl (control file with no data in it. Indicates that the data file has been completely written).
    2. abc.dat (actual data file).
      I want the file/ftp connector in XI to retrieve the data file (abc.dat) only if the control file (abc.ctrl) is present. After the processing of the data file is finished, both files (.dat and .ctrl) should be deleted.
      Is there an elegant and robust way to accomplish this?
    Thanks for your help.

    Hi Yves,
    in my opinion there's no problem with files currently being written in combination with a polling file adapter because the final file name should be available only when the file is transferred completely. I'm using different file sender adapters very often and never had any problems. After picking up the files I move them to the corresponding archive folders mentioned in the adapters so that a second processing cannot occur.
    Regards
    Ralph

  • How to read data from PDF and HTML  file

    I have got solution to read text form .txt file but did'nt get code for PDF and HTML.
    I dont want to convert PDF to txt.
    Please help me ...

    ah crap i could have guessed there would be a crosspost only the forum in where the crosspost is made is abit funny
    To OP: DO NOT CROSSPOST
    http://forum.java.sun.com/thread.jspa?threadID=5267875&tstart=0

  • Read lines from more than 1 file of different file extensions, extract the data and output to screen

    Hi,
    I am trying to read data from more than one file at once. The files are different types e.g. one is a text file one is an xml file like so, StudentInformation.txt, CollegeInformation.xml. The files are all stored in one place, in this case on the D drive of
    a local computer. I am trying to locate any files in the D drive with a file extension of .txt or of .xml (there may be more than two of these files in the future, so I'm trying to allow for that). Then I want to open all of these files, extract the information
    and output all the information in one display window. I want all the information from these two or more files to be displayed together in the display window.
    Here is the code so far. It is throwing up errors.
            //Load from txt or xml files
            private void btnLoad_Click(object sender, RoutedEventArgs e)
                    IEnumerable<string> fileContents = Directory.EnumerateFiles("D:\\", "*.*", SearchOption.TopDirectoryOnly)
                    .Select(x => new FileInfo(x))
                    .Where(x => x.Extension == ".xml" || x.Extension == ".txt")
                    .Select(file => ParseFile(file));}
                    private string ParseFile(FileInfo file)
                        try
                            using (StreamReader sr = new StreamReader(file.FullName))
                                string line;
                                while ((line = sr.ReadLine()) != null)
                                    //Logic here to determine if this is the correct file and append accordingly
                                    lbDisplay.Items.Add(line);
                                return line;
                        catch (Exception ex)
                            // Let the user know what went wrong
                            MessageBox.Show("The file could not be read: ");
                            MessageBox.Show(ex.Message);
    The error it throws up is:
    Error 1
    'BookList.MainWindow.ParseFile(System.IO.FileInfo)': not all code paths return a value

    This is the Small Basic programming language so moving to a C# forum.
    But you need all paths to return a value, including if an exception is called and it jumps to the catch, perhaps just:
    // Let the user know what went wrong
    MessageBox.Show("The file could not be read: ");
    MessageBox.Show(ex.Message);
    return "";

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • File Adapter : read XML file with data validation and file rejection ?

    Hello,
    In order to read a XML file with the file adapter, I have defined a XSD that I have imported to my project.
    Now the File Adapter reads the file correctly but it does not give an error when:
    - the data types are not valid. Ex: dateTime is expected in a node and a string is provided
    - the XML file has invalid attributes.
    How can I manage error handling for XML files ?
    Should I write my own Java XPath function to validate the file after is processed ? (here is an example for doing this : http://www.experts-exchange.com/Web/Web_Languages/XML/Q_21058568.html)
    Thanks.

    one option is to specify validateXML on the partnerlink (that describes the file adapter endpoint) such as shown here
    <partnerLinkBinding name="StarLoanService">
    <property name="wsdlLocation"> http://<hostname>:9700/orabpel/default/StarLoan/StarLoan?wsdl</property>
    <property name="validateXML">true</property>
    </partnerLinkBinding>
    hth clemens

  • Can I hide the Adobe Reader panel with "Export, Create and Edit PDF and Send and Store Files"? I don't use it and it takes up space

    Can I hide the Adobe Reader panel with "Export, Create and Edit PDF and Send and Store Files"? I don't use it and it takes up space

    If you just mean, can I close it, sure. In Reader XI click the Tools button to close or reopen it.

  • How to configure File Adapter (Read)..?

    Hi all,
    While configuring the Read Adapter in BPEL 11g i am getting not reading any data from given location. But my location are correct.. So please how to configure File Read adapter and give any URL for this ... Thank you

    Hi all,
    The file adapter it consists many operations like
    1: Read
    2:Write
    3:Synchronous Read
    4:ListFiles
    So you are asking about Read operation
    First you take one File Adapter-->Select Read Operation--->Give Incomming file Location ( In local system you can give like C:/temp/NewDir Or Unix Envornment like you can give /temp/NewDir)
    After that you can give file Name like wich format it's incomming file name like CSV.txt or CSV.xml after you give Polling Intervels second or Mintued or Hour.You can select Native format or Define service Later once configure all those things the file adapter configration is done . If you have any doubts in file configrigation please go for the below link...........
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10231/adptr_file.htm#TKADP322

  • [File-Adapter] Reading not finished files

    Hey,
    my sender file adapter reading files which are not finished yet.
    The files are created by an ABAP programm. The creation could
    take some seconds. If the file adapter polls while creation is not
    finished, we have a problem.
    The flag "Process Read-Only Files" is not set, so the ABAP programm
    doesn't seem to set the file to read only.
    Is there a way to check (e.g. with an operating system command) if the
    file is processed completly?
    For example I could check if the date of creation is higher than 10 minutes
    or something like this.
    Any other ideas?
    thanks
    chris

    What is the file adapter option you are using?
    If NFS, you have the option "Milliseconds check before modification" that will prevent the file from being picked up till they are completly written.
    If FTP, then when the file is being written to the ftp folder you should have the option to use temporary files option
    Regards,
    Bhavesh

  • Can file adapter read file link/short cut

    All,
    I have a requirement for following use case
    Can file adapter read a file-link (basically a short-cut to a file in a folder) and check if the file exists at the path referred to in the short-cut.
    Thanks,
    Praveen

    Hi
    symbolic link did not work
    polling folder - "/tmp/filepoll"
    soft link - "/tmp/filepolllink" ponits to above folder
    my OS is Sun Solaris
    error in opmn.log
    <2010-03-24 07:46:55,023> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - successfully completed endpointActivation for portType=Read_ptt, operation=Read
    <2010-03-24 07:46:55,025> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Poller raising Alert for exception : ORABPEL-11001
    Invalid Input Directory.
    The value specified for the input (Physical/Logical)Directory activation parameter has an invalid value "/tmp/filepolllink".
    Ensure that the following conditions are satisfied for the input directory :
    1) It exists and is a directory (not a file). and
    2) It is readable (file read permissions). and
    3) If activation parameter "DeleteFile" is set to "true" then the directory should also have granted write permissions. and
    4) If using a logical name, then ensure that the mapping from logical name<->physical directory is correctly specified in the deployment descriptor.
    Thanks,
    Praveen

  • Static lookup lists:read data from a Java *.properties file

    Hi
    i need to make static lookup lists i am using read data from a Java *.properties file
    i am using the Class "PropertyFileBasedLookupViewObjectImpl" that wrote by Steve Muench in ToyStore.
    but i need to use the default language for that i update the loadDataFromPropertiesFile()
    method to find the correct properties file
    String temp=Locale.getDefault().getLanguage();
    String propertyFile =
    getViewDef().getFullName().replace('.', '/')+"_"+temp+ ".properties";
    the problem:
    For English(TEST_en.properties) it is good and working
    For Arabic(TEST_ar.properties) read from correct file _ar.properties
    but the dispaly character is wrong
    When Debug
    In the File 1=&#1583;&#1605;&#1588;&#1602;
    In debug 1=/u32423

    Depending on your use case you can either use a programmatic VO or directly expose the JV class as a data control.
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_36/jdtut_11r2_36.html

  • File adapter read activity.

    Hi,
    is it possible to make the file adapter to look for specific files and ignore others in the same directory or do you have to write a web service for that? I want the file adapter to poll for certain files only.
    Best Regards
    Johan

    Hi Johan,
    In the Adapter Configuration Wizard its already providing the setting
    You can found the setting as following
    File Adapter > Operation Type (Read File) > Step 5 of 7 (File Filtering)
    This step allows you to specify the file name pattern of both include and exclude files
    Notice: I am using JDeveloper 10g
    Wish helpful to you
    Roy

  • Read XML from a hardware sensor file into ODI

    Read XML from a hardware sensor file into ODI
    Hi,
    I am trying to extract xml data from a flowmeter that generates XML data.
    The xml file is found in http://ip_address/history.xml
    I’ve defined my Topology as such
    JDBC Driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
    JDBC URL: jdbc:snps:xml?f=http://192.168.0.202/history.xml&ro=true
    Please note to access the file I have to supply a username and password so I did in the definition But when testing my setup I get an error:
    ava.sql.SQLException: The DTD file "http://192.168.0.202/history.dtd" doesn't exist: Server redirected too many times (20)
    Please note I cannot write dtd to the device as it is a read only device.
    Has anyone came across such an issue, how can I achieve this.
    Thanks
    Hicham

    Hi David,
    Thanks for your reply.
    I've tried this jdbc url
    jdbc:snps:xml?f=http://192.168.0.202/history.xml&d=c:\temp\history.dtd
    but when I test the connection i get the following error
    java.sql.SQLException: While generating the DTD from the XML file, a java.io.IOException exception occurred saying: Server returned HTTP response code: 401 for URL: http://192.168.0.202/history.xml
    If I browse http://192.168.0.202/history.xml and i supply the username and password I get an xml page.
    I've supplied the username and password in the definition tab of the Data Server windows but still getting the above error.
    THanks
    Hicham

  • My LR 4 suddenly no longer recognized my memory cards. I am using the same cards and cameras but consisitently get the error message:"files not imported because the files could not be read. they are jpg and nef files...I am stuck without my workhorse! Any

    My LR 4 suddenly no longer recognized my memory cards. I am using the same cards and cameras but consisitently get the error message:"files not imported because the files could not be read. they are jpg and nef files...I am stuck without my workhorse! Any advice is helpful. This has never happened in 6 years

    answered in your other thread LR 4 suddenly no longer recognizes files.

  • Lightroom trial doesn't show complete menu selections or import button.  Also get error message on launch:  An error occurred when attempting to change modules.  I am unable to find/see the following file to try renaming the SLCache and SLStore files:  Sy

    Lightroom trial doesn't show complete menu selections or import button.  Also get error message on launch:  An error occurred when attempting to change modules.  I am unable to find/see the following file to try renaming the SLCache and SLStore files:  System Library/Application Support/Adobe.  Any ideas?  I only have 16 days left on the trial and have been unable to get it to work on my Macbook Pro.  This is all I am seeing after Lightroom opens.  Thanks!

    Thanks to both of you for attempting to help.  I finally figured out what was wrong . . . it was a Permissions problem.  Very frustrating, but after scouring the troubleshooting tips I finally found the one that solved my problem.  I had to add a User and give it Read/Write privileges to Lightroom.  The file I had to add the User to was Hidden on my Mac, so that added an even bigger challenge to the mystery.  Only a few days left on my trial version!  I hope I have time to try it out!

Maybe you are looking for

  • How do I turn an outline to a path?

    First off please excuse my forum etiquette. I am learning. On Windows 7 64bit in Illustrator CS4 I am trying to make an outline or even multiple outlines that are actually paths (for option of cutting on plotter) Or creating a contour around objects

  • How do i get my itunes back after transferring music to the itunes library?

    After my computer had a virus, I still had all my songs, applications, and podcast on the iPod. The problem is that I wanted to transfer the songs to the itunes library, but only the songs that I purchased are left ( everything else is gone). How do

  • AS3 Contact Sheet Help!!

    Hi, I have been making a website entirely in flash CS4 AS3 and I decided to buy a contact sheet to add into it, when I added it in though it didn't work. I would click the button of the contact sheet and it didn't work. I contacted the creator if the

  • Elemente werden in der Vorschau verschoben angezeigt ( Adobe Muse)

    Hi , die Elemente bei Adobe Muse  (Bilder und Texte) werden in der Vorschau anders angezeigt als im Bearbeitungsmodus. Sie werden verschoben angezeigt. Seltsamerweise werden sie ( nach längerem hin und her probieren) gleichmäßig angezeigt, wenn man e

  • Can't set printer up wirelessly

    Hello, I have Mac OS 10.7.1 and the HP Deskjet 3050 J610 and cannot set it up to print wirelessly from my laptop. Please help.