Two File Adapter

HI.
Our system have two instances, and we use file adapter(sender). These file directory is same.
If the two file adapter try to get file at same time,
does the locking error may occurred?
Have anyone met the this kind of problem?
regards,

>>If the two file adapter try to get file at same time, does the locking error may occurred?
I guess you would not get any locking error as the file adapter does not support the file locking.
For more information on file locking have a look at the note 821267 Question 3.
From SAP Note
Q: I sometimes observe that files are processed only partially,
i.e., only a fragment from the file's start is converted into an XI
message. Nevertheless, the file is usually archived completely.
Does the File Sender Adapter honor if another process has locked a
file for exclusive use?
o A: Unfortunately, the J2EE 1.3 technology the File Adapter is built
upon does not support file locking. This limitation affects the
File Adapter's operation. Depending on whether the JRE
implementation for the operating system under which the adapter
runs uses mandatory file locking or advisory file locking, opening
a file that is currently being written to by another process will
fail or not.
If opening the file fails, no problem exists and the adapter will
try to open the file each poll interval until it succeeds.
However, if opening the file is not prevented by the operating
system, the adapter starts to process the file although it is still
being modified.
Thanks
SaNv...

Similar Messages

  • Same setting for two file adapter but different output

    Hi ,
    I am having two receiver file adapter for two differrent scenario with same settings but different structure.
    I want the output of the file for both the scenario should be displayed line by line but it is working fine for one scenario.File type,file encoding and FCC are same in both the interface except the fieldsnames in FCC.
    When i check both the output file i found that the scenario which is working fine  having OA OD hexadecimal value at the end of line of each line.and the second scenario which is giving the output in single line is having only OA.
    waitng for Valueable inputs!!!
    Thanks
    Santosh

    Hi Santosh,
    Kindly elaborate your question.
    it would be helpful if you post the content conversion parameters of the erroneous file channel.
    Regards,
    Varun

  • Testcase problem using two file adapter and a transformation

    We've got an input which looks like this :
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
    <row>
    <id>10</id>
    <naam>A</naam>
    </row>
    <row>
    <id>20</id>
    <naam>B</naam>
    </row>
    </rows>
    I've created an XSD for this message which looks like this ( straightforward ) :
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.test.nl/testschema" xmlns:test="http://www.test.nl/testschema" elementFormDefault="unqualified">
         <element name="row">
              <complexType>
                   <sequence>
                        <element ref="test:id"/>
                        <element ref="test:naam"/>
                   </sequence>
              </complexType>
         </element>
         <element name="rows">
              <complexType>
                   <sequence>
                        <element ref="test:row" maxOccurs="unbounded"/>
                   </sequence>
              </complexType>
         </element>
         <element name="naam">
              <simpleType>
                   <restriction base="string">
                   </restriction>
              </simpleType>
         </element>
         <element name="id">
              <simpleType>
                   <restriction base="byte">
                   </restriction>
              </simpleType>
         </element>
    </schema>
    I've imported this XSD in my ESB project and created a file adapter which reads this type op files.
    I've created another file adapter to write the files 1:1 to an output dir.
    In the routingservice I've created a very straightforward XSL mapping which maps everything 1:1.
    Now the problem
    When I use this input :
    <?xml version="1.0" encoding="UTF-8"?>
    <rows>
    <row>
    <id>10</id>
    <naam>Martin</naam>
    </row>
    <row>
    <id>20</id>
    <naam>Edward</naam>
    </row>
    </rows>
    my output result is:
    <?xml version="1.0" ?><imp1:rows xmlns:imp1="http://www.test.nl/testschema"/>
    I know this is a namespace issue. When I add the namespace
    <?xml version="1.0" encoding="UTF-8"?>
    <rows xmlns="http://www.test.nl/testschema">
    <row>
    <id>10</id>
    <naam>Martin</naam>
    </row>
    <row>
    <id>20</id>
    <naam>Edward</naam>
    </row>
    </rows>
    I get the correct ( and 1:1 output ).
    The problem is. In the scenario I'm about to build the input xml messages do not have an namespace. How can I alter my xsd file or anything within my ESB project that all files will be picked up correctly and processed without having an default namespace?
    Any help is appreciated!

    True,
    But its the other way around what is causing my problem.
    Because the input xml files contain no namespace at all the xml messages are transformed but result in an almost empty xml message. ( e.g. the root element is there and thats it ).
    This is because the XML transformation mapper in ESB ( as well as BPEL ) excplicitly needs a namespace.
    I solved it by editing the XSL by hand, removing the :imp1 namespace prefixes in the select="" tags. e.g.
    <xsl:for-each select="/imp1:rows/imp1:row"> is updated in
    <xsl:for-each select="/rows/row">
    As far as I know this is the only workaround at the moment that I could find.

  • Two file adapter questions

    First, can someone post a URL for detailed file adapter documentation?
    Second, I'm a little confused how to use the file adapter in the case where I'm writing out a message whose schema is contained in one of the wsdl files instead of in an xsd file.
    The particular case is that I call the Google search service, which returns a message of type doGoogleSearchResponse. The schema for this message is embedded in the google.wsdl file from Google. When I browse in the file adapter wizard to choose a schema for the write operation, I can only see schema from my projectName.xsd file, none from the google.wsdl file (even though it's in the project). How can I use the file adapter to write out the Google search reply?
    Thanks,
    Bret

    Hmmm. Step 4 of the file adapter wizard requires me to specify a "Message Schema". There is no apparant way to get past that step without choosing one. Should I just choose any schema in the project and then go back and fix the code?
    Bret

  • REG: File Adapter

    Hi All,
            I have a scenario where i need to pick 2 files from 2 different folders and process them in a particular sequence. Can anyone suggest me a method how this can be achieved.
    Thanks,
    Siva.

    use two file adapter with different polling intervals.
    first file adapter will pick up file then second adapter will be polled and will pick the another file from the folder.
    chirag

  • File adapter-How to set line break in text file-split record into two lines

    Dear Guru's,
    I have to solve following problem with XML (with mulitiple records) to TEXT file scenario using file adapter. I have to output for ever ONE data record in XML always two identical lines in text file. Second line should have a little bit different mapping in few fields like date,... So I did duplicate fileds in my output structure in mapping and need to know how to set line break in the middle and see half of structure in first line and next structure half in second line
    My output structure in mapping is:
    CASHFLOW
    - INTERFACE
    - GESELLSCHAFT
    - ANWENDUNG
    - PRODUKT
    - VERTRAG
    - BETRAG
    - WAEHRUNG
    - DIRECTION
    - BEWEGUNGSTYP
    - FAELLIGKEIT
    - ZINSFESTSTELLUNG
    - ZAHLUNGSTAG
    - RENDITE
    - INTERFACE2
    - GESELLSCHAFT2
    - ANWENDUNG2
    - PRODUKT2
    - VERTRAG2
    - BETRAG2
    - WAEHRUNG2
    - DIRECTION2
    - BEWEGUNGSTYP2
    - FAELLIGKEIT2
    - ZINSFESTSTELLUNG2
    - ZAHLUNGSTAG2
    - RENDITE2
    Question is how can I set on receiving file adapter in Content Conversion Parameters that fields from first structure half INTERFACE...RENDITE should be outputed in one line and fields from second half of structure INTERFACE2...RENDITE2 should start on second line in final text file.
    I'm getting at the moment one line only and I need to know how can set line break so that second line starting with INTERFACE2(CA)...RENDITE2 will start in new line.
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000",CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    This should be final output:
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000"
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    My file adapter settings:
    RecordsetStructure=CASHFLOW
    CASHFLOW.fieldNames=INTERFACE,GESELLSCHAFT,ANWENDUNG,PRODUKT,VERTRAG,BETRAG,WAEHRUNG,DIRECTION,BEWEGUNGSTYP,FAELLIGKEIT,ZINSFESTSTELLUNG,ZAHLUNGSTAG,RENDITE
    CASHFLOW.fieldSeparator=,
    CASHFLOW.endSeparator='nl'
    CASHFLOW.fieldNames=INTERFACE2,GESELLSCHAFT2,ANWENDUNG2,PRODUKT2,VERTRAG2,BETRAG2,WAEHRUNG2,DIRECTION2,BEWEGUNGSTYP2,FAELLIGKEIT2,ZINSFESTSTELLUNG2,ZAHLUNGSTAG2,RENDITE2
    CASHFLOW.fieldSeparator=,
    It wont help if I add two identical structures in mapping because in output i would see for multiple entries section with first lines only and after that section with second lines only. And CASHFLOW is one part of more complex mapping ...
    (This is final output structure RecordsetStructure=HEADER,CASHFLOW,CONDITION,REFERENCE,CONTRACT - more sections with different data and all these should have duplicate lines at the end)
    Thanks a lot for any help
    Cheers
    Marian
    Edited by: Marian  Luscon on Jul 14, 2009 11:44 AM

    Hi Ivan,
    right, I did test just for sure.
    Putting constant 'nl' into field CASHFLOW-INTERFACE1 didnt help - still getting one line instead two lines.
    CA ,"0100" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,2 ,12 ,2009-01-28 ,2009-01-27 ,2009-01-28 ,"0.0000000" ,'nl' ,"GTP1" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,1 ,10 ,2009-01-27 ,2009-01-27 ,2009-01-27 ,"0.0000000"
    So there is still question. Is there any way (mapping,...) how to output always 2 lines in text file for one record in XML. It always does 1 record in mapping structure = 1 line but we need 2 lines ...
    Example:
    Input: 4 records in XML
    Output: 8 lines in final text file ...
    Thanks to you all guys
    Marian

  • Handling two record strucutre in incoming file adapter

    I have a flat file (fixedlength type), which needs to be converted into the XMLPayload I tried multiple option but didn't work. Here is the file strucutre
    P CONTRLT00010  01SCNCTCFSCR  001548340                12              130*    
    P CONTRLT00020 5                                006                            
    P CONTRLT00010  01SCNCTCFSCR  001548340                12   400           *    
    P CONTRLT00020                                  011                            
    P CONTRLT00010  01SCNCTCFSCR  001548340                12   800           *    
    P CONTRLT00020                                  030                            
    P CONTRLT00010  01SCNCTCFSCR  001548340                12  3200           *    
    P CONTRLT00020                                  350                            
    P CONTRLT00010  01NCGRTCFSCR  004824269                12              176*    
    P CONTRLT00020 7                                006                            
    So this file has two record strucutre, I created the Datatypes with following strucutre
    DT_TYPE
        RECORD_SET1
            FIELD1
            FIELD2
       RECORD_SET2
            FIELD1
            FIELD2
    In the file adapter, I marked the recordsetignore true. and defined the following parameters
    RECORD_SET1.fieldFixedLengths 1,8,6,1,1,6,6,1,1,10,15,2,6,7,1,4,7
    RECORD_SET1.endSeparator 'nl'
    RECORD_SET1.fieldNames KEY,PRGOGRAM_LITERAL,TASK_NUMBER,FILLER,COMM_CANCEL,COMPANY_NUMBER,PROGRAM_FIELD,CODE1,CODE2,KEY_FIELD,ADDITIONAL_KEY,CARD_CODE12,REGULAR_HOURS12,REGULAR_RATE12,OT_CODE12,OT_HOURS12,CONTINUATION_IND
    RECORD_SET2.fieldFixedLengths 1,8,6,1,4,6,4,4,4,4,10,3,1,6,2,5,1,1,7
    RECORD_SET2.endSeparator 'nl'
    RECORD_SET2.fieldNames KEY,PRGOGRAM_LITERAL,TASK_NUMBER,FILLER,OT_HOURS12,OT_RATE12,CONTROL12_3,CONTROL12_4,CONTROL12_5,CONTROL12_6,FUNCTION12,HED_NBR_12,TAX_TYPE12,LOCAL_CODE12,STATE_CODE12,PERIOD_DATE12,SHIFT12,DEDUCTION_CYCLE12,ENDO_OF_FORM_IND
    ignoreRecordSetName true
    RECORD_SET1.keyFieldValue 1
    RECORD_SET2.keyFieldValue 2
    RECORD_SET1.keyFieldInStructure ignore
    RECORD_SET2.keyFieldInStructure ignore
    RECORD_SET2.missingLastfields
    RECORD_SET1.missingLastfields
    On the adapter end its not reading the message and thrwoing the warning
    Channel CC_TCFSCR_SENDER: Converted complete file content to XML format.
    2009-07-30 13:21:26 Warning Channel CC_TCFSCR_SENDER: Empty document found - proceed without sending message.
    Any pointer will be helpful.
    Thanks,
    Samir

    Hi,
    You are mentioning the wrong keyfield values i beleive.
    RECORD_SET1.keyFieldValue 1     --- > on place of 1 enter the exactvalue which you want to use as key field.
    RECORD_SET2.keyFieldValue 2     --- > same apply here.
    As adapter is unable to find 1 or 2 in as keyfield in record its sending the empty document.
    Try :
    RECORD_SET1.keyFieldValue  =  P CONTRLT00010
    RECORD_SET1.keyFieldValue  =  P CONTRLT00020
    I hope his might help u.
    Thanks.

  • Receiver File adapter : two choices "Directly" and "Use Temporarly file" ?

    Hi All,
    I am writing the file into a folder and I want to write the file completely into the folder.Once the file is placed , one tool will be keep on picking files every second from this folder.So I need to put the file after filling entire data.
    In the File adapter, the put file option has two choices "Directly" and "Use Temporarly file".
    "Directly" option will serve my purpose?
    Which option I need to keep for Empty-Message Handling "Write Empty file" or "Ignore"?
    Thanks
    Seema

    Hi Mohamad,
    >> You need to place in the some other folder and do the transfer completely and move the file to desired location using command line parameters as recommended in the previous answers.
    I will be posting all the files as .txt files. Can we move the file by using command line parameters for FTP connection?
    I heard that we can get do it only for NFS and we cannot do for FTP connection.?
    Can you please suggest the command line how to use it.
    Thanks
    Seema

  • Two Files merging using File adapter in Bpel 2.0

    Hi All,
    I have two different files (File 1 and 2) of same format(Two columns each)  , now i want to merge these two files using their data and form a consolidated file (File 3 with four columns).
    Please advise on how to make it possible using file adapter.
    Example:
    File 1 Format: A1 and A2 - are two columns of number and sring type
    File 2 Format : B1 and B2 - are two columns of number and string type
    Consolidated File 3 Format : A1 B1 A2 B2 - forming a single row if A1=B1 and also populating A2 and B2.
    Thanks
    Karthick.

    Hi Karthick,
    I would say read both files completely. Then create a transform and select both messages as an input creating one output. With XSLT it should not be too hard to combine the two inputs. You could loop on one file and then select each row from the other file. That output can be written to file.
    I don't know what triggers the process, but you could either let bpel be triggered by the polling on one file and read the other synchronously. Or read both files synchronously.
    Regards,
    Martien

  • Pick activity is not working properly while creating two or more file adapt

    Hi,
    pick activity is not working properly while creating two or more file adapter for bpel process.
    bpel process compiled and deployed succesfully but while observing the wsdl file of deployed process you can find only one file adapter. so it polls only from that location.
    can anybody help on over this? or it's limitation of jdev to use only one file adapter at time while using Pick.
    Thanks
    sagar

    Does anybody tried this?
    Thanks
    sagar

  • SAP XI - Combine Two files as one in File Adapter

    Experts,
    I want to combine two files as one in File adapter itself.  I am using a simple scenario of File-to-File where i am just sending the file from sender to receiver as it is , EXCEPT, i want to add one line at the end of the file .
    I was thinking of doing this in File adapter , avoiding any mapping program in Integration Repository ..
    ANY INDEA's ??
    Regards,
    Ashutosh

    Hey
    You have 3 options,first one can be to execute a OS command before message processing or use adapter modules to append the new line in the sender adapter.
    the second option(and better one) is to do this via message mapping.
    third option is to write a OS script and execute it after message processing on receiver file adapter.
    one thing you need to make sure is that since OS scripts run on XI server itself(not on FTP server) so in case you are picking file from FTP server and delivering to FTP ,then you can't use option 1 or 3,you can only use option 2
    Thanx
    Aamir

  • How 2 read two files from 2 diff. directories, using single adapter

    How 2 read two files from 2 diff. directories in same system, using single file adapter.

    you can use advanced selection for source file
    see
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm

  • Two sender file adapter

    Hi.
    We have two instances(central instace, dialog instance) on another hosts.
    Becase of we want use sender file adapter, so we need place the file data on shared directory that the two instances can access it.
    In this case two sender file adapter try to catch the file,
    does the locking ploblem occurred?
    regards,

    Hi,
    Yes it may cause the problem while reading the sender file.
    The two instances will try to access the file ...it means you have processed the Sender fiel adapter as per File transfer....
    But if youhave used the polling interval then...there will not be the problem...as only one instance will work for this.
    Thanks
    Swarup

  • Multiple Exclusion Criteria[Exclusion Mask] in Sender File Adapter

    Hello All,
    I have a requirement to specify multiple exclusion criteria in the 'Exclusion Mask' property of a Sender File Adapter, i.e. I need to pick up files that correspond to 111*.txt from a specified source directory, but I would also want to exclude specific individual files that go by the following names:-111ACC.txt, 111INV.txt & 111PUR.txt.
    I have tried the following - Specified 111*.txt in the 'File Name' field and in the 'Exclusion Mask' field specified ACC, INV & PUR - the exclusion criteria separated by commas. But this does not seem to work. All the 111* files are getting picked up.
    Have gone through a couple of weblogs that deal with exclusion masks, but they do not talk about multiple exclusion criteria.
    Is there any other way I could accomplish this?
    Thanks,
    Anand

    Hi,
    Try this config.
    Give  *.txt in filename. and Directory as <YourDir>
    In exclusion mask give 111ACC.txt
    Below this there will be a table. Add two Entries
    Dont add anything to FilenameMask.
    Directory ->FileNameMask--->ExclusionMask
    <yourDir>->--->111INV.txt  
    <YourDir>->--->111PUR.txt
    Try this and get back.
    Regards,
    Sudharshan
    Message was edited by:
            Sudharshan Aravamudan

  • Questions about using FILE adapter to connect to other systems

    Hi,
    in my PI scenario i am facing a problem in usage of the file adapter.
    Our PI system is installed on a UNIX server. The target system for upload an download files is a WINDOWS system. The software installed on the WINDOWS system is only able to export the needed file lokal on the WINDOWS server.
    Between UNIX systems i can connect a together used fileshare folder. But this won´t help me in my UNIX <> WINDOWS scenario.
    I thougt on using an FTP server on the WIDNOWS system to make the PI able to connect via the FTP adapter but this works fine for one or two systems. I don´t think that this ist the best solution when connection to a lot WINDOWS systems, but mayby i am wrong.
    Actually i use UC4 to copy the files between the two systems.
    Any ideas how to deal generally with such scenarios?
    Many thanks
    Michael

    Even though if you map Unix and Windows OS to read the files, in the long run the design will put you in trouble. Means it requires constant support. Better you go with unix script as per the above suggestion.
    Regards
    Pothana

Maybe you are looking for

  • How can i compare two databases and their tables

    i have a text.txt file then i will insert it into db_header and db_details db_header has tbl_pcountheader with fld_Rack_No(char) PK and fld_DateAdded(date) PK db_details has tbl_pcountdetails with fld_Rack_No(char) PK, fld_Barcode(char) PK and fld_Qu

  • Error in account coding

    While trying to do service entry, its giving a strange error like below: 'Error in account coding allocation' Anyone come across this type error before? I have checked the G/L account, in PO. Evrything is fine. This PO comes from the work order. Afte

  • Sound Recorder activated automatically in WhatsApp

    I was very suprised when recently a friend of mein noted that he has received a 22 minute voice recording message over WhatsApp. I found out that the integrated Sound Recorder had recorded a message acitivating and sending it out without my knowledge

  • User Task in a BPEL Process

    I'm making an ASP .NET websites that calls to a BPEL Process. This BPEL Process receives an ID and make three calls to three web services that search this ID in three diferent databases containing data about books. The process selects the cheapest of

  • Pop up message -don't know if this is a virus or my computer is trying to tell me something else

    Hi: I have a Toshiba Satellite A215-S4757 and recently I started getting a pop up message occasionally while surfing the net that says "Cid Check Url   The application is disabled. Please,check your serial number". Can anyone tell me what this is, Th