none
Errors validating SLSRPT D96A RRS feed

  • Question

  • Hi all,

    I learning BizTalk (2013) at the moment. I have already done some simple maps, moslty flat files. I'm now trying to process an EDI message (EDIFACT SLSRPT D69A)

    So what have I done

        • Created a map
        • Added the EDIFACT SLSRPT D69A (delivered with BizTalk)
        • Added a schema for database
        • Created a simple mapping for a simple value to the outpur.

        I'm trying to test the map, but I'm overthrown with (validation)errors.. I have set the Testmap inout to Native, and the instance to a SLSRPT file I received for testing.

        When executing "test map" I get an "instance properties window" in which I can configure seperators and such.. As far as I can see these are correct. I only changed the segment terminator suffix to CR LF. (this gives me the least errors. When changing to another I get arround 60 validation errors)

        Errors I receive:

        • Error 3 Native      Parsing Error: Non Segment level  : [4] Invalid Segment Terminator
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
        • Error 4 Native      Parsing Error: Non Segment level  : [12]      EFACT_D96A_SLSRPT\BGM\C002\C00201\ The 'C00201' element has an invalid      value according to its data type.
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
        • Error 5 Native      Parsing Error: Non Segment level  : [12]      EFACT_D96A_SLSRPT\LOCLoop1\LINLoop1\PRI\C509\C50901\ The 'C50901' element      has an invalid value according to its data type.
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1 
        • Error 6 Native      Parsing Error: Non Segment level  : [12]      EFACT_D96A_SLSRPT\LOCLoop1\LINLoop1\PRI\C509\C50901\ The 'C50901' element      has an invalid value according to its data      type.MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1 
        • Error 7 Native      Parsing Error: Non Segment level  : [12] EFACT_D96A_SLSRPT\ The      element 'EFACT_D96A_SLSRPT' in namespace      'http://schemas.microsoft.com/BizTalk/EDI/EDIFACT/2006' has invalid child      element 'UnrecognizedSegment'. List of possible elements expected:      'http://schemas.microsoft.com/BizTalk/EDI/EDIFACT/2006:LOCLoop1 UNT'.
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
        • Error 8 Native      Parsing Error: Segment level  : Segment ID - BGM : Position - 2 :
               [12] Invalid value in data element
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
        • Error 9 Native      Parsing Error: Segment level  : Field Error : Segment ID - BGM :      Field Position - 2 : Current value - 73E : [12] Invalid value in data      element
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
        • Error 10 Native      Parsing Error: Segment level  : Segment ID - PRI : Position - 14 :      [12] Invalid value in data element
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
        • Error 11 Native      Parsing Error: Segment level  : Field Error : Segment ID - PRI :      Field Position - 2 : Current value - NTP : [12] Invalid value in data      element
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
        • Error 12 Native      Parsing Error: Segment level  : Segment ID - PRI : Position - 17 :      [12] Invalid value in data element
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
        • Error 13 Native      Parsing Error: Segment level  : Field Error : Segment ID - PRI :      Field Position - 2 : Current value - GRP : [12] Invalid value in data      element
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
        • Error 14 Native      Parsing Error: Segment level  : Segment ID -
               PR : Position - 23 : [15] Use of segment, data-type or segment not
               supported in this position
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
        • Error 15 Native      Parsing Error: Segment level  : Segment ID -
               PR : Position - 23 : [72] Unrecognized segment ID
                C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
      • Error 16 Native      Parsing Error: Segment level  : Segment ID - PRI : Position - 26 :      [12] Invalid value in data element
              C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1
    • Error 17 Native      Parsing Error: Segment level  : Field Error : Segment ID - PRI :      Field Position - 2 : Current value - GRP : [12] Invalid value in data      element
            C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1 

    Here is a copy of the SLSRPT file

    UNB+UNOA:2+8714253000008:14+5499954391701:14+130214:1126+13021411260015'
    UNH+756506+SLSRPT:D:96A:UN:EAN004'
    BGM+73E::9+756506+9'
    DTM+137:201302141126:203'
    DTM+90:20130214:102'
    DTM+91:20130214:102'
    NAD+SU+5499954391701::9'
    NAD+BY+8714253000008::9'
    CUX+2:EUR:10'
    LOC+162+8714253000015::9+:::0508'
    DTM+356:20130214:102'
    LIN+1++0027131086871:EN'
    PIA+1+050819005700000:IN'
    RFF+SS:00000000010200000004498012422'
    PRI+NTP:68.8::RTP'
    PRI+AAA:56.86::RTP'
    PRI+AAB:71.07::RTP'
    PRI+GRP:86::RTP'
    QTY+153:1:PCE'
    LIN+2++0716170101378:EN'
    PIA+1+908101137600000:IN'
    RFF+SS:00000000001300000010088012578'
    RFF+ABO:01000000000001100000002220061119'
    PRI+NTP:36.5::RTP'
    PRI+AAA:30.17::RTP'
    PRI+AAB:30.17::RTP'
    PRI+GRP:36.5::RTP'
    QTY+153:1:PCE'
    UNT+28+756506'
    UNH+756543+SLSRPT:D:96A:UN:EAN004'
    BGM+73E::9+756543+9'
    DTM+137:201302141126:203'
    DTM+90:20130214:102'
    DTM+91:20130214:102'
    NAD+SU+5499954391701::9'
    NAD+BY+8714253000008::9'
    CUX+2:EUR:10'
    LOC+162+8714253000022::9+:::0508'
    DTM+356:20130214:102'
    LIN+1++0027131075769:EN'
    PIA+1+050819001200000:IN'
    RFF+SS:00000000003300000008748020157'
    PRI+NTP:21.6::RTP'
    PRI+AAA:17.85::RTP'
    PRI+AAB:22.31::RTP'
    PRI+GRP:27::RTP'
    QTY+153:1:PCE'
    LIN+2++0027131019091:EN'
    PIA+1+050819003100000:IN'
    RFF+SS:00000000003300000008748020157'
    PRI+NTP:33.6::RTP'
    PRI+AAA:27.77::RTP'
    PRI+AAB:34.71::RTP'
    PRI+GRP:42::RTP'
    QTY+153:1:PCE'
    UNT+27+756543'
    UNZ+2+13021411260015'

    Basically.. I dont know where to start..

    Any help or pointers would be appreciated

    ThanksPatrick

    Thursday, June 26, 2014 2:28 PM

Answers

  • Hi Patrick,

    First of all, when validating this instance in Visual Studio remove the UNB and UNZ segment.
    These segments are not included in your EDI schema and therefor you will get errors on those segments.The UNB segment will be generated at runtime based on your party and agreement settings.

    Most of the other erros are based on invalid data according to the XSD.
    Let us take a look at following error:

    Error 4 Native      Parsing Error: Non Segment level  : [12]      EFACT_D96A_SLSRPT\BGM\C002\C00201\ The 'C00201' element has an invalid      value according to its data type.
          C:\Users\adm-xxx.DOM-ROOT-MSH\Desktop\BYKO_SLSRPT_EDIFACT_layout7_new.txt 1 1

    If you open the XSD and navigate to the corresponding element (bold), you will see that is has an enumeration specified and 73E (specified in your input file) is not in that enumeration.
    You can modify this enumeration if you and your partner agree on the modification of the standard schema.


    Glenn Colpaert - MCTS BizTalk Server - Blog : http://blog.codit.eu

    Monday, June 30, 2014 7:40 PM