File Adapter Problem

Hi All,
we are having a simple scenario we have to use sender file adapter .
Our file is Simple Text File where one line is one reocrd .  Do i need to do content conversion ?  we don't have Header line item relation ship.Each flat file line should be a XML message. Now my problem is while  configuring content Conversion parameter we have to pass structure in format of header and line item only is there any other way ?
Thanks & Regards,
Tuhin

No you do not have to pass Header and Line item records in the flat file.
Just use <documentName>.fieldFixedLength=1,2,3,4...
and it should work.
Thanks
Ashish

Similar Messages

  • File adapter problem - xml file

    Is there a way to define in the sender file adapter the document name for a XML file?
    This is the xml file that arrives to XI,
    <?xml version="1.0" encoding="UTF-8" ?>
    <dataroot generated="">
    <Materials1>
      <CODE>FAMILY</CODE>
      <TYPE>A75</TYPE>
      <NAME_EN>LUBRICANT</NAME_EN>
      <NAME_ES>LUBRICANTES</NAME_ES>
      <NAME_DE>LUBRICANT_GERMAN</NAME_DE>
        </Materials1>
      </dataroot>
    I have to define the name of the Message Type as "dataroot" in order to avoid problems at mapping time. The problem is that I get from MDM the same structure begin each time,
    <dataroot generated="">
    Is there a way to define the XML Document Name in the Sender File Adapter?

    Hello Rob,
    FOr ""dataroot" element "generated" is the attribute.... define this attbute in the datatype as well..
    Thanks,
    Himadri

  • File adapter problem - message in RWB HOLDING msg status

    Problem in XI File adapter recver comm channel.Getting msg in RWB Adapter Engine HOLDING status.
    1. No explaination in RWB Details tab, of why status Holding.
    2. File does not get created, because of Holding status.
    3. Cannot  Resend or Cancel in RWB the message.
    <b>Sometimes the msg goes through and other times does not and is stuck.</b>
    File Adapter Parms set as:
    Connection Mode:  Per File Transfer
    Transfer Mode: Text
    File Adapter setting  Max concurrency = 1 would that have anything to do with it?
    File Construction Mode:Create
    Put Name: Direct
    Empty msg-handling: Write Empty File
    Type: Text
    <b>Any ideas Why holding? and Where to see more details. </b>

    Hey
    exact same issue has been discussed today on SDN.anyways have a look at the following blog
    /people/stefan.grube/blog/2006/04/27/how-to-deal-with-stuck-eoio-messages-in-the-xi-30-adapter-framework
    Thanx
    Aamir

  • Sender file Adapter, problem with proxy authentication

    HI all,
    i'm having some problems with the following scenario, i need to configure a sender file adapter which connects to a FTP server. To connect this FTP server i need to set a proxy (and so a username and a password), and i don't know how to do.
    From note 821267 seems that the proxy is not supported for an FTP adapter, but the are some workaround like the ones described in the following link
    Re: Proxy server inFTP adapter
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=57137
    They don't work in my case as i need to se two username (the one for proxy and the one for the ftp server) and i cannot force the proxy use for all XI applications.
    Can anyone help me?
    Thanks a lot
    Aldo

    Proxy is necessary to exit the customer local intranet. It's not possible to go outside network without going through the proxy server.
    I cannot set the proxy server in file adapter as it's not supported like described in SAp note,  a possible workarounf is to force the proxy server in the J2ee stack but in this way all PI calls would use that proxy..

  • File Adapter-Problem Reading Huge Files

    Hi,
    Here is the issue that i am facing
    When reading huge file(csv file upto 6MB-8MB) the communication channel configured as File Adapter with a polling interval of 7 min(420 sec) is inconsistent in reading the complete file.Sometimes it reads the the complete file of 6 MB and sometimes it reads a part of the file say 3MB/6MB.Can this inconsistent behaviour be resolved.??
    Your suggestions highly appreciated.
    Regards
    Pradeep

    Hi Pradeep !
    8mb is not a huge file for XI, I think it is a small one. Maybe your problem is not the size..please check if XI is not starting to read the file before it is completely written to the source folder. If you are creating that csv file from another application directly to the poll source directory of the XI scenario specified in the file adapter, and your poll interval is small, XI could start reading the file while you are still writing it. If this is the case, try to put the file with a different extension or filename than the specified in file adapter comm channel and when the file is completely written, rename it to its final filename and check if you are still having that misbehavior.
    You can write the file to a temp directory and the move it to the XI directory once finished.
    Regards,
    Matias.

  • File Adapter problem for Fixed Length output file

    Hi There!,
    The following is my sample data format
    ABCD 2345 03Accounting Swissland
    ABCD 011234 1000Jack Gates 400000 03
    ABCD 021234 1001Bill Welch 400000 03
    In the first record has dept details:
    DummyText, Row identifier(not given in case of dept), Identifier, Deptno, Deptname, Location
    The second and third records are emp details:
    DummyText,Row identifier, Identifier,EmptNo,Emp Name, Manager, Salary, Deptno.
    Notice that the primary key is defined by the first three columns DummyText, Row identifier, Identifier.
    When I use Native Format Builder from File Adapter and scan the first three columns I get all three records (i.e dept and both employees). I deleted the second employee and proceeded to finish the configuration. But, the problem I face is that the key value shows as "ABCD% 011234" for both the employee records where as I would like it to show as "ABCD 011234" for the first record and "ABCD 021234" for the second record.
    How do I get around this problem?
    Moreover if I have a group or recurring records and not just one record recurring. I mean assuming I have the following:
    First row: Department
    Second row: Employee
    Thrid row: Manager
    Fourth row: Employee
    Fifth row: Manager
    How do I get this done?
    Does anyone have an idea where to find details of nxsd.
    Thanks in Advance.

    Hi Manoj
    Give the FCC parameter as
    RecordSet Structure = Header,,Detaillnes,,Detaillines2,*
    Header.endSeparator = 'nl'
    Header.fieldFixedLengths = field length
    Header.fieldFixedLengthType = char/byte
    Header.fieldNames = field1,field2,field3,.....
    Header.keyFieldValue = Header
    Detaillnes.endSeparator = 'nl'
    Detaillnes.fieldFixedLengths = field length
    Detaillnes.fieldFixedLengthType = char/byte
    Detaillnes.fieldNames = field1,field2,field3,.....
    Detaillnes.keyFieldValue = Detaillnes
    Detaillines2.endSeparator = 'nl'
    Detaillines2.fieldFixedLengths = field length
    Detaillines2.fieldFixedLengthType = char/byte
    Detaillines2.fieldNames = field1,field2,field3,.....
    Detaillines2.keyFieldValue = Detaillines2
    The keyFieldValue should be the Value which identifies your record either as Header/Detaillines/Detaillnes2.
    Regards
    Santhosh
    Message was edited by:
            Santhosh Kumar V

  • Sender File Adapter Problem when text document is a single line.

    Hi All,
    I have posted this question earlier too. But did not get a proper answer.
    I am using File adapter to fetch data from a file system.
    My input data is: AA123BB45678AA345BB78564.
    It is just reading the first segment i.e.AA123 and not reading the remaining.
    How can I configure my Sender File adapter to pick this pattern of data? It works fine if I have line break after each record that is if the input is as below.
    AA123
    BB45678
    AA345
    BB78564
    In the above there is a Line break after each segment. So File adapter picks it fine.
    I have also tried using xml.A.endSeparator equals to blank in the module configuration. But it does not work either.
    Can anyone throw some light to this?

    Abhi
    I tried a different approach to send your file data In..
    You can get each line in the source structure in separate row as
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:SingleRowDT xmlns:ns="http://xxxxx.com/xi/pocs/sriram">
    - <Recordset>
    - <row>
      <rowElt>AA123BB45678AA345BB78564</rowElt>
      </row>
    - <row>
      <rowElt>AA123BB45678AA345BB78564AA123BB45678AA345BB78564</rowElt>
      </row>
    - <row>
      <rowElt>AA123BB45678AA345BB78564AA123BB45678AA345BB78564AA123BB45678AA345BB78564</rowElt>
      </row>
      </Recordset>
    Now you can use a suitable mapping logic to split the individual records into the 2 field structure as expected in the target..
    Trying your way would be a limitation on file adapter I think..Let me know if this helps..I can give you the content conversion config for this model..
    its simply
    RecordSet - Leave it empty
    RecordSet Seq -  Row, *
    Recordsets/msg - *
    row.fieldSeparator - 'nl'
    row.endSeparator - 'nl'
    row.fieldNames - 'rowElt
    ..So each line will be pulled into a single Row in the source structure and then u can apply a specific mapping to split into 2 fields for your target
    Regards
    Sriram V.
    Regards
    Sriram V.

  • Sender File Adapter - Problem with field separator

    Hi,
    I want to upload a CSV file into XI.
    The file contains a text part which uses from time to time quotation marks like this:
    SD,575757,383838,N/A,XYZ,"This is a text part",7676
    But besides there are lines like this:
    SD,575757,777722,N/A,XDE,FREETEXT,7575
    Has anyone any idea how to configure the file adapter to get it recognize the quotation marks not as field separator?
    I've already tried the enclosureSign parameters but that leads to an total unconverted line.
    Is it maybe possible to customize two field separators like this:
    Structure.fieldSeparator - ,"
    Thanks for any answer,
    Christina

    No, it doesn't work.
    I've specified now:
    Structure.fieldSeparator        ,
    Structure.enclosureSign         "
    Structure.enclosureSignEscape   ""
    Every line without quotation marks is converted fine. Lines with quotation marks stay like in the original CSV file and the whole line is put into one XML tag (still comma separated).
    Also the parameter fieldContentFormatting - nothing doesn't make a difference.
    Other ideas?

  • Inbound File Adapter problem

    Can someone tell me why my message is not processed by XI. I use a File Adapter. The File Adapter is "active" with the following configuration.
    Adapter type = File
    transport protocal = Filesystem
    message protocol = File
    adapter engine = integration server
    Source directory = "e:/XIprocessFiles"
    File name = *.xml
    File type = text

    Edward,
    What do you exactly meant with not processed? Is the file adapter not processing/sending your xml file to the XI system? Or
    is your interface defined in XI not doing anything with the input message?
    Assuming your situation is the first one; Then you should start by checking the source file name, source directory name, contentType (you have text, this should be text/xml), ContentKind (this should be T) and PollingInterval...
    In the second situation you should then look at adapter config settings like: namespace, sender interface name, sender business name etc...
    Cheers,
    Rob

  • XI 3.0 PROXY/ File adapter problem

    We have XI 3.0. We used the proxy to send a file from R3 to XI and used file adapter in XI to put the file back to R3 file server.
    From the SXMB_MONI in R3, the message was successfully sent from R3 to XI.
    From the SXMB_MONI in XI, the URL address https://aaaa###.com:52201/MessagingSystem/receive/AFW/XI (the SAI_AE_DETAILS_GET returned) had the SSL service number(port number 52201) that I do not know where it was defined. I checked the communication channel and SM59 but found out nothing about 52201, neither the SSL part.
    Would some one please tell me where the SSL security was defined?
    Thanks for your help in advance!

    Satish,
    I checked the communication channel in the Configuration and the the transport protocol was "File System(NFS). We did not use FTP.
    Thanks!
    Fisher

  • Receiver file adapter problem in file to file scenario

    My situation is: I created the scanrios with file adapters, using
    FTP, the sender adapter is picking up the file, but the output file
    is not been created in the path mentioned, both the adapter status
    looks green,  I have no error message in the sxmb_moni for this
    scenario. my adapter status looks as below:
      kris_scenario1_filetofile_receiverCC Receiver Adapter v2112 for
    Party '', Service 'krishna_bussystem01':
    Configured at 2006-05-28 20:14:19 EDT
    No message processing until now
      kris_scenario1_filetofile_senderCC Sender Adapter v2126 for
    Party '', Service 'krishna_bussystem01':
    Configured at 2006-05-28 20:11:35 EDT
    History:
    - 2006-05-28 20:16:25 EDT: Polling interval started. Length: 10.000 s
    - 2006-05-28 20:16:25 EDT: Processing finished successfully
    - 2006-05-28 20:16:25 EDT: Processing started
    - 2006-05-28 20:16:15 EDT: Polling interval started. Length: 10.000 s
    - 2006-05-28 20:16:15 EDT: Processing finished successfully

    Moorthy,
    as you suggested I checked in MDT, FYI I am doing without content coversion. from the below message I dont see any problem, so what could be a problem
    The sender has 'delivered' status but the receiver has 'to be delivered' status
    <b>Receiver audit log:</b>
    2006-05-29 00:07:56 Success The message was successfully received by the messaging system. Profile: XI URL:
    2006-05-29 00:07:56 Success Using connection AFW. Trying to put the message into the receive queue.
    2006-05-29 00:07:56 Success Message successfully put into the queue.
    <b>Sender audit log:</b>
    2006-05-29 00:07:54 Success Send binary file "filetofile.xml" from FTP server "xx.xx.xxx.xxx:/yyyyy", size 221 bytes with QoS EO
    2006-05-29 00:07:54 Success Application attempting to send an XI message asynchronously using connection AFW.
    2006-05-29 00:07:54 Success Trying to put the message into the send queue.
    2006-05-29 00:07:54 Success Message successfully put into the queue.
    2006-05-29 00:07:54 Success The application sent the message asynchronously using connection AFW. Returning to application.
    2006-05-29 00:07:54 Success The message was successfully retrieved from the send queue.
    2006-05-29 00:07:54 Success File "filetofile.xml" deleted after processing
    2006-05-29 00:07:54 Success The message status set to DLNG.
    2006-05-29 00:07:55 Success The message was successfully transmitted to endpoint http://host:port/sap/xi/engine?type=entry using connection AFW.
    2006-05-29 00:07:55 Success The message status set to DLVD.

  • Sender File adapter problem

    Hi,
    I have File to JDBC sceanrio,  File is on FTP server and data is added in file in every 15 mint.  while adding data to file its takes some time.
    My problem : when data is being  added to file, sender adapter picks the file when addition of data is not completed. so it picks incomplete file and send to target.
    What  can be the possible solution to be used for this problem or what configurtaion can be done in CC required.
    Thanks
    Laxmi Bhushan

    Hi Laxmi,
    is PI picking file in NFS mode or FTP mode?
    With NFS mode, you can use setting wait for file modification check. Same setting is available for FTP but it doesnt not work for FTP.
    Another option could be ask Source system to generate file with a temporary name & rename once file is writen completely.
    Regards
    Sushil

  • Content conversion in sender file adapter problem

    Hello,
    I receive a flat file with the following structure:
    HEADER;...fields;
    ITEM;...fields;
    ITEM;...fields...;
    HEADER;...fields;
    ITEM;...fields...;
    ...etc.
    and I am converting it to xml with the same structure. The Problem by the conversion is that the result looks something like this:
    HEADER;...fields;
    ITEM;...fields;
    ITEM;...fields;
    ITEM;...fields;
    HEADER;...fields
    HEADER;...fields.
    So, all the ITEM recordsets are ordered to one HEADER structure and the other HEADER structures have no ITEMs.
    Do you have a suggestion how I can get this right?
    Thanks!!
    Best Regards,
    Mircea

    Hi,
    Can you provide with the details of FCC parameters you have used ??
    The problem might be there in the occurance..
    Regards,
    Chandra

  • Receiver File Adapter: Problem with NewLine Content Conversion Parameter

    Hello Everybody
    On our SAP-XI (SAP NetWeaver 2004s, sp14) I have the scenario to send a price catalogue (IDoc PRICECATALOGUE.PRICECATALOGUE02) from SAP R/3 as csv PRICAT file to a file share.
    In the receiver communication channel I have defined
    Message Protocol = File Content Conversion
    using the following RecordSet:
    RecordSet = HeaderRow,MainBody
    One header row is followed by one or more main body rows. The csv PRICAT message format demands that there is an empty row (i.e. one carriage return) between header and main body and another carriage return after the last main body row:
    <Header Row>
    carriage return
    <MainBody 1>
    <MainBody 2>
    carriage return
    As content conversion parameters I tried to use NewLine ('nl') to create the carriage returns in the file:
    HeaderRow.fieldSeparator = ,
    HeaderRow.endSeparator = 'nl'     " new line
    MainBody.fieldSeparator = ,
    MainBody.endSeparator = 'nl'
    Using the settings I have been able to created the carriage return at the end of the file but not the one between header and main body.
    As workaround I have used the following approach:
    " Add the following XSLT mapping between header and body:
                <SeparatorLine>
                    <value>
                        <xsl:value-of select=" '' "/>
                    </value>
                </SeparatorLine>
    RecordSet and parameters have been changed accordingly:
    RecordSet = HeaderRow,SeparatorLine,MainBody
    HeaderRow.fieldSeparator = ,
    HeaderRow.endSeparator = 'nl'  
    SeparatorLine.fieldFixedLength = 0,0   " sic! 
    MainBody.fieldSeparator = ,
    MainBody.endSeparator = 'nl'
    Has anybody an idea why I failed to receive the first carriage return and has somebody a more elegant solution?
    Kind Regards
       Uwe

    Hi,
    Thanks for reply. I have already used 'nl'.
    When i open into the notepad it is showing [] boxes rather then new line.
    e.g. 1 [] 2 []
    but when we open into wordpad it opens properly.
    Customer wants when he opens in notepad it should show line by line.
    e.g.
    1
    2
    How should i convince to customer ?

  • Receiver File Adapter Problem

    Hello,
    I m message is in "To be Delivered" status
    In the detials i could see following error :
    Admin action: Redelivering the message failed, due to: com.sap.aii.af.ra.ms.api.DuplicateMessageException: Message ID 995b0348-a504-7441-e100-00000a1974ee(INBOUND) already exists in queue: File_http://sap.com/xi/XI/SystemRecv.
    In SMQ1 & SMQ2 nothing is stucked.
    How can i clear AE queue??
    Thanks,
    Maheshwari

    Hi,
    Go though the below link
    I also faced the same problem. In my case some other sceanario CC are in error status and all messages in those CC are structed in message system i.e. in AE . So i rectified all error CCand i resend messages.
    Difference between Business System and Business Service
    If that is not the case then restart ur J2EE engine
    Thanks,
    Venkatesh

Maybe you are looking for

  • Screen resolution does not change back after using a projector

    Hi! My office uses several different models of macbooks, but there is a small problem with all the Airs. When I have been using them with a projector I have to change back the screen resolution manually (go to the system settings and change resolutio

  • I keep getting an error message when trying to open a "digital booklet" on my computer

    I've downloaded a couple of albums with "Digital Booklets" - when I try to open them on my computer I keep getting an error message saying it was either downloaded wrong or some other problem...

  • Learn by example for OWB 9.0.2.62.3

    Hi all, I'm looking for online case study on OWB 9.0.2.62.3 as the example at this page:http://www.oracle.com/technology/obe/obe_bi/index.html. Thanks in advance.

  • Dynamic lov on a apex page parameter form

    I'm trying to create a dynamic lov on a apex page parameter form. I read another post to look at metalink note. 292521. I asked our DBA to review the note but he claims he can't find the article. he's also been unable to find the last 2 metalink requ

  • Controling an XML based scrolling thumbnails

    hi! this is my code so far: import caurina.transitions.*; var xmlRequest:URLRequest = new URLRequest("scrolling.xml"); var xmlLoader:URLLoader = new URLLoader(xmlRequest); var imgData:XML; var imageLoader:Loader; var rawImage:String; var rawH:String;