Sender file content conversion problem

hi  Masters,
I have sender side structure like this...below..
emp_row                          unbounded.
   empid
   name
   city
   country.
actually i had given few id with names and other details which i stored in txt file .
like
  001, ram, newyork, usa.
  002 ,john,london,uk.
  003, smit,tokyo,japan.
but if i see in reciever side then i wil get xml file where only 001,ram,newyork,usa. is mentioned ... and remaining records are not there..
wht is the fault and how to rectify tht fault please help me ..
Thanks in Advance ,
jp.

recordset structure -- emp_row
emp_row.fieldSeparator  - ','
emp_row.endSeparator - 'nl'
if you have "." at the end of each record in your file then remove it and change it to new line -- "nl" -- by hitting the enter key on your keyborad at the end of each record Or if you want to use "." only then replace 'nl' in the above endSeparator  parameter list with '.'
PS: Share u r current content conversion parameter settings also
Cheer's

Similar Messages

  • Need Help in Sender File Content Conversion

    Hi All,
    I request your expert advice on Sender File content Conversion. I need to process the below pasted file. I was able to achieve this by keeping a offset of 6 in Sender PI File Adapter (PI 7.1) to ignore first 6 lines and used a Unix script to remove last line"END OF REPORT".
    Now my new requirement is I need to capture the date "DECEMBER 2009" from line 3. How can I do this. I have set offset as 6 so Adapter will start processing from line 7. If I don't set offset Interface fails. Please suggest. Thank you.
    ABC LAB            XYZ LIMITED"
                       TRIAL BALANCE"
                       FOR THE PERIOD ENDED DECEMBER 2009"
    "TEST Bank","101000",-1589365.58,0.00,738295.08,0.00
    "TEST Bank Clearing A/c","101200",0.00,0.00,14848018.55,0.00
    "TEST Bank Sweeps","101250",104315957.19,0.00,7571985482.08,0.00
    "TEST Receipts","101260",0.00,0.00,19788596.15,0.00
    "TEST Corporate Deposits","101270",-7776629.87,0.00,-135914980.50,0.00
    "SHARES","00SH",0.00,0.00,-7869890086.22,0.00
    "END OF REPORT"

    Dear Phani,
    Please go through the below blogs:
    File content conversion sites
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Please see the below links for file content conversion..
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
    File Content Conversion for Unequal Number of Columns
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
    Thanks,
    Satya

  • Doubt regarding sender file content  conversion

    Hi Experts
    This is my source XML structure, how to define Sender file adapter (Content Conversion)  and filed lenths: COMMIT_I 1, STUDENT 12, ID_TYPE 6, ID_NUMBER 60, VALID_FROM 8,VALID_TO 8
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:IDENTIFICATION_ADD_Req_MT xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
       <COMMIT_I>X</COMMIT_I>
       <IDENTIFICATION>
          <STUDENT>Student</STUDENT>
          <ID_TYPE>New</ID_TYPE>
          <ID_NUMBER>12345</ID_NUMBER>
          <VALID_FROM>12/03/2008</VALID_FROM>
          <VALID_TO>13/04/2008</VALID_TO>
       </IDENTIFICATION>
    </ns0:IDENTIFICATION_ADD_Req_MT>
    Please suggest me how to configure Sender file content conversion
    Thanks
    Dhanush.

    hi sekhar,
    Just go through this blogs & links.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    reward points if found helpfull
    regards
    chandra.k

  • XML file conversion after sender file content conversion

    Hi,
    I have issue refarding file content conversion.
    My input structure is
    <MT_RCICrecords>
    <TRNH>
      <RCIC>
        <RECH>
        <RECL>
      <RCIC>
    <TRNH>
    Afetr sender File content conversion (csv to xml) it produces xml file as below (since file conversion does not support 3rd level of hierarchy)
    <TRNH>
    <RECH>
    </RECH>
    <RECL>
    </RECL>
    </TRNH>
    It does not recognize RCIC.
    Now i am trying to map this to IDOC and getting error as
    'MT_RCICRecords tag found instead of IDOC BEGIN ='.
    CAn anyone suggest me how to chaage this xml output after File content conversion to add RCIC tag in xml file?
    I am new to XI so please give me some sample code to.
    Thanks.
    Yashpal
    Its urgent!

    My problem is xml generated from content conversion is like below
    <MT_RCICrecords>
    <TRNH></TRNH>
    <RECH></RECH>
    <RECL></RECL>
    <TRLR></TRLR>
    </MT_RCICrecords>
    and i want it to be
    <MT_RCICrecords>
    <TRNH></TRNH>
    <RCIC>
    <RECH></RECH>
    <RECL></RECL>
    </RCIC>
    <TRLR></TRLR>
    </MT_RCICrecords>
    which is not happening
    My input message structure is
    MT_RCICrecords
    TRNH
    RCIC
    RECH
    RECL
    i hope it is clear now
    TRLR

  • Sender File Content Conversion. Pls suggest

    Hi All,
    I have to do the Sender File content conversion for the below file.
    First Line is for Sender. Second Line is for Receiver. Third ,Fourth and Fifth lines are Invoice Numbers which can be more also.
    The issue is coming that there is no Key Field defined for third ,fourth and Fifth line .
    GB283032086         LANGFORD LODGE ENGINEERING
    GB762702827         AIRBUS UK LIMITED                 
    D58785          20030407         71.82        
    D58786          20030407         49.10         
    D58787          20030407         49.10         
    Pls let me know how will I do Sender File content conversion (to make it in XML) form.
    Regards

    Hi Rachit,
                  In that case you can use temporary source structure to hold contents from the source flat file and using FCC you split the content by 'nl' and store it in one node (For rg:-<SDATA>) then using mapping you can map that to original source structure and then to target structure, here you need to use intermediate mapping (i.e two mappings) to archive the target structure.
    Temp source structure
    <SDATA>GB283032086 LANGFORD LODGE ENGINEERING </SDATA>
    <SDATA> GB762702827 AIRBUS UK LIMITED </SDATA>
    <SDATA>D58785 20030407 71.82 </SDATA>
    <SDATA>D58786 20030407 49.10  </SDATA>
    <SDATA>D58787 20030407 49.10  </SDATA>
    Map the above to the actual source structure and the to target, hope it helps you to overcome your problem
    [FCC for unequal entries|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0137316650DB10272139644103542695End?blog=/pub/wlg/2740]
    [Key field problem|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0137316650DB10272139644103542695End?blog=/pub/wlg/3228]
    Regards,
    Prasanna
    Edited by: PrasannaKrishna Mynam on Dec 1, 2009 8:14 AM
    Edited by: PrasannaKrishna Mynam on Dec 1, 2009 8:17 AM

  • How to debug file content conversion problems?

    Hi,
    I'm trying to debug a file content conversion problem.  I'm mapping a few nodes in an IDOC to a file of fixed length fields.  I'm using the "<Node A>.fieldFixedLengths", "<Node B>.fieldFixedLengths", "<Node C>.fieldFixedLengths", etc. parameters to specify the fixed length records.
    However, a certain node (for e.g. Node B) is causing a problem and if it is present in the IDOC, the output file does not get created.  Upon checking the XI monitor, I notice that the file gets mapped correctly and thus the problem lies when the file adapter does the file content conversion.  How do I debug this because there is no descriptive error in the XI log?  If this node is not present, the file gets generated fine.
    Thanks,
    Basant Gupta

    Hi,
    If your SXMB_MONI shows, success status, then go to RWB->Message Monitoring->Message display tool and then check Audit log for the analysis,
    So it wil help you debug the situation.
    If there is no error, then check RWB->Component Monitoring->Adapter Monitoring for you file communciation channel..
    /people/michal.krawczyk2/blog/2005/01/02/simple-adapter-and-message-monitoring
    Regards,
    Moorthy

  • Sender File Content Conversion with headerline

    Hi,
    Is it possible to do via the sender file content conversion in the file adaptor for the following flat file?
    Inbound flatfile format:-
    FILEHEADER
    HEADER1
    DETAILS1
    DETAILS2
    DETAILS3
    HEADER2
    DETAILS1
    DETAILS2
    DETAILS3
    Target XML file format:-
    <XML>
    <FILEHEADER></FILEHEADER>     occurrence 1
    <RECORDSET>                occurence *
       <HEADER></HEADER>     occurence 1
       <DETAILS></DETAILS>    occurence *
    </RECORDSET>
    </XML>
    Edited by: Bee Huat, Leonard Yong on Oct 16, 2008 10:52 AM

    I've read through all the blogs, and have no leads on how to get this done?
    I tried putting the following into the recordset.  FileHeader, 1, Header, 1, Details, *
    But it does'nt seem to work, the above is expecting the Fileheader and header to be repeated in the file to be sent.
    My file is in the following format.
    Fileheader
    Header1
    Details1
    Details2
    Details3
    Header2
    Details1
    Details2
    Details3
    I need the following XML format
    <XML>
    <Fileheader>
    <invoice>
       <header1>
          <details1>
          <details2>
          <details3>
      </header1>
    </invoice>
    <invoice>
       <header2>
          <details1>
          <details2>
          <details3>
         </header2>
    </invoice>
    </XML>
    Edited by: Bee Huat, Leonard Yong on Oct 16, 2008 5:34 PM

  • Sender File Content Conversion Complexity

    It is again time to dip into the well of knowledge that is SDN.
    I have a question about sender file content conversion.  
    It appears that I can only create simple XML structures with it, but I'm hoping someone here can help.
    Lets says I have a file where each record layout is the same.   There are not header records, trailer records, etc.   Basically only one structure within the recordset.
    However the record itself may have a complicated structure.   For example, the layout of each record may be:
    String1, String2, String3, Array(0:3) consisting of String4, String5, String6.
    Can I convert that to a structure of
    <Node>
        <string1>
        <string2>
        <string3>
        <array>
            <string4>
            <string5>
            <string6>
        <array>
            <string4>
            <string5>
            <string6>
    </Node>
    Or must I create a DT containing one node giving string4,5 and 6 a unique name for each occurance?
    Thanks in advance.

    Hi,
    You can go with generic structure and then either in the adapter module or Mapping, you can format the structure. Because content conversion has a limitation to upto one level.
    check this for limitation-
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
    check this for generic structure-
    /people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
    Rgds,
    Moorthy

  • Problem with Sender File Content conversion

    Hi everybody,
    I have a flat file with the following structure:
    PR1xxxx
    CL1.1xxx
    ALxxx
    PTxxx
    PTxxx
    PTxxx
    CL1.2xxx
    ALxxx
    PTxxx
    PTxxx
    Cl1.3xxx
    PR2xxx
    CL2.1
    Alxxx
    PTxxx
    Ptxxx
    CL2.2xxx
    ALxxx
    PR3xxx
    I need to send an IDOC (ORDERS05) per CL and I also need that the PR goes together with the CL.
    Something like that:
    IDOC 1
    PR1xxx
    CL1.1xxx
    ALxxx
    PTxxx
    PTxxx
    PTxxx
    IDOC 2
    PR1xxx
    CL1.2xxx
    ALxxx
    PTxxx
    PTxxx
    IODC 3
    PR2xxx
    CL2.1xxx
    The problem is that I am not able to attach the PR with each CL because the PR is written once at the beginning.
    I have tested all the posibilities in the content conversion area but I don`t find the way to achiveve that.
    Maybe, Have I to do something in the mapping program?
    Nested substructures are possible in the File Content Conversion?
    Any idea?
    Thanks for everything

    We can handle this in mapping as follows
    Crate an Intermediate structure Identical to your input structure. Just you need to add an sub element (Let’s say "T" to your CL node.
    This sub element will be used to remember CL node belongs to which PR node.
    Map your Input structure to Intermediate structure.
    While mapping PR Node of input to PR Node of Intermediate structure use a user defined function as follows
    Integer ii;
    GlobalContainer g;
    g=container.getGlobalContainer();
    Object o= g.getParameter("_&HLID");
    if (o==null) ii=new Integer(0);
    else
    ii =(Integer)o;
    ii =new Integer(ii.intValue()+1);
    g.setParameter("_&HLID",ii);
    Use another user defined function to retrieve the value of this _&HLID and put it to T as follows:
    GlobalContainer g;
    g=container.getGlobalContainer();
    Object o= g.getParameter("_&HLID");return o.toString();
    For all other fields just do a 1:1 mapping.
    Then
    Map your intermediate structure to destination structure (IDOC)
    Here the only catch is:
    For populating the value of PR for each CL
    Pass both the element T and the element of PR from which you want to pick the value to a user-defined function (raise the context of both elements to the top node).
    In array a we have the value of T
    In array b we have the value of element of PR
    int j=0;
    for(int k=0;k<b.length;k++){
    for (int i=0;i<a.length;i++)
         if (a<i>.equals(new Integer(j+1).toString())){
              System.out.println(b[j]);
         j=j+1;
    Hope this takes care of your problem.
    If you don't get anything please get back to me.
    Abinash

  • FIle Content Conversion Problem in IDOC-XI-File Scenario

    Dear All,
    I am doing IDOC-XI-FILE scenario.
    I am facing one problem related to File Content Coversion.My requirement was to generate a dynamic file like <b>%store_code%_%current_date%_sitemaster.xml</b> , I have completed the dynamic generation successfully .
    Now there is slight change in the requirement ,<b>we have to suppress the current_date node of the xml content</b> . i have tried to suppress the current_date using these <b>DATE.fieldFixedLengths 0 , Date.fixedLengthTooShortHandling Cut</b> , But I am unable to suppress it Can some body provide me the details on this .
    The output xml version generated by Reciever file adapter is as below :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
    - <SITE_DATA>
    <STORE_CODE>N002</STORE_CODE>
    <TITLE_MEDI>Company</TITLE_MEDI>
    <STORE_NAME>Mount Road</STORE_NAME>
    <STREET>Chennai</STREET>
    <COUNTRY>IN</COUNTRY>
    <SALES_TAX_NO>12345678910</SALES_TAX_NO>
    </SITE_DATA>
    </ns0:MT_SITE_MASTER>
    Plz provide me the code I have to write in the file content conversion .
    Thanks in advance
    Regards
    Prabhat

    If u see my earlier reply, I mentioned that u can not suppress the field from the one node.i.e Form SITE_DATA data type u can not suppress the field called CURRENT_DATE.
    My suggestion is that , modify the Data type in such a way that you will be having two nodes as I have mentioned earlier.  Then use the Suppress Logic for the Current Date.
    So it will look like this-
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
    - <SITE_DATA>
    <STORE_CODE>N002</STORE_CODE>
    <TITLE_MEDI>Company</TITLE_MEDI>
    <STORE_NAME>Mount Road</STORE_NAME>
    <STREET>Chennai</STREET>
    <COUNTRY>IN</COUNTRY>
    <SALES_TAX_NO>12345678910</SALES_TAX_NO>
    </SITE_DATA>
    <CURR_DATE>
       <CURRENT_DATE>20051105</CURRENT_DATE>
    </CURR_DATE>
    </ns0:MT_SITE_MASTER>
    So ur SITE_DATA is not having a field called CURRENT_DATE. This field is in separate node (segment ) called CURR_DATE. Now u can use the Suppress Logic for the same like this.
    CURR_DATE.fieldFixedLengths - 0
    CURR_DATE.fixedLengthTooShortHanling - Cut
    And in your Variable Substitution you can use the date from the other segment called CURR_DATE.
    Hope this solves ur problem.
    Regards,
    Moorthy

  • File Content Conversion Problem

    Hi
    I have a flat file having 10 fileds with fixed length of field 7 characters
    abc  bcd  dce  cef  ecf  fgi
    123  234  343  233 434 343
    322  222  222  222 222 222
    +++++++++++++++++++++++++++++++
    XML CODE FOLLOWS
    +++++++++++++++++++++++++++++++
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_send xmlns:ns0="http://OTO-Continue.com">
      -<SEND>
       <abc>343</abc>
       <bcd>343</bcd>
       <dce>434</dce>
       <cef>3434</cef>
       <ecf>343</ecf>
       <fgi>434</fgi>
      </SEND>
      </ns0:MT_send
    As per the client req I'm going with FCC. The file is picking fine with the FILE. But not picking with the FCC.
    The parameters which I gave are as follows.
    SOURCE I feel it is fine since file is picking fine and keeping the same for FCC also.
    PROCESSING
    QOS -- Exactly Once
    Poll Interval -- 10
    Processing Mode -- Delete
    Empty-File Handling -- Process empty files
    CONTENT CONVERSION Parameters
    Document Name -- (am giving sender data type name) DT_send
    Document NSpace -- http://OTO-Continue.com
    Recordset Name -- SEND
    Recordset Structure -- SEND,*
    Recordset Sequence -- Ascending
    Recordset per Message -- 0
    And in the table the parameters am settings are
    SEND.fieldNames                 abc,bcd,cde,def,efg,ghk
    SEND.fieldFixedLengths      7,7,7,7,7,7       (because each and every field has 7 characters)
    SEND.keepIncompleteFields       No
    SEND.fieldFixedLengthType      char
    SEND.fieldContentFormatting     trim
    SEND.fieldEndSeparator            'nl'
    This was the configuration. But this is not working I monitored the Communication Channel and file is not reading and not getting deleting.
    What actually went wrong in above configuration. Why it is not working.
    Thanks.

    Hi Swarna,
    CONTENT CONVERSION Parameters
    Document Name -- ?
    DocumentNSpace -- ?
    Recordset Name -- ?
    Recordset Structure -- ?
    Recordset Sequence -- Ascending
    Recordset per Message -- ?
    Document Name - <Message Type> eg:- (MT_ABC)
    DocumentNSpace - Name space of your MT
    Recordset Name - The root node( Which has one occurence)
    Recordset Structure - The parent node of the fields(can have multiple occurences)
    Recordset Sequence -- Ascending
    Recordset per Message -- 1/* (No.of records per each record set)
    In your structure
    +++++++++++++++++++++++++++++++
    XML CODE FOLLOWS
    +++++++++++++++++++++++++++++++
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_send xmlns:ns0="http://OTO-Continue.com">
    -<SEND>
    <abc>343</abc>
    <bcd>343</bcd>
    <dce>434</dce>
    <cef>3434</cef>
    <ecf>343</ecf>
    <fgi>434</fgi>
    </SEND>
    </ns0:MT_send
    There is no root node,  so in your FCC you need to mention your RecordsetName and you can ignoreRecordSetName in result structure. Check the following blog simulates your requirement.
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    Regards,
    Prasanna

  • Sender File Content Conversion

    I am using the file content conversion in sender file adapter with fieldFixedLengths parameter in recordset structure. This work fine when the columns in row is exactly with the length set in the parameter recordset. But in same cases, the row in the file has less columns, which occurs errors. If I use the parameter fixedLengthTooShortHandling usage by the receiver file adapter, will it work for the file sender?

    Hi Elton,
    The parameter fixedLengthTooShortHandling is not a part of the Sender File Adapter's content conversion paramteters, So i guess it will not work for the sender file adapter.
    I would suggest that you try it anyways, and if it does work, then it means that this field has been forgotten in the help documentation
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Regards,
    Bhavesh

  • Error in Sender File content Conversion - how to ignore keyfieldName

    Dear Frndz,
    I'm new to SAP PI. I want to post a flat file to ECC.
    The Souce Structure is:
      Record(1-unbounded)
        |_Header(1.1)
              field1
              field2
              field3
        |_Detail(1.unbounded0
            field4
            field5
            field6
    Sample File:
    first header - xx,yy,zz
    Detail 1 -      1,b,c
    Detail 2  -     2,e,f
    second header - aa,bb,cc
    Detail 1 -     1,g,d
    I wrote the file content conversion as follows
       Recordset name - Record
       Recordset Structure - Header,1,Detail,*
    Header.fieldNames  field1,field2,field3
    Header.feldseparator  ,
    Header.endseparator  'nl'
    Detail.fieldNames  field4,field5,field6
    Detail.fieldseparator  ,
    Detail.endseparator  'nl'
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found
    It's asking me to give the input to keyfieldname. But I dont have such field in my record. Ther's no common field . no field is repeating like record type or doc_type as in other cases.
    So, Coud you please guide me to proceed with this.
    Thanks in advance.....

    Hi,
    Please, take a look to these Blogs related to FCC
    Troubleshooting the File Adapter (Last Updated on 02 July'10)
    Content Conversion (Pattern/Random content in input file)
    File Content Conversion for Unequal Number of Columns
    The specified item was not found.
    Content Conversion ( The Key Field Problem )
    NAB the TAB (File Adapter)
    Rgds
    RP-.

  • Recevier File Content Conversion Problem

    HI,
    i am using File COntent Conversion on Recevier Side for getting output in .txt file.
    My Input File:
    0112345010101
    021111112222
    03100001111112222
    03100011111212223
    041000011111
    021231116722
    03100781119012332
    041005611001
    059453287699
    My Fields are: "header,hbatch,body,tbatch,trailer"
    RecordStrucure: header,hbatch,body,tbatch,trailer
    I used fiexefiledlenghts and seperator and end seprator. But its not working.
    Please guide me to generate the txt file in the output.
    Regards,
    Giridhar.C

    Thanks you all for your quick responses.
    I have used Sender FCC and created the following XML Format on the Receiver Side.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_INPUT xmlns:ns0 = "http://sealchennai.com/FCC2">
        <header>
            <key1>01</key1>
            <name>12345</name>
            <date>01010</date>
        </header>
        <hbatch>
            <key2>02</key2>
            <hvalue1>11111</hvalue1>
            <hvalue2>12222</hvalue2>
        </hbatch>
        <hbatch>
            <key2>02</key2>
            <hvalue1>12311</hvalue1>
            <hvalue2>16722</hvalue2>
        </hbatch>
        <body>
            <key3>03</key3>
            <bvalue1>10000</bvalue1>
            <bvalue2>11111</bvalue2>
            <bvalue3>12222</bvalue3>
        </body>
        <body>
            <key3>03</key3>
            <bvalue1>10001</bvalue1>
            <bvalue2>11112</bvalue2>
            <bvalue3>12223</bvalue3>
        </body>
        <body>
            <key3>03</key3>
            <bvalue1>10078</bvalue1>
            <bvalue2>11190</bvalue2>
            <bvalue3>12332</bvalue3>
        </body>
        <tbatch>
            <key4>04</key4>
            <tvalue1>10000</tvalue1>
            <tvalue2>11111</tvalue2>
        </tbatch>
        <tbatch>
            <key4>04</key4>
            <tvalue1>10056</tvalue1>
            <tvalue2>11001</tvalue2>
        </tbatch>
        <trailer>
            <key5>05</key5>
            <value1>94532</value1>
            <value2>87699</value2>
        </trailer>
    </ns0:MT_INPUT>
    But i need the Output in the follwont text format on Receiver Side.
    01,12345,010101
    02,11111,12222
    03,10000,11111,12222
    03,10001,11112,12223
    04,10000,11111
    02,12311,16722
    03,10078,11190,12332
    04,10056,11001
    05,94532,87699
    Please do the needful help to create the fiel in the text format.
    Regards,
    Giridhar.C

  • Sender File Content Conversion with re-occuring record pairs

    Hi,
    Our FCC works fine with the following structure:
    Header1: H1F1, H1F2, H1F3,... (1:1)
    Header2: H2F1,H2F2,H2F3,..... (1:1)
    Notes: NF1,NF2,NF3,.............(1:1)
    Line1:L1F1,L1F2,L1F3,.............(1:N)
    Line1:L1F1,L1F2,L1F3,
    Line1:L1F1,L1F2,L1F3,
    Line1:L1F1,L1F2,L1F3
    Line2:L2F1,L2F2,L2F3,............(1:N)
    Line2:L2F1,L2F2,L2F3,
    Line2:L2F1,L2F2,L2F3,
    Line2:L2F1,L2F2,L2F3,
    But we have structure as below:
    Header1: H1F1, H1F2, H1F3,... (1:1)
    Header2: H2F1,H2F2,H2F3,..... (1:1)
    Notes: NF1,NF2,NF3,.............(1:1)
    Line1:L1F1,L1F2,L1F3,.............(1:N)
    Line2:L2F1,L2F2,L2F3,.............(1:N)
    Line1:L1F1,L1F2,L1F3,
    Line2:L2F1,L2F2,L2F3,
    Line1:L1F1,L1F2,L1F3,
    Line2:L2F1,L2F2,L2F3,
    Line1:L1F1,L1F2,L1F3,
    Line2:L2F1,L2F2,L2F3,
    Lin1 and Line2 occur as multiple pairs making it as multiple line items. When we use content conversion parameters as below:
    Header1.fieldNames          H1F1,H1F2,H1F2,...
    Header1.fieldFixedLengths     10,5,10,.....
    Header1.keyFieldValue          H1 
    Header1.keyFieldInStructure     add
    Header1.endSeparator          'nl'
    Header1.lastFieldsOptional     YES
    and same for Header2, Notes, Line1, Line2
    It picks up only first Header1, Header2, Notes, Line1 and Line2 in a recordset.
    Does anyone have idea how could we do this content conversion? Any help would be appreciated.
    Reagrds,
    N@v!n

    Hi Navin,
    You can check the below links :-
    Complex File Content Conversion - with random multiple occurrences
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
    Complex content conversion File sender
    These might be of some help.
    Regards,
    Rohit

Maybe you are looking for