Segment IEA(Interchange Control Trailer)  EDI error

Hi
WHile valiidating the EDI 875 using SpecBuilder I am getting following error
Segment IEA(Interchange Control Trailer) at guideline position (N/A) is missing. This segment's standard option is Mandatory.
This segment was expected after:
Segment Count: 22
Character: 730
My EDI file is as follows
ISA*00* *00* *12*8283234100 *08*9267710000 *081103*1315*U*00401*000271883*0*P*>
GS*OG*8283234100*3014302200*20081103*1315*271883*T*004010
ST*875*171889
G50*N*20081103*236772
G61*BD*GINASHARPE/KIMSCEARCE*TE*8287254301
G62*02*20081106
NTE*ALL*IMPORTANTPOSHIPPINGINFORMATIONatWWW.MERCHANTSDISTRIBUTORS.COMVENDORINFO
G66*PP*M*2
N1*BT*MERCHANTSDISTRIBUTORSINC.*9*0069968880200
N3*P.O.BOX2148
N4*HICKORY*NC*28603
N1*ST*MERCHANTSDISTRIBUTORSINC.*9*0069968880400
N3*5005ALEXLEEBOULEVARD
N4*HICKORY*NC*28601
N1*VN*DPIMIDATLA*92*71541
G68*1*CA*123.22*004132400013*PI*090669
G69*SHP-DOWNEYSHNYBTRASSRT
G70*60*7.5*OZ
G72*88*02***4.8
G76*3866*CA*42093*LB*2019*CF**7742742
SE*19*171889
GE*1*271883
IEA*1*000271883
I am putting all the headers and information still getting the error
Any pointers will be highly appreciated
Regards
Sahil

Hi Sahil,
CR/LF is missing after IEA segment or simply press enter after IEA segment and EDIFECS will validate it fine.
ISA*00* *00* *12*8283234100 *08*9267710000 *081103*1315*U*00401*000271883*0*P*>~
GS*OG*8283234100*3014302200*20081103*1315*271883*T*004010~
ST*875*171889~
G50*N*20081103*236772~
G61*BD*GINASHARPE/KIMSCEARCE*TE*8287254301~
G62*02*20081106~
NTE*ALL*IMPORTANTPOSHIPPINGINFORMATIONatWWW.MERCHANTSDISTRIBUTORS.COMVENDORINFO~
G66*PP*M*2~
N1*BT*MERCHANTSDISTRIBUTORSINC.*9*0069968880200~
N3*P.O.BOX2148~
N4*HICKORY*NC*28603~
N1*ST*MERCHANTSDISTRIBUTORSINC.*9*0069968880400~
N3*5005ALEXLEEBOULEVARD~
N4*HICKORY*NC*28601~
N1*VN*DPIMIDATLA*92*71541~
G68*1*CA*123.22*004132400013*PI*090669~
G69*SHP-DOWNEYSHNYBTRASSRT~
G70*60*7.5*OZ~
G72*88*02***4.8~
G76*3866*CA*42093*LB*2019*CF**7742742~
SE*19*171889~
GE*1*271883~
IEA*1*000271883~

Similar Messages

  • AIP-51505 - "Segment ISA(Interchange Control Header)"

    Support,
    I seem to be having an issue with one of my trading partner setups.. I am pretty sure it is something silly but can't seem to be able to track it down. I have checked the delimiters in the partner setup as well as run the data thru the data analyzer and it all checked out. I am kinda at a loss on this one.
    Thank you for all the help
    Jaden
    Error
    Segment ISA(Interchange Control Header) at guideline position (N/A) is missing. This segment's standard option is Mandatory.{br}{br}This segment was expected after:{br}{tab}Segment Count: 0{br}{tab}Character: 1021
    Document wire message
    ISA~00~ ~00~ ~ZZ~Allied ~ZZ~UPS ~070801~2117~U~00401~000001054~0~P~+'GS~PO~Allied~UPS~20070801~2117~1054~X~004010'ST~850~1054'BEG~00~SA~57192~87007~20070724'DTM~010~20070724'TD5~~2~000001_DHL_A_2DA'N1~ST~19427~92~7984'N3~500 Oracle Pkwy'N4~Redwood City~CA~96504~US'N1~BT~19427~92~7984'N3~500 Oracle Pkwy'N4~Redwood City~CA~96504~US'PO1~1.1~2~EA~~~VP~50939~BP~6199~DV~255480'PID~F~~~~Standard Item'PO1~2.1~5~EA~~~VP~50939~BP~6197~DV~255481'PID~F~~~~Standard Item'PO1~4.1~5~EA~~~VP~50939~BP~6197~DV~255483'PID~F~~~~Standard Item'PO1~5.1~3~EA~~~VP~149~BP~7191~DV~255484'PID~F~~~~Sentinel Standard Desktop'PO1~6.1~4~EA~~~VP~2814~BP~4191~DV~255485'PID~F~~~~Vision Pad - Gold'PO1~7.1~4~EA~~~VP~50939~BP~6199~DV~255486'PID~F~~~~Standard Item'PO1~8.1~4~EA~~~VP~50936~BP~6198~DV~255487'PID~F~~~~3PL Test Item with Serial Control'PO1~9.1~5~EA~~~VP~149~BP~7191~DV~255488'PID~F~~~~Sentinel Standard Desktop'PO1~10.1~5~EA~~~VP~2814~BP~4191~DV~255489'PID~F~~~~Vision Pad - Gold'SE~29~1054'GE~1~1054'IEA~1~000001054'

    For some reason the data compressed a little with the last post. Here is the data and the ISA seems fine to me.
    Jadeen
    ISA~00~ ~00~ ~ZZ~Allied ~ZZ~UPS ~070801~2117~U~00401~000001054~0~P~+'GS~PO~Allied~UPS~20070801~2117~1054~X~004010'ST~850~1054'BEG~00~SA~57192~87007~20070724'DTM~010~20070724'TD5~~2~000001_DHL_A_2DA'N1~ST~19427~92~7984'N3~500 Oracle Pkwy'N4~Redwood City~CA~96504~US'N1~BT~19427~92~7984'N3~500 Oracle Pkwy'N4~Redwood City~CA~96504~US'PO1~1.1~2~EA~~~VP~50939~BP~6199~DV~255480'PID~F~~~~Standard Item'PO1~2.1~5~EA~~~VP~50939~BP~6197~DV~255481'PID~F~~~~Standard Item'PO1~4.1~5~EA~~~VP~50939~BP~6197~DV~255483'PID~F~~~~Standard Item'PO1~5.1~3~EA~~~VP~149~BP~7191~DV~255484'PID~F~~~~Sentinel Standard Desktop'PO1~6.1~4~EA~~~VP~2814~BP~4191~DV~255485'PID~F~~~~Vision Pad - Gold'PO1~7.1~4~EA~~~VP~50939~BP~6199~DV~255486'PID~F~~~~Standard Item'PO1~8.1~4~EA~~~VP~50936~BP~6198~DV~255487'PID~F~~~~3PL Test Item with Serial Control'PO1~9.1~5~EA~~~VP~149~BP~7191~DV~255488'PID~F~~~~Sentinel Standard Desktop'PO1~10.1~5~EA~~~VP~2814~BP~4191~DV~255489'PID~F~~~~Vision Pad - Gold'SE~29~1054'GE~1~1054'IEA~1~000001054'

  • Determining which EDI Error Messages are related to "Tasks"

    Our company uses EDI heavily and have many errors which our business community wiill process.   I do not know how other companies are handling this "EDI workflow", but we do this through transaction PPOM.   We have created an overall EDIORG organization along with positions for different areas of responsibility.  We then need to assign the "appropriate tasks" to each position & also assign the correct position to the Partner profiles to ensure the correct people see the errors.  
    My question is how can II determine which "Tasks" are assign to the specific message errors that end up coming in?    Most Tasks are by Idoc type --- do I just have to assume that any error related to that IDoc type would be covered?
    Thanks so much for any input as to "Controlling the EDI Error processing" by business users!
    Britte

    Hi surya,
    You are saying 1122124 is IDOC numner & its not relevant to this idoc.
    What it means,can u explain??? Actually there will be a chance an IDOC can mapped to N no of documents. This mapping will done through a BADI internally.
    Regards
    KER

  • Biztalk EDI error

    I received this error:
    Error: 1 (Miscellaneous error)
    16: Invalid Control Standard Identifier
    Error: 2 (Field level error)
    SegmentID: ISA
    Position in TS: 1
    Data Element ID: ISA11
    Position in Segment: 11
    Data Value: ^
    7: Invalid code value.
    The sequence number of the suspended message is 1. 
    I believe it is pointing to this value ^ but my whole edi file has this character ^. I  know the fact that it is supposed to be changed to the value capital U
    But I would still want to process this file to my SQL server with the value ^. How can I achieve that? any receive pipeline settings that needs to be edited?
    Christiane

    Maheshkumar,
    I created a receive pipeline and used the EDI disassembler and I checked this property to TRUE, (USEISA11ASREPETIONSEPARATOR) and that fixes this particular issue but then Biztalk displayed 3 errors in the application log.
    Error: 1 (Field level error)
    SegmentID: ST
    Position in TS: 1
    Data Element ID: CIMCode
    Position in Segment: 4
    Data Value: 
    1: Mandatory data element missing
    Error: 2 (Field level error)
    SegmentID: PER
    Position in TS: 1580
    Data Element ID: PER04_CommunicationNumber
    Position in Segment: 4
    Data Value: 
    6: Leading or trailing space found
    Error: 3 (Field level error)
    SegmentID: PER
    Position in TS: 5210
    Data Element ID: PER04_CommunicationNumber
    Position in Segment: 4
    Data Value: 
    6: Leading or tra
    Christiane

  • How to get duplicate interchange ICN No when error 26: Duplicate interchange detected

    Hi
    I have been getting error 26: Duplicate interchange detected while i have EDFACT Interchange processing property check
    for duplicate UNB5 (Interchange control number)= 30 days. 
    Now I need to get information for interchange no with whom it has been detected duplicate. Please
    assist me to get this information
    Kapil Kaushish

    Hi Kapil,
    Alongwith this error you also get another error, check the event log which has details like interchange Id, Sender Id and receiver Id.
    Also on error, Interchange/Transaction sets are suspended based on configuration done on Local Host Settings-->Inbound Batch Processing Option. So you can check the suspended message for the details as well.
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    Server : Fetching UNB and UNG Segment Values From Interchange Envelope and Mapping

  • How to Identify EDI errors in inbound IDocu0092s?

    hi,
    I just want to know how to identify EDI errors in inbound IDoc’s?

    Hi
    Ref this links
    http://www.hibcc.org/EBUS/editemplates.htm
    /people/bla.suranyi/blog/2006/06/08/sap-xi-supports-edifact
    /people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
    /people/paul.medaille/blog/2005/11/17/more-on-the-sap-conversion-agent-by-itemfield
    /people/sravya.talanki2/blog/2005/12/02/manipulating-idoc-control-records-from-payload
    /people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified
    /people/ravikumar.allampallam/blog/2005/02/28/creating-sales-order-through-idoc
    With Seeburger we can conver to edi format to XML
    seeburger doc
    http://www.stylusstudio.com/edi/XML_to_X12.html
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b0b355ae-0501-0010-3b83-8f2bb566fa47
    Details on XI EDI adapter from seeburger
    Doc for Conversions-
    http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
    http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
    http://www.seeburger.com/fileadmin/com/pdf/AS2_General_Overview.pdf
    SAP Adapters
    EDI with XI
    http://www.seeburger.com
    http://www.seeburger.com/fileadmin/com/pdf/AS2_General_Overview.pdf
    http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
    http://www.seeburger.com/fileadmin/com/pdf/SEEBURGER_SAP_Adapter_engl.pdf
    http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
    http://www.sap.com/france/company/events/2006/02-01-Automotive-Seeburger.pdf
    http://h41123.www4.hp.com/presentations/ISUG/XISeeBurger.ppt
    http://www.sap.com/asia/company/events/nwtechdays/presentation/australia-slides/Pre-Built_Integration.pdf
    Thanx
    Bommireddy.Sridhar

  • Error - ATTRIBUTE_IDOC_METADATA - EDI: Error while assigning IDoc number

    Hi,
    I'm attempting to create a simple interface which converts cutomer data from a flat file and loads it into a SAP enterprise system as an DEBMAS06 IDoc type. I am getting the error message Error - ATTRIBUTE_IDOC_METADATA - EDI: Error while assigning IDoc number in the XI message monitor.
    Has anyone come accross this error before and if so, what is the resolution???
    Thanks, in advance,
    Pete

    Hi Peter,
    did you fixed it?
    How did you?
    got the same problem
    Kind regards,
    Michael

  • Error: EDI: Error while assigning IDoc number

    Hi Everybody,
    using XI 3.0 on Linux 64 bit SLES9 with Oracle I got some probleme sending messages from mq series to sap:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!-- Call Adapter
    -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
    SOAP:mustUnderstand="">
    <SAP:Category>XIAdapter</SAP:Category>
    <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
    <SAP:P1>EDI: Error while assigning IDoc number</SAP:P1>
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>Error: EDI: Error while assigning IDoc number</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    What is missing here?
    Kind regards,
    Michael

    Hi Jayakrishnan,
    thanks a lot for your answer.
    SM59 is working finde. In IDX1 I got the the correct RFC destination entered and a double click works fine also.
    The other way around R3 -> XI -> mq series is working fine. Here we are trying mq -> XI -> R3 and it stops sending from XI to R/3.
    How to check the IDOC type?
    Regards,
    Michael

  • How to make screen field enable when table control gives an error

    Hi,
        I had a scneario like when table control data wrong then one parameter of the screen should be enabled for the input, i knew that screen-name will not work since it will have always table control fields only when table control gives an error.
    How to make the other parameter enable when table control throws an error.
    Regards,
    Jaya

    Hi Gobi,
         Thanks for your response, but issue is - how to make other screen fields enable when there was an error in the table control data.
    For table control - lets say we will use the code as i mentioned above.i am sure that we cant write the code for field enable in between loop & endloop.
    as you said if we right outside the loop-endloop, the module wont be triggered when table control throws an error, because that statement was not there in the loop-endloop.
    please let me know if you need any more information on the issue. I hope there is alternative for this in SAP.
    Thanks
    Jaya

  • Every time i try to create a new movie or a trailer an error message appear saying:"the operation could not be completed. no other information is available about the problem."

    every time i try to create a new movie or a trailer an error message appear saying:"the operation could not be completed. no other information is available about the problem."

    Open the iCloud preference pane and uncheck the Contacts box. Do the alerts stop?

  • Control Framework: Fatal error - GUI cannot be reached

    Hello All,
       Iam using BDC for creating a ZCR order throught VA01 - Credit Memo request. When executed in the foreground, it works fine.But when ran in background gives an error message - Control Framework: Fatal error - GUI cannot be reached  and gives a short Dump for 'RAISE_EXCEPTION'.
    Please suggest.

    Normally, BDC should run the same way whether it is in background of Foreground.
    No, BDC does not run  the same way in background and foreground
    To understand BDC in background : different behavior or termination read those OSS notes :
    - [Note 33319 - Batch input: Backgr. runs diff. than in the dialog|https://service.sap.com/sap/support/notes/33319]
    - [Note 311440 - Batch input and controls|https://service.sap.com/sap/support/notes/311440]
    Also this note of interest :
    - [Note 554139 - FAQ 2: Batch input|https://service.sap.com/sap/support/notes/554139]
    Regards,
    Raymond

  • ACH Edi  error report

    I am currently working on setting up ACH process for a client using the SAP's standard IDOC process. Once the bank receives the ACH Idoc, if there any errors such as vendor account number missing, they send an edi error file back. Client is asking if there a way to set up SAP to automatically reverse the payment for that particular vendor upon receiving the error file from the bank.
    Please advice if anybody has experience with this scenario.

    user3045615 wrote:
    Returns: Error report - Connection reset by peer: socket write error when executing SQL script in an Oracle 12.1.0.2.0 Enterprise Edition database (residing on a remote Microsoft Windows x86 64-bit) user schema (datamart).
    Initially, the error occured when the script attempted to compile a PL/SQL package body (1125 lines of code). Another script successfully compiled 4 larger PL/SQL package bodies (all exceed 1125 lines of code) in a different user schema (staging).
    Now, the error occurs in staging user schema when calling a PL/SQL package.
    Ray
    Is GOOGLE broken for you?
    sockets - What does "connection reset by peer" mean? - Stack Overflow
    I am not convinced that your error has much, if anything, to do with Oracle.
    In the future use COPY & PASTE so we can really see what you actually do & what the complete response is.

  • Control Framework: Fatal error - GUI cannot be reached-ALV Grid in Bckgrnd

    I have an ALV grid which dumps in the background. But works fine in the foreground.
    I thought I am not using Control framework anywhere. But I get 'COntrol framework :Fatal error - GU cannot be reached' error.
    I am using a docking container that I have split using a splitter.
    I have no custom container in my screen. What else could be causing the Control framework error ? Any suggestions is appreciated. But please do not tell me to use 'REUSE_ALV*' or Classical reporting
    Here are the PBO modules of my screen and here are my data declarations.
    ALV Data declarations :
    data :gt_sort type lvc_t_sort,
            gr_event_handler TYPE REF TO lcl_event_handler ,
         o_docking type ref to cl_gui_docking_container,"Docking Container
         o_grid type ref to cl_gui_alv_grid,"Grid
         o_split type ref to cl_gui_easy_splitter_container,"Splitter
         o_top_container type ref to cl_gui_container,   "Top Container
         o_bottom_container type ref to cl_gui_container,"Bottom Container
         o_document type ref to cl_dd_document.          "Document
    module status_0100 output.
    if o_docking is initial.
      set pf-status 'ZSTATUS_0100'.
      set titlebar 'ZTITLE_0100'.
    Creating Objects
      perform create_objects.
    Filling top of page
      perform fill_top_of_page.
    Filling the fieldcatalog table
    perform build_fieldcat. "we already got'em
    Displaying the output
      perform display_output.
    endif.
    Here is the Form Create_objects called in the PBO.
    form create_objects .
    Creating Docking Container
      CREATE OBJECT o_docking
             EXPORTING
               RATIO                       = '95'.
      IF sy-subrc eq 0.
    Splitting the Docking container
        CREATE OBJECT o_split
          EXPORTING
           PARENT            = o_docking
           sash_position     = 25 "Position of Splitter Bar (in Percent)
           with_border       = 0. "With Border = 1 Without Border = 0
      Placing the containers in the splitter
        o_top_container = o_split->top_left_container .
        o_bottom_container = o_split->bottom_right_container .
      Creating Grid
        CREATE OBJECT o_grid
          EXPORTING
            i_parent          =  o_bottom_container.
      Creating the document
        CREATE OBJECT o_document
        EXPORTING
            style  = 'ALV_GRID'.
         CREATE OBJECT gr_event_handler .
      ENDIF.
    endform.                    " create_objects
    form fill_top_of_page .
    data : lv_char(255) type c.
    Calling the methods for dynamic text
       CALL METHOD o_document->add_gap
        EXPORTING
          width      = 140.
      CALL METHOD o_document->add_text
        EXPORTING
          text          = 'Plant Attainment Report '
          sap_fontsize  = 'Large'
          sap_color     = cl_dd_area=>list_key_int
          sap_emphasis  = cl_dd_area=>strong. " For bold
    Display the data
      CALL METHOD o_document->display_document
        EXPORTING
           parent             = o_top_container.
    Calling the method of ALV to process top of page
      CALL METHOD o_grid->list_processing_events
        EXPORTING
          i_event_name      = 'TOP_OF_PAGE'
          i_dyndoc_id       = o_document.
    endform.                    " fill_top_of_page
    form display_output .
      gx_variant-report = sy-repid.
      gs_layout-zebra = 'X'.
      gs_layout-sel_mode ='X'.
      gs_layout-cwidth_opt = 'X'.
      call method o_grid->set_table_for_first_display
        exporting
          is_variant      = gx_variant
          i_save          = 'A'
          is_layout       = gs_layout
        changing
          it_fieldcatalog = it_fldcat
          it_outtab       = <gt_tabletotal>.
        IF sy-subrc <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                       WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        SET HANDLER gr_event_handler->handle_print_top_of_page FOR o_grid .
    endform.                    " display_output 
    Edited by: Shareen Hegde on Jul 23, 2009 5:03 PM (I have no clue why 
    .. doesn't work anymore. My code looks messed up..Sorry folks!

    Nilesh,
    If i put all these create objects inside the      IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.   ENDIF , will I be still able to use ,
    call method o_grid->set_table_for_first_display
        exporting
          is_variant      = gx_variant
          i_save          = 'A'
          is_layout       = gs_layout
        changing
          it_fieldcatalog = it_fldcat
          it_outtab       = <gt_tabletotal>.
         in background ? WIll I not get - OBJECTS_OBJREF_NOT_ASSIGNED   erorr ?
    How can I call the set_table_for_first_display without creating the object reference ?
    Here is my creat object routine.
    form create_objects .
    * Creating Docking Container
    IF CL_GUI_ALV_GRID=>OFFLINE( ) .
      CREATE OBJECT o_docking
             EXPORTING
               RATIO                       = '95'.
      IF sy-subrc eq 0.
    * Splitting the Docking container
        CREATE OBJECT o_split
          EXPORTING
           PARENT            = o_docking
           sash_position     = 25 "Position of Splitter Bar (in Percent)
           with_border       = 0. "With Border = 1 Without Border = 0
    *   Placing the containers in the splitter
        o_top_container = o_split->top_left_container .
        o_bottom_container = o_split->bottom_right_container .
    *   Creating Grid
        CREATE OBJECT o_grid
          EXPORTING
            i_parent          =  o_bottom_container.
    *   Creating the document
        CREATE OBJECT o_document
        EXPORTING
            style  = 'ALV_GRID'.
         ENDIF.
         CREATE OBJECT gr_event_handler .
    endif.
    endform.                    " create_objects

  • "Content is not allowed in trailing section" error in JAXP 1.1

    Hi All,
    I'm trying to write parse XML using JAXP 1.1. I've given input to parser as shown in below code.
    SAXParserFactory factory = SAXParserFactory.newInstance();
    SAXParser parser = factory.newSAXParser();
    parser.parse(new File(args[0], handler);this worked for me. But I've tried to pass java.io.InputStream reference to the overloaded parse() method of SAXParser class, it throwed the following exception
    org.xml.sax.SAXParseException: Content is not allowed in trailing section.
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
    at CMMCompareHelper.main(CMMCompareHelper.java:234)I'm using JAXP 1.1 with J2SE 1..4.2. My requirement is that I get the XML as a String and I've tried to convert it to java.io.ByteArrayInputStream and passed to the SAXParser. It din't work. Code I've written to do this is shown below:
    FileInputStream in = new FileInputStream(new File(args[0]));
    byte[] buf = new byte[512];
    ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
    while(in.read(buf) != -1){
        byteOut.write(buf);                    
    InputStream newCMMStream = new ByteArrayInputStream(byteOut.toByteArray());               
    SAXParser parser = factory.newSAXParser();               
    parser.parse(newCMMStream, handler);          Am I doing something wrong?
    Thanks in advance for any help in this regard.
    Satya

    Hi Satya,
    XML file is suppose to be read as text. Instead of using Byte Streams, use Character Streams or String store
    Eventually, the XML data must be processed as text. If it is fed to parser as a binary-stream, parser will try to interpret bytes with default-runtime character-set. This may lead to corruption of data if the bytes are interpreted in incorrect charcter-set (ex UNICODE, ASCII) or were decoded ( UTF-8, UTF-16) incorrectly from file at the first place.
    Also, we need to ensure that the character-array/stream being fed does not have any garbage due to overallocation of store (array size). The "Content not allowed in the trailing section" error most probably comes due to this.
    If the underlying file to be read is normal ASCII text file, allocating a character array/buffer to the size of the file is good enough. You may also specify UTF-8 as the character-set as UTF-8 subsumes ASCII. Considering the3 file is a simple ASCII text file, here is a code that might provide a valid feed to the parser.
    File file = new File(args[0]);
    Reader fileReader = new BufferedReader(new FileReader(file));
    char[] buffer = new char[file.length()]; \\the length of buffer should be exactly equal to number of bytes in the ASCII text file
    fileReader.read(buffer);
    CharArrayReader characterStream = new CharArrayReader(xmlstring.toCharArray());
    InputSource is = new InputSource(characterStream);
    //feed this input source to the parser.
    In-case the file is not ASCII and the number bytes != number of characters, you cannot just allocate a character buffer of size file-length. You may have to employ some scheme to allocate just accurate size buffer and read everything into it.. A quick dirty scheme could be
    char[] buffer = new char[very-large]; \\the length of buffer should be exactly equal to number of bytes in the ASCII text file
    fileReader.read(buffer);
    buffer = (new String(buffer).trim()).toCharArray();
    Hope this helps !! :)
    Regards,
    Simar SIngh

  • Task ALE/EDI: Error handl cannot be started immediately

    When an IDOC is being created in SAP(3.1I) from an external system(Gentran GIS), it is added with errors status 56. The error text states as 'Task ALE/EDI: Error handl cannot be started immediately
    'The task ALE/EDI: Error handl (no. TS00008068) cannot be started immediately by user GIS'.    
    Can anyone advise where the user 'GIS' need to be added to avoid getting that IDOC error

    Hi Bhaskara,
    This can be caused by several issues:
    1. The user GIS has NO authorization to run workflows or to run this specific workflow task (TS00008068).
    2. The user GIS has NO authorization to run function module EDI_ROLE_FOR_PROCESSING (or when running this function module it will return data in the ACTOR_TAB, which means that the workflow cannot be started by default users).
    3. Within the partnerprofile (transaction WE20) at the specific inbound parameters for the message on the tab "Post processing: permitted agent) an agent has been defined that will not resolve to the user GIS (and therefore this user is NOT allowed to do post processing).
    Most likely issue 3 is here at hand. If this is the case, REMOVE the entry for the agent (or consider to setup an organisational unit/work center and make GIS a member).
    The error, by the way, is an inbound processing error. It is possible that in the ALE layer something has not been defined properly.
    Within the partnerprofile (transaction WE20) at the specific inbound parameters for the message on the tab "Inbound options" and double-click on the entered Process code.
    You must now check the entries here.
    Example:
    If you use an own function module (named in the Identification field) you must set the radio buttons to Processing with ALE service AND Processing by function module. The little button behind the identification field will show some details.
    At least the detail fields (on tab IDoc) Object type, Start event and End event must be filled.
    Default values for these are: IDOCAPPL (=Object type), INPUTERROROCCURRED (=Start event) and ERRORPROCESSCOMPLETD (=End event).
    Of course within ALE you can define different types of process codes (what you like most for your specific handling).
    Hope this helps you a bit on your way.
    Regards,
    Rob.

Maybe you are looking for

  • Music artists

    Hello, I am new here, so please bare with me. I have a 4th gen white 32 gig iPod Touch with the latest update: 5.1.1 I work off of a PC platform using windows 7, I am not new to using iPods, I've had them almost since they have come out. Using iTunes

  • IPad 3 charging time

    My new iPad 3 was charging for 9 hours and the charge went from 9% to just 54%. The iPad was switched on but not being used so the display was off. Do iPad 3's normally take so long to charge.

  • Error code 1 - Creative Desktop Installation

    Hello , I'm having failed the Creative Cloud Desktop installation ( error code 1 ) . can you help me?

  • How do I diagnose   No error     when using RAS SDK ?

    How do I diagnose the "No error." message to figure out what the real error is? I've enabled -crpetrace 7 in the Report Application Server, but the logs it generates don't mean much to me. I 'm attempting to use the SDK via Java.  Some existing repor

  • Changes to mail log-in

    Is it possible to pin the updated log-in for bt mail to my desk top to get direct access ??  Still have the BT yahoo icon loaded from disc when originally set up ages ago so now have to go round in circles to access mail. Tried and failed to find a s