ERROR :Conversion of file content to XML failed at position 0

Hi Frnds,
I have a File to File scenario, while testing I am getting the following error:
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according to structure 'TA_830':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
Can any one please tell me why Iam getting this error even I have provided the following informantion in channel configuration. Here TA_830 is the record name.
TA_830.processFieldNames     fromConfiguration
TA_830.fieldNames     SEG_NUM,PROCESS_DATE,PAYEE_BCODE,ISSUE_SEQ_NUM,CR_DATE,PAYER_BCODE,PAYER_ID,ENTRY_SEQ_NUM,TRAN_TYPE,PAYMENT_TYPE,PROCESS_FLAG,REF_NUM,PAYER_ACC,VAL_DATE,ISO_CURRENCY,AMOUNT,RESV_11,SEG_NUM,EXCHG_RATE,ADDR1,ADDR2,ADDR3,ADDR4,RESV_18,SEG_NUM,BANK_ID,BANK_CODE,ADDR1,ADDR2,ADDR3,ADDR4,RESV_5,SEG_NUM,ACCOUNT,ADDR1,ADDR2,ADDR3,ADDR4,RESV_6,SEG_NUM,MESSAGE1,MESSAGE2,MESSAGE3,MESSAGE4,RESV_6,SEG_NUM,MESSAGE1,MESSAGE2,MESSAGE3,MESSAGE4,RESV_6,SEG_NUM,PROCESS_DATE,PAYEE_BCODE,ISSUE_SEQ_NUM,CR_DATE,PAYER_BCODE,PAYER_ID,ENTRY_SEQ_NUM,TRAN_TYPE,PAYMENT_TYPE,PROCESS_FLAG,TOTAL_AMOUNT,RESV_59
TA_830.fieldFixedLengths     2,6,12,5,6,7,5,5,3,1,1,16,24,6,3,15,11,2,12,24,24,24,24,18,2,1,24,24,24,24,24,5,2,24,24,24,24,24,6,2,30,30,30,30,6,2,30,30,30,30,6,2,6,12,5,6,7,5,5,3,1,1,16,59
TA_830.fieldContentFormatting     nothing
Regards,
Shiva.

Hi,
As you are using Fixed Length File...use below specified parameters:
TA_830.fieldName:          Names of Fields in teh File
TA_830.fieldFixedLegths: Lenghts as per your file
TA_830.keyFieldValue:    If you use any value as key
TA_830.lastFieldsOptional: YES
TA_830.endSeparator :        'nl'
This will help you out..
Thanks,
Kishore.

Similar Messages

  • Error Message: Conversion of file content to XML failed at position 0: sun.

    Hi Experts,
    i strugle with a File 2 IDOC Scenario.
    In the sender communication channel monitoring I get the error message:
    Conversion of file content to XML failed at position 0: sun.io.MalformedInputException
    Unfortunately I am not getting any further information and I do not know where the file-adapters problem is.
    Tthe .fieldSeparator = # . Can this be the problem, that the file-adapter-engine can not handle # within file conversion? I also tried it with .fieldSeparator = '#' . But the error message is the same.
    I am glad for any hints.
    Thank you for your help in advance.
    Regards,
    Udo

    Hi Udo,
    The error is due to wrong intput.
    putting # might be a reson.
    You Can try (,) or a space as a field separater.
    Can you test this once.
    Have to defined the field separated?
    Regards,
    Sumit Gupta

  • Error in reciever file content conversion

    Hi
    I have the following error in the file content conversion
    Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'
    my content conversion is :
    Recordset Structure : FI_Banks_Header_MT,Line
    FI_Banks_Header_MT.fieldSeparator = 'nl'
    FI_Banks_Header_MT.fieldSeparator = ;
    my xml is :
    <FI_Banks_Lines_MT>
    ****<Line>
    <FIELD1>12799</FIELD1>
    <FIELD2>721042</FIELD2>
    <FIELD3>0620</FIELD3>
    <FIELD4>20.06.06</FIELD4>
    <FIELD5>5575688</FIELD5>
    ****</LINE>
    </FI_Banks_Lines_MT>
    The file gets ok !!! but I still get this error in adapter monitor after the file is converted all the time
    any1 managed to solve it ? thx , Shai

    Hey sorry for the previous one...
    try out this...
    Recordset Structure : FI_Banks_Lines_MT
    FI_Banks_Lines_MT.endSeparator = 'nl'
    FI_Banks_Lines_MT.fieldSeparator = ;
    hope this helps !!!...
    Cheers.,
    Esha

  • 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-.

  • Error whil doing File Content Conversion

    Hi all,
       I had configured a sender for File Content Conversion and I am getting the follwoing error.
    Sender Adapter v1014 for Party '', Service 'bs_xml_sender':
    Configured at 05:39:05 2007-04-27
    Initialization error: Conversion initialization failed with java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    Format error in 'xml.recordset' argument: incomplete structure (name,number) pair.
    Any ideas why I am getting this error.

    Here is the detailed error message.
    "Messages:16:40:41 Start of test
      - Cannot produce target element /ns:mt_receiver/PO_NUM. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    16:45:01 End of test
    16:45:10 Start of test
      - Creating Java mapping com/sap/xi/tf/_mm_Sender_Receiver_
      - Loaded class com.sap.xi.tf._mm_Sender_Receiver_
      - Call method execute of the application Java mapping com.sap.xi.tf._mm_Sender_Receiver_
      -  *** START APPLICATION TRACE ***
      - Document start
      - Start tag [ns:mt_receiver]
      - Add raw attribute [ xmlns:ns="http://xml2xml"]
      - Cannot produce target element /ns:mt_receiver/PO_NUM. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    16:45:12 End of test

  • XML to flat file conversion using file content conversion in reciever CC

    Hi,
    Iam working on Idoc to File scenario.
    Iam having a problem in the communication channel of reciever.
    Iam using File content conversion in Reciever Adapter.
    My xml format is asfollows:--
    - <Header>
      <FILLER1>KTP</FILLER1>
      <YEAR_IDOC>YEAR 2006</YEAR_IDOC>
      <FILLER2>FIRSTWEEKNUMBER</FILLER2>
      <WEEK_IDOC>51</WEEK_IDOC>
      <FILLER3>NUMBER WEEKS 26</FILLER3>
      <PLANT_CODE>FACTORYM019</PLANT_CODE>
      </Header>
    - <Record>
      <First_material>731000</First_material>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0001.9</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0020.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0018.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <Second_material />
      <Seond_quantity>000000</Seond_quantity>
      <Second_quantity>0011.0</Second_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Second_quantity>0049.0</Second_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Second_quantity>0067.0</Second_quantity>
      <Third_material />
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>0008.0</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      </Record>
    The file format should be as follows:--
    KTP   YEAR 2006 FIRSTWEEKNUMBER 51   NUMBER WEEKS 26  FACTORYM019
    731000  0000.0 0001.9 0000.0 0000.0 0020.0 0000.0 0000.0 0000.0 0018.0 0000.0
            0000.0 0011.0 0000.0 0000.0 0000.0 0000.0 0049.0 0000.0 0000.0 0067.0
            0000.0 0000.0 0000.0 0008.0 0000.0 0000.0  
    Could some one help me in resolving this issue.
    Regards
    Praveen

    Hi Praven,
    couldn't you simply modify your target DATA type so it will be easier to handle?
    For example something like:
    <Header>
    </Header>
    <Record>
    <Material>
    <Number>..</Number>
    <quantity>..</quantity>
    <quantity>..</quantity>
    </Material>
    In this way file content conversion will be easier (easy)!
    Regards,
    Sergio

  • Error in Converting File Content in a Sender Adapter

    Hi everyone.
    We are using File content conversion as message protocol for a simple flat file (sender) .
    In the sender communication channel we have configured the recordset structure as follows:
    order_row.filedNames : orderid,item,quantity,price
    order_row.filedSeparator : ,
    order_row.endSeparator : 'nl'
    <b>Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'order_row.fieldFixedLengths' or 'order_row.fieldSeparator' is missing Mandatory parameter 'order_row.fieldNames': no value found </b>
    In monitoring no XML messages are seen in IDX5.
    What is the solution for this kind of problem.

    you have to provide values for the recordset structure?
    Below i am refering multiple blogs on Content conversion, please refer them to help you get a hand on the same.
    /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 - TAB delimited
    /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

  • How can I convert the binary file content to XML message

    Dear friends,
    I poll the binary file from a ftp server but the payload only includes the binary content, no XML structure in the payload, I hope to convert the binary content to a element node within the XML structure, how can I do that? via content conversion?
    Thanks and regards,
    Bean

    Read the binary file stream using java I/O standard functions and convert the read stream to Base64 format. Now map this content to one of the field in target XML structure.
    You need a java mapping for this.
    what is your target system?
    Thanks,
    Gujjeti.
    Hi Gujjeti,
    Thanks a lot for your kind help, my target system is R/3.
    Can I achieve that with a UDF or a simple way?
    Regards,
    Bean

  • Converting File Content.Unexpected XML format

    Hello,
    I need to convert file content in File Receiver Adapter.
    In my opinion, i have unexpected XML format of a payload message. (At least, the format does not contain a structure element):
    That is,
    I have the XML message:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_BW ID="123" BirthDay="20/03/1969" Title="consultant" Name="John" LastName="Smith" xmlns:ns0="http://sap.com/xi/BASIS"/>
    I need to convert it into plane text format with fieldseparator.
    How to convert this xml message into plane text format if it does not contain any structure elements  (that is, <struc1>  <field1>value</field1>  </struc1>) according to help guide?
    How should i configure RecordSet in File Adapter?
    I am confused.
    Thank you

    Igor,
    Are u getting the format from the source?
    <ns0:MT_BW ID="123" BirthDay="20/03/1969" Title="consultant" Name="John" LastName="Smith" xmlns:ns0="http://sap.com/xi/BASIS"/>
    If yes, then create one more data type with structure
    <Record>
    <ID/>
    <BirthDay/>
    <Title/>
    <Name/>
    <LastName/>
    </Record>
    And do direct mapping. So now you can easily configure the content conversion for the target format isn't it?
    Its my thought, I don't know whether its feasible for you or not..
    raj.

  • IDOC-EDI Conversion usinf File content cpnversion

    Hi all,
    I need to convert an IDOC to EDI. I went through a few threads where I underrstood We dont need seeburger adapter for the same. It can also be done using File COntent Conversion. Can someone guide me with the steps.
    Is it necessary to use seeburger adaps. Any related blogs would be helpful.
    Regards,
    Vinithra

    Hi Vinithra,
    --> refer the below link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80b8db75-e481-2d10-7e94-81e1e29594e9?quicklink=index&overridelayout=true
    the above may not explain exactly as per your requirement but gives some idea.
    -->We can not use any custom adapter module for conversion of IDOC to EDI.For IDOC adaper module will be disabled.(as oer my knowledge)
    Thanks

  • Consistency check error in sender file content conversion

    Dear Experts,
    I am trying one simple File to File scenario in which i have only fields 1>salesorder_number 2>Description
    I created a txt file with line items "100,crudeoil" with file name as salesorder.txt
    In the sender file adapter i have configured the file convertion paramenters as follows:
    Document name : mt_salesorder_sender  
    Document namespace : http://se.com.sa/sec-sa-qax          "Namespace of message type
    Recordset Structure : document,*
    document.endSeparator : 'nl'
    document.fieldSeparator: ,
    document.fieldNames : salesorder_number,Description
    So after this if i run the scenario In file adapter i am getting the error like "Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'document.fieldFixedLengths' or 'document.fieldSeparator' is missing Consistency check: no. of arguments in 'document.fieldFixedLength' does not match 'document.fieldNames' (0 <> 2) "
    Please let me know where i am going wrong.
    Regards,
    Santhosh

    Hi,
    please maintain the order as
    Recordset Structure : document,*
    document.fieldNames : salesorder_number,Description
    document.fieldSeparator: ,
    document.endSeparator : 'nl'
    Rgds
    joel

  • Error handling in File content conversion

    In our project , we are converting Flat file to XML by adapter modules ...
    File is like this :
    HEADER 123 567
    DETAIL UWERU AASD fftk
    DETAIL UWERU AASD fftk
    DETAIL UWERU AASD fftk
    DETAIL UWERU AASD fftk
    FOOTER
    File has been succesfully converted to XML.HEADER, DETAIL and FOOTER are the key field
    values.
    Now in some scenario file is like this
    HEADER 123 567
    DETAIL1 UWERU AASD fftk
    DETAIL UWERU AASD fftk
    DETAIL UWERU AASD fftk
    DETAIL UWERU AASD fftk
    FOOTER
    As there is one DETAIL1( different from DETAIL, it can be anything other tha DETAIL ) we need to throw the error.Client wants to do it in the Integration engine level not in Adpater engine...
    Any suggestions will be great ....

    Bhavesh ,
    Input
    HEADER 123 567
    DETAIL UWERU AASD fftk
    DETAIL UWERU AASD fftk
    DETAIL UWERU AASD fftk
    DETAIL UWERU AASD fftk
    FOOTER
    The output is like this
    <root>
      <header>
           <f1>123</f1>
            <f2>567</f2>
        <detail>
           <f3>UWERU</f3>
           <f4>AASD</f4>
           <f5>fftk</f5>
          </detail>
        <footer>
        </footer>
    Now regarding the module , we are using all standard modules , can we set the flag using SAP standard module ???
    Another question is , is ot possible to make the key field values (HEADER, DETAIL and FOOTER ) is part of the output ???
    Regards
    Goutam

  • Getting error in build file  'OSM.AIAInstallation.xml'

    Hi,
    I am first time setting up OSM for the Order-to-Activate solution.
    As per documentation I am following steps to configure design studio and installing AIA cartridges.
    I am using design studion 3.1.4,OSM 7.0.3,Weblogic10.0.1
    When I run 'allSimpleTopologyProjects' ant task (Which is present in 'OSM.AIAInstallation.xml' build file) its throwing below error.
    Buildfile: U:\OracleCgbuOsmAIAInstallation\OSM.AIAInstallation.xml
    allTypicalTopologyProjects:
    setupStaging:
    [echo] Setting AIA PIP Staging Directory in T:\bea\OSM7.0.3\SDK/Automation/automationdeploy_bin/../..\OSM.PIP\staging
    [unzip] Expanding: T:\bea\OSM7.0.3\SDK\OSM.PIP\OracleCgbuOsmAIAPIPCartridges.zip into T:\bea\OSM7.0.3\SDK\OSM.PIP\staging
    importOsmAIAPIPProjects:
    [echo] Importing AIA Projects...
    [echo] Importing project: CommunicationsProvisioningOrderFulfillmentPIP
    BUILD FAILED
    U:\OracleCgbuOsmAIAInstallation\OSM.AIAInstallation.xml:113: The following error occurred while executing this line:
    U:\OracleCgbuOsmAIAInstallation\OSM.AIAInstallation.xml:123: Problem: failed to create task or type studio.importProject
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.
    In which Jar task "studio.importProject" available ?
    Or IS any configuration is missing?
    Regards,
    UJ

    You need to set the option to run within the same JRE as the workspace. It appears you are running the import with the setting as "use separate JRE". You should follow the steps in the O2A cartridge guide for importing the projects. Note that manual import of the projects will not give you the same end result as importing using the supplied ANT script.
    Cheers
    ~nagu.

  • Errors in log files; Condition: INFINITE == dwTimeout failed in file

    Hi,
    We recently upgraded to 7.1.04 SP04 (7.1.04.129) from 7.1.03 and that's when the log entries below started appearing.  I'm seeing 7 of these messages getting logged every 20 seconds in the MDS log. Stopping the MDM Syndication Server (MDSS) stops the logs from appearing, so it makes me think the problem is originating from that server. There is only one repository (CustomerMaster) and there are 6 syndication ports. All 6 ports appear to be working ok and generating data output each night.
    The log entry appears to be security related (AuthorizeSessionForRepository) for user "Admin". We're certain the password for "Admin" has been set properly for the MDSS server. Any help with this would be most appreciated!
    Thanks,
    John
    2010-04-22T15:33:57.228,2057    ,23,"Condition: INFINITE == dwTimeout failed in file /home/builder/mdm.build/7.1.04.xx/Cpp/GenericLibs/Base/A2iMultiThread.cpp , line 58",MDSPublicServer@AuthorizeSessionForRepository,Dbg.cpp,65,,,,Non-user MDS operation,server_global,,,
    2010-04-22T15:33:57.228,2057    ,23,"Condition: INFINITE == dwTimeout failed in file /home/builder/mdm.build/7.1.04.xx/Cpp/GenericLibs/Base/A2iMultiThread.cpp , line 58",MDSPublicServer@AuthorizeSessionForRepository,Dbg.cpp,65,,,,Non-user MDS operation,server_global,,,
    2010-04-22T15:33:57.229,2057    ,23,"Condition: INFINITE == dwTimeout failed in file /home/builder/mdm.build/7.1.04.xx/Cpp/GenericLibs/Base/A2iMultiThread.cpp , line 58",MDSPublicServer@AuthorizeSessionForRepository,Dbg.cpp,65,,,,Non-user MDS operation,server_global,,,
    2010-04-22T15:33:57.229,2057    ,23,"Condition: INFINITE == dwTimeout failed in file /home/builder/mdm.build/7.1.04.xx/Cpp/GenericLibs/Base/A2iMultiThread.cpp , line 58",MDSPublicServer@AuthorizeSessionForRepository,Dbg.cpp,65,,,5,Admin,CustomerMaster <PM1 [Oracle]>,,,
    2010-04-22T15:33:57.230,2057    ,23,"Condition: INFINITE == dwTimeout failed in file /home/builder/mdm.build/7.1.04.xx/Cpp/GenericLibs/Base/A2iMultiThread.cpp , line 58",MDSPublicServer@AuthorizeSessionForRepository,Dbg.cpp,65,,,5,Admin,CustomerMaster <PM1 [Oracle]>,,,
    2010-04-22T15:33:57.231,2057    ,23,"Condition: INFINITE == dwTimeout failed in file /home/builder/mdm.build/7.1.04.xx/Cpp/GenericLibs/Base/A2iMultiThread.cpp , line 58",MDSPublicServer@AuthorizeSessionForRepository,Dbg.cpp,65,,,5,Admin,CustomerMaster <PM1 [Oracle]>,,,
    2010-04-22T15:33:57.231,2057    ,23,"Condition: INFINITE == dwTimeout failed in file /home/builder/mdm.build/7.1.04.xx/Cpp/GenericLibs/Base/A2iMultiThread.cpp , line 58",MDSPublicServer@AuthorizeSessionForRepository,Dbg.cpp,65,,,5,Admin,CustomerMaster <PM1 [Oracle]>,,,

    Netweaver MDM 7.1 SP04 patch 10 resolved this issue.

  • Error code chrome://browser/content/tabbrowser.xml:565

    above is the error code i get when trying to access information on www.gumtree.co.za. i neer had this problem before only 2 weeks ago it started. i do not have crome installed on my browser

    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    1.You can open the Firefox 4.0 SafeMode by holidng the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. <br />
    2. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

Maybe you are looking for