Problem in file content conversion from XML to CSV

Hi Experts,
I am finding problem in file content conversion. I need to convert the following XML file into CSV file:
  <?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_CROSS_REF xmlns:ns0="urn:dabur:idoc2file:pos">
      <Update_type>2</Update_type>
      <PLU>00000000</PLU>
      <Cross_ref_PLU>7777777</Cross_ref_PLU>
      <Capture_PLU />
      <Package_size />
      <Package_desc />
  </ns0:MT_CROSS_REF>
The output file data has to be like:
2,00000000,7777777,,,,
The problem I am facing is while specifying the content conversion parameters in communication channel i dont know what recordset structure i should mention as all the records are directly under root. If I mention recordset structure as "ns0:MT_CROSS_REF" and parameters as
ns0:MT_CROSS_REF.fieldSeparator   ,
ns0:MT_CROSS_REF.endSeparator    'nl'
i get error in communication channel monitoring and no file is posted.
Please help me as to what correct parameter i should mention in my case.
Thanks,
Regards,
Yash

Hi Chirag,
I cannot change the xml file as it comes after mapping idoc to a message type. How can I add ROOT in the xml? My message type is like MT_CROSS_REF and it has those 6 fields as in the XML (Update_type, PLU etc.). I do the mapping of these fields from a IDOC and get the XML.
I hope you got my point.
Thanks,
Yash

Similar Messages

  • Problem with file content conversion in receiver file adapter

    Hi All
    I have a problem with file content conversion in receiver file adapter.
    This is my recordset structure: Header_Record,1,Claim_Record,*,Check_Rec,1
    These are the content conversion parameters:
    Header_Record.fieldSeparator = ,
    Header_Record.endSeparator = 'nl'
    Claim_Record.fieldSeparator = ,
    Claim_Record.endSeparator = 'nl'
    Check_Rec.fieldSeparator = ,
    Check_Rec.endSeparator = 'nl'
    In SXMB_MONI, i can see that the data is correctly extracted from proxy, and correctly mapped to receiver message, and i see a checkered flag (success).
    But, Adapter status is RED with the following error message:
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
    In communication channel monitoring, i get the following error message:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
    What is going wrong here? Can anyone please tell me?
    Thanks
    Chandra

    Posted in Incorrect forum.
    Posted again in Process Integration forum

  • Problem with File Content Conversion

    Hi All
    I am facing a problem with file content conversion.
    This is my sample file structure:
    Header_Record (Occurance - 1)
    Field1 in Header
    Field2 in Header
    Item(Occ-1 to n)
    Field3 in Item
    Field4 in Item
    <<ItemType>> (Structure in Item) (Occ - 0 to n)
    <<Field5>> in ItemType
    <<Field6>> in ItemType
    <<ItemTypeCategory>> (Structure in ItemType)(Occ - 0 to n)
    <<<<Field7>>>> in ItemTypeCategory
    <<<<Field8>>>> in ItemTypeCategory
    Footer_Record (Occurance-1)
    Field9
    Field10
    There is a key field 'Type' in all the above records with unique value in each record.
    Now, I defined Field content conversion as follows:
    Recordset Structure: Header_Record,1,Item, * , ItemType, * ,ItemTypeCategory, * ,Footer_Record,1
    Recordset Sequence: Ascending
    KeyField Name: Type
    Following are parameters defiled:
    Header_Record.Keyfieldvalue: 00
    Header_Record.fieldseperator: ,
    Header_Record.fieldnames: Field1,Field2
    Header_Record.endseperator: 'nl'
    Item.keyfieldvalue: 05
    item.fieldseperator: ,
    item.fieldfieldnames: field3,field4
    item.endseperator: 'nl'
    ItemType.keyfieldvalue: 10
    itemType.fieldseperator: ,
    itemType.fieldfieldnames: field5,field6
    itemType.endseperator: 'nl'
    ItemTypecategory.keyfieldvalue: 15
    itemTypecategory.fieldseperator: ,
    itemTypecategory.fieldfieldnames: field7,field8
    itemTypecategory.endseperator: 'nl'
    Footer.keyfieldvalue: 20
    Footer.fieldseperator: ,
    Footer.fieldfieldnames: field5,field6
    Footer.endseperator: 'nl'
    Now, i pass the following file:
    00,111
    05,222
    10,333
    15,444
    20,555
    What i expect out of my FCC is this (Sample output to show the hierarchy of field values):
    00,111
    05,222
    <<10,333>>
    <<<<15,444>>>>
    20,555
    But, I am getting this output (Hierarchy is missing. All the structures are in the same order without hierarchy):
    00,111
    05,222
    10,333
    15,444
    20,555
    Field values are being identified according to field content conversion, but, the hierarchy of the fields is missing.
    Can you please tell me how should i change my FCC config?
    Sorry for this long question.
    Many Thanks
    Chandra
    Edited by: Chandra Sekhar H on Jan 30, 2009 7:10 PM
    Edited by: Chandra Sekhar H on Jan 30, 2009 7:16 PM
    Edited by: Chandra Sekhar H on Jan 30, 2009 7:17 PM

    You will always get a flat structure from FCC. If you want hierarchichal strucuture, you have to create a target and map. You will get only like -
    Root
    --Recordset
    Group1
    Fields
    Grop2
    Fields
    Group3
    Fields
    VJ

  • IDOC to flat File----Problem in File Content Conversion at receiver

    hi experts,
    I am doing a IDOC to flat file secnario.
    My requirment is IDOCXI-Flat file
    Format of flat file is like:--
    Every segment in the IDOC will be converted into a single line of file(without any delimiter). So number of lines in flat file will be equal to number of segments in IDOC.
    I am facing problem in File Content conversion. 
    Please help me out..
    Thanks
    Jaideep

    Check this doc...
    [How To...Convert an IDoc-XML structure to a flat file and vice versa in XI 3.0 |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a]

  • Problem in file content conversion, file 2 xml scenario

    Hi,
    Could some one help me in finding out the error in my file to xml scenario, please do consider the following things what I did for this scenario.
    1.My sender file structure is flat file with , seperated 4 fields. On receiver end expecting xml file.
    2.Did file content conversion at sender file adapter and given parameters as follows.
         Document name             : MT_FileInput
         DocumentnameSpace     : http://file/praveenworkshop
         Recordset Name             : DT_Record
         Recordset Structure        : DT_Row,*
         KeyfieldType                   : String( default)
        DT_Row.fieldnames          : FirstName,LastName,City,PostCode
        DT_Row.fieldSeparator      : ,
        DT_Row.processConfiguration: FromConfiguration
        Dt_Row.endSeparator       : 'nl'
    3. I did check in Adapter Monitor that Both Sender and receiver adapter are showing green and It was showing  'Adapter is up and running: But no messages processed'
    4. I did check the SXMB_MONI which was showing " Scheduled for Outbound processing"
    5. In SXMB_MONI outbound processing payload was picking up the file and also inbound processing showing the same.
    6. my source folder and destination folder are very simple c:/praveenfiles/input and c:/praveenfiles/output
        files are source file praveen.txt and destination file praveenOP.xml
    Please help me in finding out the error to see the output file in my output folder.

    Hi Praveen,
    Hope these bloga are useful to you..
    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
    Thanks,
    Satya

  • Problems in File Content Conversion

    Hello,
         I am trying to convert a text file to an XML using File Content Conversion in XI 3.0.
       The incoming text file gets picked up but no message is sent and hence no message is received in the monitor.I get the following log-
    <b>Success</b> Channel FILE_SENDER_XML_1: Entire file content converted to XML format
    <b>Warning</b> Channel FILE_SENDER_XML_1: Empty document found. Proceed without sending message
    <b>Success</b> File "C:\xi_public\i033066\dme_in.txt" deleted after processing
    Can somebody help me on this
    Thanks
    Sandeep

    Hello,
           I am not sure of why the empty Payload is created.
    I have the following TXT file -
    <b>LINE 1</b> 01 22  Sandeep        ASKDJKLASD          HDFC Bank       12342          asdasd              123569   
    <b>LINE 2</b> 02 22  Sagar          23123               ICICI          4234           ASDASD         254636    12304 ASDAsdqwe
    <b>LIME 3</b> 03 22  1     12304
    Ignore 'Lines' above.They are not part of the file.
    I have given the following parameters -
    <b>Document Name -</b> SampleMessageType
    <b>Document Namespace -</b> http://sandeep/xi/bpm_example
    <b>Recordset Name -</b> Header,Item,Trailer
    <b>Recordset Namespace -</b> http://sandeep/xi/bpm_example
    <b>Record Structure -</b> Header,,Item,,Trailer,*
    <b>Recordset Sequence -</b> Ascending
    <b>Key Field Name -</b> Record Type
    <b>Key Field Type -</b> String(Case Sensitive)
    <b>Header.fieldFixedLengths</b>     3,4,15,20,15,15,20,10
    <b>Header.fieldNames</b>     RecordType,RecordLength,CompanyName,CompanyAddress,BankName,BankCode,BankAddress,AccountNumber
    <b>Header.processFieldNames</b>     fromConfiguration
    <b>Header.keyFieldValue</b>     01
    <b>Header.lastFieldsOptional</b>     YES
    <b>Item.fieldFixedLengths</b>     3,4,15,20,15,15,15,10,6,10
    <b>Item.fieldNames</b>     RecordType,RecordLength,BeneficiaryName,BeneficiaryAddress,BankName,BankCode,BankAddress,AccountNumber,Amount,NoteToPayee
    <b>Item.processFieldNames</b>     fromConfiguration
    <b>Item.keyFieldValue</b>     02
    <b>Item.lastFieldsOptional</b>     YES
    <b>Trailer.fieldFixedLengths</b>     3,4,6,6
    <b>Trailer.fieldNames</b>     RecordType,RecordLength,TotalRecords,TotalAmount
    <b>Trailer.processFieldNames</b>     fromConfiguration
    <b>Trailer.keyFieldValue</b>     03
    <b>Trailer.lastFieldsOptional</b>     YES
    If I don't give these parameters then channel will give me errors.I don't know what other parameter to give to create a file.
    I had tried the same thing with the following and it worked
    <b>Document Name -</b> SampleMessageType
    <b>Document Namespace -</b> http://sandeep/xi/bpm_example
    <b>Record Structure -</b> Substr,*
    <b>Recordset Sequence -</b> Ascending
    <b>Key Field Name -</b> Record Type
    <b>Key Field Type -</b> String(Case Sensitive)
    <b>Substr.fieldFixedLengths</b>     3,4,15,20,15,15,20,10,3,4,15,20,15,15,15,10,6,10,3,4,6,6
    <b>Substr.fieldNames</b>     RecordType,RecordLength,CompanyName,CompanyAddress,BankName,BankCode,BankAddress,AccountNumber,RecordType,RecordLength,BeneficiaryName,BeneficiaryAddress,BankName,BankCode,BankAddress,AccountNumber,Amount,NoteToPayee,RecordType,RecordLength,TotalRecords,TotalAmount
    <b>Substr.processFieldNames</b>     fromConfiguration
    <b>Substr.keyFieldValue</b>     01
    <b>Substr.lastFieldsOptional</b>     YES
    But the problem here is my mapping has the Header,Item and Trailer as the structure names but he XML created here will be like
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:SampleMessageType xmlns:ns="http://sandeep/xi/bpm_example">
    - <Recordset>
    - <Substr>
      <RecordType>21</RecordType>
      <RecordLength>22</RecordLength>
      <CompanyName>Sandeep</CompanyName>
      <CompanyAddress>ASKDJKLASD</CompanyAddress>
      <BankName>HDFC Bank</BankName>
      <BankCode>12342</BankCode>
      <BankAddress>asdasd</BankAddress>
      <AccountNumber>123569</AccountNumber>
      </Substr>
    - <Substr>
      <RecordType>02</RecordType>
      <RecordLength>22</RecordLength>
      <CompanyName>Sagar</CompanyName>
      <CompanyAddress>23123</CompanyAddress>
      <BankName>ICICI</BankName>
      <BankCode>4234</BankCode>
      <BankAddress>ASDASD 25463</BankAddress>
      <AccountNumber>6 12304</AccountNumber>
      <RecordType>AS</RecordType>
      <RecordLength>DAsd</RecordLength>
      </Substr>
    - <Substr>
      <RecordType>03</RecordType>
      <RecordLength>22 1</RecordLength>
      </Substr>
      </Recordset>
      </ns:SampleMessageType>
    In this case my mapping fails
    Thanks,
    Sandeep

  • Problem using file content conversion

    I want to generate a input message with no recordset and root element
    It just contains one element like below:
    <line>AI0 AXXX-001 20089830 120</line>
    <line>AI0 AXXX-002 20089830 120</line>
    What properties I need to setup in file content conversion to get this format message?
    The data inside <line> comes from a txt flat file.
    Please help
    Thanks
    Gopal

    Hi,
    Root element can be ignore  by using FCC property Recordset Name i.e ignoreRecordsetName: true
    If you set the parameter to true, the <Recordset> element is not inserted.
    Recordset Name defines the root node under which rest of the XML will be created.  If not required ignore.
    As Recordset Structure is a mandatory parameters, So I'm not sure how you ignore it.
    Abid!

  • Problem with File content conversion and parameters

    Hi experts,
       What is the use of file content conversion that is available in file adapter? For what cases we can use it?
      What do the different content conversion parameters mean?
    Kindly help
    Thanks
    Gopal

    Hi,
    We use the file content convertion to conver the flat file that is text file into XML,
    File adapter cant understand the format the file is,so we have to declare the content convertion parameters.
    Check some links which will tell how the convertion is done.
    /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
    Regards,
    Phani
    Reward points if helpful

  • Trailing spaces problem during file content conversion

    I have developed a proxy to file scenario.And am using file content conversion for creating the file. The file is to be a fixed length file.
    File Structure
    <Header>
    <Item>
    <Item Trailer>
    <File Trailer>
    Each tab in the file has the last character mapped to spaces.
    Eg: Header00000001  2006011700000000020060<blank   space>
    Item00000001        2006011700000000020060<blank   space>
    The problem is that during file content conversion. XI does not preserve trailing spaces at the end of the line i.e.if a particular line in the file ends with space. It terminates the line at the last non-space character (in this case at 060).
    However we are required to maintain these trailing spaces at the end of each line.
    I have tried preserve white space in data type that does not work.
    I know that xslt mapping may solve the problem but I am looking for a workaround with my current graphical mapping.
    Looking for suggestions !!                                
    Thanks,
    Rashida

    Hi,
    I have the problem quite opposite to this where we are getting the trailing spaces at end of each record which should not come.
    File structure is
    <Record>
    - <Data>
      <Content>11/09/2007@210@ZACSL007@GBB-56436@PS01@29@1044@19@646@0</Content>
      </Data>
      </Record>
    ............. n records
    <Header>
      <File_Name>UK01</File_Name>
      </Header>
    Record structure in communication channel used is
    Header, Data
    Data.fieldFixedLengths     1024
    Data.addHeaderLine     0
    Header.addHeaderLine     0
    Header.fieldFixedLengths     0
    Header.fixedLengthTooShortHandling     Cut
    Data.fixedLengthTooShortHandling     Cut
    Header.endSeparator     '0'
    Actually if the length of record is less than 1024, rest of the length is being filled with spaces which should not occur.
    Many advanced thanks.
    Jitender

  • File Adapter - File Content Conversion to XML last element missing

    I'm using the SAP File Adapter with File Content Conversion to convert | (pipe) delimited records into XML.
    When the last field is blank, I would expect that an empty node gets created, however, the node doesn't get created at all.
    For example given these settings...
    Record.fieldSeparator = |
    Record.endSeparator = 'nl'
    Record.fieldNames = FIELD1,FIELD2,FIELD3
    Using this three record file as my data...
    |123|XYZ
    ABC||XYZ
    ABC|123|
    When converted to XML, this is what the recordset XML structure looks like...
    <Recordset>
    <Record>
    <FIELD1 />
    <FIELD2>123</FIELD2>
    <FIELD3>XYZ</FIELD3>
    </Record>
    <Record>
    <FIELD1>ABC</FIELD1>
    <FIELD2 />
    <FIELD3>XYZ</FIELD3>
    </Record>
    <Record>
    <FIELD1>ABC</FIELD1>
    <FIELD2>123</FIELD2>
    </Record>
    </Recordset>
    Notice that the last record is missing the "FIELD3" element.
    Edited by: William Krick on Jun 17, 2011 4:49 PM

    Giuseppe Agnello wrote:
    > Sorry, there was a typo in the parameter name.
    > Word fields should start with capital F.
    > Try with Record.missingLastFields, with value "add"
    >
    > http://help.sap.com/saphelp_nw70/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    >
    > Similar issue was resolved with same parameter in this thread:
    > Sender file adapter with FCC not creating last field
    That did the trick.  It was a typo.  Thanks Giuseppe.
    I'm willing to bet that this parameter was added to fix the parsing bug without breaking existing users that had already worked around the original bug.   You shouldn't really have to special case the last field.

  • Using File Content Conversion converting XML format to text format

    Hi All,
                 I am able to convert to Text format using file content conversion, But the requirement is to convert the same for the structure with additional subnodes  as in the example (also complex nested structures)
    <ns0:SendXSDEmployeeDetails xmlns:ns0="http://ehro.eds.com/FRAMEWORK/FileToFile/FileCConverion">
        <Employee>
                  <Employee_ID>2</Employee_ID>
                   <Employee_Name>KannanKumar</Employee_Name>
                     <Address>
        <Street>13th Cross Reddy</Street>
        <City>Bangalore</City>
        <Pincode>641026</Pincode>
        <Phone_No>
            <t1>9901934934</t1>
            <t2>9901934934</t2>
        </Phone_No>
    </Address>
       </Employee>
    </ns0:SendXSDEmployeeDetails>
    can any one help on this please
    I have already seen the blogs :
    /people/krishnakumar.ramamoorthy3/blog/2007/01/27/generic-mapping-to-convert-nested-xml-to-flat--receiver-file-adatper
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping
    <b>Can any one help to do  this in simple way</b><br>

    Hi,
    Like correctly pointed by JaiShankar, the Sender File Adapter currently does not supoort such stracutures.
    the strcuture supported is described in this link,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Regards
    Bhavesh

  • Encoding problem after File Content Conversion

    Hi SAP gurus!
    we're about exporting debitor data via PI into CSV files. Therefore we use a mapping to an intermediate structure. In the receiver file adapter a file content conversion is done into the target CSV format.
    We have a lot of data with eastern europe characters. Right after the mapping, everything is fine. All characters are processed correctly. After the file content conversion, the files written on the target system contain "?" instead of the special characters.
    Does anybody have any hint to fix this problem? We already tried to change the "file.encoding" parameter, but hasn't helped.
    Thanks in advance for your support!
    Cheers,
    Matthias

    Hello Satish,
    thanks for your reply.
    First, I have to explain, that the sender side isn't done by file adapter but IDoc adapter. So I cannot change the encoding on sender side.
    Both on IDoc and file side, the data is ok. Only when inserting the file content converion, the files become corrupted.
    Without using the FCC, tjhe target files are stored as UTF-8. When using FCC the files are stored as ANSI. (I tested this by opening the files in notepad and performing "Save As")
    Do you have further ideas?
    Cheers,
    Matthias

  • Problem with file content conversion for multiple substrcture. Please help!

    Hi Experts,
       I am using file content conversion in file sender communication channel. The input file is a flat file with data like this:
       A01 AA8I0NBVDA      20090704     84900
       A02 AA8I0NBVDA      20090704     84900
       A03 AA8I0NBVDA      20090704     84900
       I want the data in sender side after content conversion to be like this:
      <ns:Receive_Schedules xmlns:ns="http://mynamespace">
         <ScheduleData>
              <line>A01 AA8I0NBVDA      20090704     84900</line>
              <line>A02 AA8I0NBVDA      20090704     84900</line>
              <line>A03 AA8I0NBVDA      20090704     84900</line>
         </ScheduleData>
    </ns:Receive_Schedules>
    I have tried many options in file content conversion but getting the data like this:
    <ns:Receive_Schedules xmlns:ns="http://mynamespace">
         <ScheduleData>
              <line>A01 AA8I0NBVDA      20090704     84900</line>
         </ScheduleData>
           <ScheduleData>
              <line>A02 AA8I0NBVDA      20090704     84900</line>
           </ScheduleData>
           <ScheduleData>
              <line>A03 AA8I0NBVDA      20090704     84900</line>
           </ScheduleData>
    </ns:Receive_Schedules>
    Following are the settings/properties have configured in content conversion:
    Document Name     Receive_Schedules
    Document namespace     http://mynamespace
    Document Offset     <no value>
    Recordset Name     <no value>
    Recordset namespace     <no value>
    Recordset structure     ScheduleData,*
    Recordset sequence     Ascending
    Recordsets per message     1
    Key field Name     <no value>
    Key Field Type     String
    ignoreRecordsetName     true
    ScheduleData.endSeparator     'nl'
    ScheduleData.fieldNames              line
    ScheduleData.fieldSeparator     'nl'
    How to get the desired message? What changes I need to do in content conversion settings? Please help!
    thanks
    Gopal
    Edited by: GOPAL BALIGA on Jul 1, 2009 12:11 PM

    Hi Ranjan,
      My structure is like what you ahve defined.
      scheduledata...1.1
    ...line....0...Unbound
      I also tried the parameters you gave but still getting the same.
      <ns:Receive_Schedules xmlns:ns="http://mynamespace">
    <ScheduleData>
    <line>A01 AA8I0NBVDA 20090704 84900</line>
    </ScheduleData>
    <ScheduleData>
    <line>A02 AA8I0NBVDA 20090704 84900</line>
    </ScheduleData>
    <ScheduleData>
    <line>A03 AA8I0NBVDA 20090704 84900</line>
    </ScheduleData>
    </ns:Receive_Schedules>
    Following are the settings/properties have configured in content conversion:
    Recordset structure ScheduleData,*   -
    > Is the value correct?
    Recordset sequence Ascending  -
    > Is the value correct?
    Recordsets per message 1  -
    > Is the value correct?
    ignoreRecordsetName true
    ScheduleData.fieldSeparator nl
    ScheduleData.fieldNames line
    ScheduleData.endSeparator nl
    Edited by: GOPAL BALIGA on Jul 2, 2009 5:28 AM

  • Complex file content conversion in case of CSV file

    Hi Friends,
    What you see below is generated from Excel i.e excel file saved as CSV file. This file i need to map in XI.
    Problem is i have to take only the data and not the header part.
    for e.g in this particular line
    Employee ID          :,,E00315
    I need only E0315 and not the header value. Similarly i have to find some solution to map all the required data.
    Please suggest me how to use file content conversion in such scenarios.
    Solution is required on top priority. Points will be immdly rewarded.
    Thanks & Regards
    K.Ramesh
    ,,Time Sheet,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    ,,,,,,,,,,Ref. No: T-PRO-01-011,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    ,,,,,,,,,,Page No.: 01,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Employee ID          :,,E00315,,,Sale Order No /  Line Item :,,,SO123456,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Employee Name    :,,K.RAMESH,,,Client Name                         :,,,NCLIENTELE,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Month / Week        :,,Jul-08,,,Project Name                       :,,,Internal Project,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Sales Team            :,,,,,Project  Role Start date      :,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Location                   :,,BANGALORE,,,Project Role End date         :,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Sl. No.,Date,Day,AA Type, Task Description,,,,,No.of Hours,Remarks,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    1,7/1/2008,Tue,0814-Talent acquitision,task 1,,,,,12.00,rmk 1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    2,7/2/2008,Wed,0814-Talent acquitision,task 2,,,,,10.00,rmk 2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    3,7/3/2008,Thu,0814-Talent acquitision,task 3,,,,,12.00,rmk 3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    4,7/4/2008,Fri,0814-Talent acquitision,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    5,7/5/2008,Sat,0814-Talent acquitision,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    6,7/6/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    7,7/7/2008,Mon,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    8,7/8/2008,Tue,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, , , ,,,,,,,,,,,,,,,,,,,,
    9,7/9/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    10,7/10/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    11,7/11/2008,Fri,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,, , ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    12,7/12/2008,Sat,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    13,7/13/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,
    14,7/14/2008,Mon,0900-Paid leave,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    15,7/15/2008,Tue,0900-Paid leave,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    16,7/16/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    17,7/17/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    18,7/18/2008,Fri,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    19,7/19/2008,Sat,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    20,7/20/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    21,7/21/2008,Mon,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    22,7/22/2008,Tue,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    23,7/23/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    24,7/24/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    25,7/25/2008,Fri,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    26,7/26/2008,Sat,0814-Talent acquitision,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    27,7/27/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    28,7/28/2008,Mon,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    29,7/29/2008,Tue,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    30,7/30/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    31,7/31/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Prepared By:,,,,,Approved By:,Company Project Manager,,,,Client Project Manager,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Name,,K.RAMESH,,,Name,YYY,,,,ZZZ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Signature,,,,,Signature,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Date   ,,31.07.2008,,,Date           ,31.07.2008,,,,31.07.2008,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

    Hi,
    In this CSV file, what all i need is the value E00315 after the label Employee ID. I used in FCC the parameters u asked me to do. Also in the Document Offset i gave value 3 so that the first three lines are ignored.
    1,,,Time Sheet,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    1,,,,,,,,,,,Ref. No: T-PRO-01-011,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    1,,,,,,,,,,,Page No.: 01,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    1,Employee ID          :,E00315
    But still i am getting the error
    Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 4 according to structure 'tims_header':java.lang.Exception: ERROR in configuration / structure 'tims_header.': More elements in file csv structure than field names specified!
    Please help.
    Thanks
    Ramesh

  • Conversion from xml to csv using xsl

    hi i am converting from xml to csv using xsl i am getting the extra junk character(space) in the csv file.below i written the xml file and xsl file
    xml file
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <?xml-stylesheet type="text/xsl"?>
    <DOCUMENTS>
         <FILE>
         <DOCUMENT>
              <BUSINESS>finance</BUSINESS>
              <PROGRAM>CM</PROGRAM>
              <PROJECT>Testing Area</PROJECT>
              <NAME>121940~1.doc</NAME>
              <TEXT>SQL</TEXT>
              <LINK>http://www.sql.org/</LINK>
         </DOCUMENT>
         <DOCUMENT>
              <BUSINESS>finance</BUSINESS>
              <PROGRAM>CM</PROGRAM>
              <PROJECT>Testing Area</PROJECT>
              <NAME>121940~1.doc</NAME>
              <TEXT>Information</TEXT>
              <LINK>http://google.com/</LINK>
         </DOCUMENT>
         <DOCUMENT>
              <BUSINESS>finance</BUSINESS>
              <PROGRAM>CM</PROGRAM>
              <PROJECT>Testing Area</PROJECT>
              <NAME>121940~1.doc</NAME>
              <TEXT>Configuration</TEXT>
              <LINK>http://msdn.microsoft.com/</LINK>
         </DOCUMENT>
         </FILE>
    </DOCUMENTS>
    xsl file
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="text" indent="yes"/>
    <xsl:template match="DOCUMENTS">
    <xsl:text>Business,Program,Project,DocumentName,Textforlink,Hyperlink</xsl:text>
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="FILE">
    <xsl:value-of select="DOCUMENT/BUSINESS"/>
    <xsl:value-of select="','"/>
    <xsl:value-of select="DOCUMENT/PROGRAM"/>
    <xsl:value-of select="','"/>
    <xsl:value-of select="DOCUMENT/PROJECT"/>
    <xsl:value-of select="','"/>
    <xsl:value-of select="DOCUMENT/NAME"/>
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="DOCUMENT">
    <xsl:value-of select="','"/>
    <xsl:value-of select="','"/>
    <xsl:value-of select="','"/>
    <xsl:value-of select="','"/>
    <xsl:value-of select="TEXT"/>
    <xsl:value-of select="','"/>
    <xsl:value-of select="LINK"/>
    </xsl:template>
    </xsl:stylesheet>
    for converting to csv i am using java program.
    please go through it.

    <xsl:value-of select="','"/>That's not the correct way to output a literal comma. Just write the comma directly, or use xsl:text. And don't put in those line breaks either. You can reduce the rule for FILE to something like this:
    xsl:template match="FILE">
    <xsl:value-of select="DOCUMENT/BUSINESS"/>, <xsl:value-of select="DOCUMENT/PROGRAM"/>, <xsl:value-of select="DOCUMENT/PROJECT"/>, <xsl:value-of select="DOCUMENT/NAME"/>
    <xsl:apply-templates/>
    </xsl:template>

Maybe you are looking for

  • How do I remove an app from my Icloud backup?

    I'm not even sure I'm asking the right question.  I want to reinstall an app at the recommendation of my IT admin.  When I delete it from my phone and tehn attempt to reinstall from the app store, it is coming from the cloud.   I assume that's my icl

  • ITunes 6.0.3 + Quick Time 6.5.3 = headaches

    I love my iMac. I love OS X. I hate Apple's evil business plan to FORCE every Mac user on the earth to upgrade to the latest Mac or the latest OS X while GIVING the wonderful advance features of iTunes 6.0.4 and Quick Time 7 to Windows users without

  • Force-Quit No Longer Works on Safari

    Safari freezes nearly every day since I've upgraded to Leopard. When it does, force-quit doesn't work. When I try to force-quit, Safari disappears from Activity Monitor but still has the active light/arrow in the Dock. When this happens, Safari won't

  • All songs deleted on iPod mini but they are all still on iTunes

    For some wierd reason all my songs were deleted from my iPod mini when I deleted one playlist. Now I can't update my iPod, because iTunes says that all of the playlists selected no longer exist. Should I restore my iPod mini? I'm scared. Please help

  • How do i turn off pop up blocker on safari

    how do you turn pop up blockr off on safari