File Adapter use in BPEL

Hi All,
Can you please share some useful information on File Adapter? Is it possible to make use of 2 or more file adapters in a single BPEL Process.
Scenario is:
First to read a file from one location.
Has to place the reaqd file in a different location.
Club this file with other file in a differnt location, and put that clubbed/merged file in a different location.
EX: Read from A
Write to B ( Read another file in B and merge the file A content with in it)
PLace the (A+B) file in location c with in a different Location.
Is it possible to read or write a file of size more than 10 MB, how much size does a File Adapter supports? how to read or write files of more size ( more than 10 MB Size)?
Edited by: user12679330 on Aug 3, 2010 5:35 AM

hi',
Read file1 copy the contents to temp_file1, then write that to locationA, in the same process do a synchronous read for file2 and copy the contents to temp_file2, now while writing the file back with contents (file1+file2) you will require a new XSD which will have mapping for both the file elements, and then you can pass the value of temp_file1 and temp_file2 to this file adapter.
-Yatan

Similar Messages

  • Error in Rcvr File Adapter using FTP ?

    Hi @,
    I am getting the follwoing error while trying to put file in the folder thru Rcvr File Adapter using FTP and it is giving me following error :
    java.io.FileNotFoundException :(Permission Denied )
    I have verified the permissions on the folder and it is having write permissions.
    Please suggest Its urgent.
    REgards

    hi amit,
    can you
    1. check whether the access to FTP is Authenticated, if so provide the username and password
    2. try giving different file name at the receiver end
    3. try normal ftp commands to access the folder
    regards
    Ramesh P

  • Faults generated by Oracle file adapter not reaching BPEL process

    Hi,
    I have a process that uses the Oracle file adapter to receive the contents of a file, and am suffering from a number of problems when it is not able to parse the source file.
    The process is initiated by a receive activity associated with the file adapter partnerline that has the create instance flag ticked.
    One problem is that if the file adapter encounters an error when reading the file, there is no record of anything happening from the BPEL Console. I presume this is because no instance of the process has been created as the error was encountered before invoking the process. The only record I have of a problem ever occuring is in the logfiles.
    To make matters worse, if you select the Delete files after successful retrieval, the source file is deleted even though an exception has been encountered. If you specify the Archive processed files options, it does not archive the file.
    So to summarise the problems:
    * there is no record of an attempt to read, or of a faulty read occurring when trying to read the file from the BPEL console when a faulty read does occurs.
    * no instance of the process is ever created, so it is not possible to implement a fault handler to send out a notification of the problem.
    * when a problem is encountered, the source file is deleted and not archived.
    I assume that this is a bug, so can anyone advise if there is a patch to address these problems?
    Thanks
    Toby

    Ok, so now I'm using a rejection handler to invoke a BPEL process, and have defined the inputVariable type to be rej:RejectionMessage and imported RejectionMessage.wsdl.
    The process is being invoked successfully, and I can see that the processes input contains data.
    So I am writing the opaque MessagePayload to a file successfully using a file adapter, and can see the file content that is written is as I would expect (it matches the file used as input that would have caused the fault - although the content is truncated).
    Now I want to modify the file adapter so that the file's filename is set to the RejectionId attribute of the BPEL process. However, I'm receiving the following message:
    xpath variable/expression expression "/ns2:RejectedMessage/@ns2:RejectionId" is empty at line 50, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns2:RejectedMessage/@ns2:RejectionId" is not empty.
    I can see from the console that the RejectionId is in fact populated, and the copy from the RejectionMessage's MessagePayload is completed ok.
    Does anyone know what's going on here?
    Thanks
    Toby

  • Problem in Sender File Adapter using FCC with Variable structure

    Hi Experts,
    Hi Experts,
    I have facing an issues while using FCC in Sender File adapter. Below are the configs for the same:-
    Recordset structure required is ==HEADER,1,DATA,*,TRAILER,1
    Recordset per message == *
    Key Field Name == Key
    (Sorry i dont know how to insert screen shot here..pls tell me how can i insert screen shots here on sdn)
    HEADER.fieldSeparator           ,
    HEADER.endSeparator           u2018nlu2019
    HEADER.fieldNames               Key,x,y,zu2026
    HEADER.keyFieldValue          1
    HEADER.keyFieldInStructure      ignore
    HEADER.fieldContentFormatting     trim
    HEADER.additionalLastFields     ignore
    HEADER.missingLastFields     ignore
    DATA.fieldSeparator
    DATA.endSeparator
    DATA.fieldNames
    DATA.keyFieldValue
    DATA.keyFieldInStructure
    DATA.fieldContentFormatting
    DATA.additionalLastFields
    DATA.missingLastFields
    Using same variables for Trailer record as well.
    Source CSV file which i am picking:-
    ADSE ,RASD,replan  Contact ,2  0080509 0 8:43:25   ,        
    EMPL ,0011111,  S Top Up ,20080401  ,20080430  ,sdf  ,                          00000000431250  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:35,
    EMPL ,0222222,  r Cash Award ,20070701  ,20070703  ,ded  ,                          00000000023509  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:09:31,
    EMPL ,0233333,   Cash Award ,20070801  ,20070831  ,df  ,                          00000000044057  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:10:56,
    EMPL ,0244444,   Cash Award ,20080101  ,20080111  ,sf  ,                          00000000026717  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:29,
    BTRL ,   5140, 
    When i tested the scenario and monitored it using MDT in CC monitoring tool its giving me below mentioned error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'http://myurlname/mdt/me...
    However if i change the occurence of DATA as some specific value for eg 4 instead of * it works fine.
    Kindly help me in solving this problem.
    Thanks,
    Aditya Verma

    Hi Madan,
    Thanks a lot for giving me the way to this. But when i tested this with the below file its giving me the same error. Please let me know if i need to do any changes to the parameters mentioned above:-
    ADSE ,ASDA,Sha  replan Fr ont Feed Contact ,2  0080509 0 8:43:25   ,        
    EMPL ,0011111,   Cash Top Up ,20080401  ,20080430  ,TPV  ,                          00000000431250  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:35,
    EMPL ,0222222,   r Cash Award ,20070701  ,20070703  ,TPV  ,                          00000000023509  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:09:31,
    EMPL ,0233333,  r Cash Award ,20070801  ,20070831  ,TPV  ,                          00000000044057  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:10:56,
    EMPL ,0244444,   Cash Award ,20080101  ,20080111  ,TPV  ,                          00000000026717  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:29,
    EMPL ,0255555,   Cash Award ,20080301  ,20080320  ,TPV  ,                          00000000027870  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:25,
    EMPL ,0266666,   Cash Award ,20071001  ,20071020  ,TPV  ,                          00000000020681  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:09:31,
    EMPL ,0877777,   Cash Top Up ,20080401  ,20080430  ,TPV  ,                          00000000036000  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:05,
    EMPL ,0888888,   Leaver Cash Award ,20071201  ,20071231  ,TPV  ,                          00000000157200  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:11:29,
    EMPL ,0899999,  S Leaver Cash Award ,20080301  ,20080331  ,TPV  ,                          00000000153530  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:07:42,
    EMPL ,0800000,  S Leaver Cash Award ,20070701  ,20070731  ,TPV  ,                          00000000012234  ,2007                                    ,  ,  ,  ,  ,  ,20080414  18:08:34,
    BTRL ,   5140,
    This the original csv file which i'll get in live. Kindly suggest as ur solution worked with other file but not working with this scv file.
    Thanks a lot,
    Aditya.

  • File Adapter using NFS

    Hi all
    I am using the NFS option in File adapter.The file is being placed in C:\TEMP folder and in the directory path i have specified
    ipaddress\TEMP but when i watch it in Adapter Monitoring it shows me a error C:\TEMP does not exist.
    Please suggest if any settings need to be done.

    You need to put the file on application server by TCode SXDA_TOOLS. I guess you are putting the file on your local machine.
    First of all into XI goto AL11 and chose one source directory, and give this dierectory name in your CC as it is, no need to put ip address as you have done.
    Just see the below example to put the file on application server (XI) directory.
    The porcedure to put a file on server is as shown below:
    1. Save your file in your local machine.
    2. In XI server, enter the tranaction code "SXDA_TOOLS".
    3. In the input screen, enter:
    i) Object Type "DXPROJECT".
    ii) Program Type "BAPI".
    iii) Program "CREATE".
    4. Press Copy (Ctrl+F5) button.
    5. Now, you will get another screen in which you will see 3 blocks called as "Source", "Target" and "Copy with/without conversion".
    6. In Source block, choose the radio button "Presentation Server" and then take F4 help to select your source file. (file which you have saved on your local machine)
    7. In Target block select the radio button "Application Server", check the box "Remote server" and take F4 help to select your application server.
    8. In the same block under "File Type" select "P physical file name" and under "File Name" write the path/directory name which you have mentioned in your communication channel along with the file name.
    <b>Example:</b> suppose file name in your Comm Chanel is "demo.xml" and directory path is "/abc/testfiles/XML/", then in step 8 write "/abc/testfiles/XML/demo.xml".
    <b>Note:</b> need not to do any thing in 3rd block.
    Regards,
    Sarvesh

  • Error in Receiver File adapter using File content Conversion

    Hi,
    I am getting the following error in the receiver file adapter.
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'statement.fieldFixedLengths' or 'statement.fieldSeparator' is missing
    I am using the below parameters for FCC:
    Recordset Structure - statement
    statement.endSeparator - 'nl'
    statement.fieldSeparator - '0X09'
    statement.fieldNames -xblnr,wrbtr,newbs,kostl,newko,prctr,xref1,rke_wwfud,rke_wwst3,blart,bukrs,bldate,budat,gjahr,monat,ctype,waers,bktxt,posnr,wbs_element,mwxkz,businessplace,businessplace,c_waers,c_wrbtr,g_ctype,g_waers,g_wrbtr,h_ctype,h_waers,h_wrbtr,trade_id,lob,sgtxt,zuonr,reason_rev,ldgrp,tcode,lifnr
    ignoreRecordsetName - true
    Please let me know where i am going wrong.
    Thanks,
    Aparna

    Hi Aparna,
    I feel the problem in your content conversion parameters is with
    statement.fieldNames and ignoreRecordsetName
    When you are confirguring receiver file adapter for file content conversion the above one is not required. Please refer below link for details on configuring content conversion in file adapter
    [http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm]
    Hope this helps !!
    Regards,
    Amit

  • Problem with NFS file adapter using a network share as source of files

    Hello,
    I have set up a sender cc with NFS format file adapter, with at the source directory a network share (
    server\sharename ). The share is on another system and not mapped to a local drivename, but it is open for everybody.
    The problem is, the adapter seems to not pick up the files in the directory, so there must be something I'm overlooking.
    - Both servers run on Windows
    - Share is available normally and open for everybody for all actions (including the SAPServiceSID user)
    - Files themselves are okay. If I put a file on a local drive and make the source directory the local drive instead of the network path, the file gets processed correctly
    - Because of the need for a file completion check, FTP is not an option
    Does anybody know what is going wrong, or what I could check for trace / logging info on possible cause of the problem?

    Hi,
    While using NFS mode you are supposed to put the file on XI server directory NOT to a common share directory of any other machine. And this is the reason your adapter in not picking the file.
    You can upload the file on XI server directory by using the tcode "SXDA_TOOLS", morevere you can check the file on the same directory with tcode "AL11". It is otherway-around, you can first select or chose the dir by AL11 and then put the file in the same dir by tcode SXDA_TOOLS.
    If you need more info about SXDA_TOOLS, let me know.
    Regards,
    Sarvesh

  • Unable to configure file adapter using FCC  for Multilevel hierarchy

    Hi Experts,
    Can anyone help me in configuring the Receiver file adapter with FCC for the structure given below
    <Root>
    <Level1>
         <Ele1>
         <Ele2>
         <Level2>
                <Ele2_1>
                <Ele2_2>
                <Level2a>
                        <Ele2a_1>
                        <Ele2a_2>
                </Level2a>
         </Level2>
    </Level1>

    Hi dineshmale,
    I have do this Multilevel hierarchy before. FCC can directly configure this scenario. But I don't know you output format. What my format shown below(here i use '#' instead of space):
    Level1_Field1##Level1_Field2##Level1_Field3##Level2_Field1##Level2_Field2##Level3_Field1##Level1_Field2
    #################################################################Level3_Field1##Level1_Field2
    #######################################Level2_Field1##Level2_Field2##Level3_Field1##Level1_Field2
    #################################################################Level3_Field1##Level1_Field2
    Level1_Field1##Level1_Field2##Level1_Field3##Level2_Field1##Level2_Field2##Level3_Field1##Level1_Field2
    #################################################################Level3_Field1##Level1_Field2
    #######################################Level2_Field1##Level2_Field2##Level3_Field1##Level1_Field2
    #################################################################Level3_Field1##Level1_Field2
    #################################################################Level3_Field1##Level1_Field2
    FCC Parameter:
    Recordset Structure: Level1,Level2,Level3
    Level1.fieldSeparator = (2 spaces)
    Level2.beginSeparator = (some spaces according to the length of the fields in Level1)
    Level2.fieldSeparator = (2 spaces)
    Level3.beginSeparator = (some spaces according to the length of the fields in Level1and Level2)
    Level3.fieldSeparator = (2 spaces)
    Level3.endSeparator = \n
    There are some points:
    1. the endSeparator for Level1 and Level2 doesn't work.
    2. the first begin separator in Level2 and Level3 doesn't work.
    3. The last field of super node and the first field of child node is separated by the (child).fieldSeparator.
    4. ....
    What's more, I have write a blog of FCC For Hierarchical Structure in Receiver Channel just now. So it need two days for Approval. Let me know for any issues.
    Edited by: guKidd on Dec 14, 2010 7:52 AM
    Edited by: guKidd on Dec 14, 2010 7:54 AM

  • Multiple message through FIle Adapter using XI 2.0

    I have scenario to create multiple message using File adapter .My file structure will be like
    EMPID     NAME     SKILLS
    001     A      ABAP
    001     A      XI
    002     B      JAVA
    Now I want to post first 2 records in one message and last record in other message.
    Can we do it in XI 2.0.Any help appreciated

    Hi Suraj.
    Thank you very mutch for your reply.
    Excuse me...my mapping is done for message type and idoc.
    My problem is that when the interface start, on the sxmb_moni I see an error like this:
    Creating Java mapping com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- Using MappingResolver with context URL //srvsapdev/sapmnt/CX1/SYS/global/xi/mapping/gestione_magazzini/7fa9c9e15a7811dab710f3e3ac10826e/ --- Load of com/sap/xi/tf/_MM_XmlOrderToIdocMapping_.class from //srvsapdev/sapmnt/CX1/SYS/global/xi/mapping/gestione_magazzini/7fa9c9e15a7811dab710f3e3ac10826e failed. --- Class not found: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- java.lang.ClassNotFoundException at RUMappingJava.load(): Could not load class: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ Class not found: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- com.sap.aii.ibrun.server.map.MappingRuntimeException: at com.sap.aii.ibrun.server.map.MappingRuntimeException.code_STYLESHEET_OR_CLASS_NOT_FOUND
    ..where 'gestione_magazzini' is my namespace and 'MM_XmlOrderToIdocMapping' is my message mapping.
    Can you help me to undestand the problem?
    Thanks,
    Gianluca

  • Performance Problem with File Adapter using FTP Conection

    Hi All,
    I have a pool of 19 interfaces that send data from R/3 using RFC Adpater, and these interfaces generate 30 TXT files in a target Server. I'm using File Adapters as Receiver Comunication Channel. It's generating a serious perfomance problem. In File Adpater I'm using FTP Conection with Permanently Conection, Somebody knows if PERMANENTLY CONECTION is the cause of performances problem ?
    These interfaces will run once a day with total of 600 messages.
    We still using a Test Server with few messages.

    Hi Regis,
        We also faced teh same porblem. Whats happening is that when the FTP session is initiated by the file adapter, then its getting done from teh XI server. Hence the memory of the server is also eaten up. Why dont you give a try by using 'per file transfer'.
        If this folder to which you are connecting is within your XI server network then you can mount(or map) that drive to the XI server and use it with a NFS protocol of the file adapter and thereby increasing the performance.
    Cheers
    JK

  • Sapevt and file adapter using ftp

    Hi;
    Using the file adapter, I ftp a file to our SAP R/3 system called T01 (=SID).
    Target directory
    //T01/010/OCS/TC/IN
    File name scheme:
    wka.dat
    I specify in "Run Operating System Command After Message Processing"
    sapevt WKA -t name=T01 nr=01
    WKA is the event I defined (SM62) into our T01 R/3 system.
    It seems not to work. Any help? Did I miss something?
    Where do I need to search for logging (ABAP or J2EE stack)?
    Wilbert

    Hi Wilbert,
    Please check these...
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    FTP ReceiverChannel and OS commands help
    Hope these help!
    cheers,
    Prashanth
    P.S Please mark helpful answers

  • File Adapter using Mapped Drive

    Hi Experts
    we are working on a scenario in which we have mapped a drive in our XI system.Now we want to user this drive as our source for file adapter but the file adapter is not able to pick the file and in adapter log error "directory not found" is seen for that file adapter.
    can anyone please help us out.
    Thanks
    Mitesh

    Hi JayaKrishnan
    we tried the way you suggested but it is not working
    we configured the directory in transaction AL11 but when we double click on it it say 'no content inside directory'
    and a doubt more as our file adapter is placed on java stack why do we need a configuration on ABAP stack.
    can you please explain somthing about this.
    Thanks
    Mitesh

  • Using a File Adapter in a BPEL process

    Hi,
    I am new to BPEL and currently working on migrating my current integration to a SOA architecture using BPEL processes. The integration requires a file to be read and i plan to use a fileadapter . This file to be read is of fixed length type and i see in the file adapater you can generate an xsd for fixed length file. however i need to specify the range for every column that will be read.
    Eg : Column1 1-10
    Column2 11-25
    Is there a way i can achive this? From what i see now i can only specify the length as a number like 1,2,3,4,5
    Thanks

    In your case, you have to give "10, 25" in field positions which tokenize the columns 1-10 and 11-25.
    --Prasanna                                                                                                                                                                                                                                       

  • Error-Receiver File Adapter using Variable substitution when file is empty

    XI Experts,
    We are on PI 7.0, SP14.
    We are using variable subtitution to get the filename from source message. This works fine as long as we have data in the payload for filename element. But we have a scenario where we don't have to create file when certain condition does not exists in source message so in the message payload filename element will not exists in such condition and file will be empty and we should not create file.
    Parameter in the communication channel for Handling empty message is "Ignore".
    Does anyone knows how to handle this scneario. We don't want to default any file name in the message mapping if source file name element does not exists.
    We are following getting error in the Adapter engine.
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: file
    Thanks
    MP

    You can implement this by writing the module to throw an exception or whatever method you want to execute.
    If you don't want to receive an error message then module is suitable for you.
    Gaurav Jain

  • Adapter Module for File Adapter using Eclipse

    I want to develop Adapter Module using Eclipse, please let me know if it is possible?
    -How to use Eclipse to develop adapter module and deploy it on J2ee server.
    Thanks

    Hi,
    If you have NWDS , then you can directly deploy AM in PI server, if you are using eclipse to write code then genarate EAR file of your code, then you have to deploy in SDM using manual process.
    SEARCH IN SDN like how to deplot AM's, you will find many documents.
    Regards,
    RAJ

Maybe you are looking for

  • After installing SCCM 2012 R2 CU4, I show a Distribution Point warning that won't clear.

    I recently installed SCCM 2012 R2 CU4 on a LAB environment, and nowhere is it more important to wait until all requisite site roles are reinstalled before doing anything else. I did, and still do, have an warning/ error on the Site components that sh

  • ( music ) windows to macbook pro

    Hello I have friend who has copied music ( data disc mp3 ) on there windows system and I want to copy this to my MBP is there a plug in ect ? as i cannot seem to transfer this information ? Any help please ? Thanks

  • Internal Order Budget Carryfoward

    hi all, I need to carry out the budget carry forward for internal order. Please clarify my doubts. 1. Do i run KOCO and then KOCF or KOCF and then KOCO 2. does the availability control get deactivated after carry forward and do we have to activate ag

  • Problem with hidden objects when moving layers, groups or artboards

    Hi there, I am using Illustrator CS5.5 on a Mac. Sometimes, after moving stuff around (groups, layers or artboards), I notice that hidden objects didn't move with everything else. Does somebody knows how this can be if no objects are locked ? I canno

  • Maintaining Text Formatting from Indesign CS4 to Illustrator CS4

    Hey folks, I'm trying to transfer copy a section of text with bullets from InDesign CS4 back into Illustrator CS4.  When I copy it over to Illustrator, I lose my bullets.  I know I could do this in CS3 and maintain the bullets, but the approach I use