none
SWIFT Accelerator : ParseError RRS feed

  • Question

  •  

    Hi All,

     

    I use the SWIFT Dissasembler in Microsoft.Solutions.FinancialServices.SWIFT.PipelineComponents.SWIFTDasm assembly of BizTalk SWIFT Accelerator 3.0. I'm on BTS2006 R2 Ent. and i install messagePack 2007.

    But i get a tricky parse Error on SWIFT messages :

     

    <SWIFT_ERROR MessageType="">

    <ParseError ExceptionType="" LineNumber="1" LinePosition="0" MultipleEmptyLines="False" SchemaName="http://schemas.microsoft.com/BizTalk/Solutions/FinancialServices/SWIFT/SWIFTHeader#SWIFTHeader">

    <Message>Unable to decipher the body schema name from the SWIFT header data.</< FONT>Message>

    </< FONT>ParseError>

    <ParseError ExceptionType="" LineNumber="0" LinePosition="0" MultipleEmptyLines="False" SchemaName="">

    <Message>Stray data was found at the end of the message.</< FONT>Message>

    </< FONT>ParseError>

    </< FONT>SWIFT_ERROR>

     

     

    Here is my SWIFT message (MT548). (I get same error for MT543 also). 

     

    Code Snippet

    {1:F01AAAMFRPPAXXX0000000000}{2:O5481110080827AAAFFRPPXXXX00000000000808271110N}{3:{108:0000000000000000}}{4:
    :16R:GENL
    :20C::SEME//AAAB08VCPT010827
    :23G:INST
    :98C::PREP//20080827111025
    :16R:LINK
    :20C::RELA//1193775
    :16S:LINK
    :16R:STAT
    :25D::MTCH//MACH
    :16S:STAT
    :16S:GENL
    :16R:SETTRAN
    :94B::TRAD//EXCH/XPAR
    :35B:ISIN FR0010208488
    GDF SUEZ
    :36B::SETT//UNIT/2680,
    :19A::SETT//EUR104251,46
    :97A::SAFE//0DX000122550
    :22F::SETR//TRAD
    :22H::REDE//DELI
    :22H::PAYM//APMT
    :98A::TRAD//20080826
    :98A::SETT//20080829
    :16R:SETPRTY
    :95P::PSET//AACVFRPPXXX
    :16S:SETPRTY
    :16R:SETPRTY
    :95P::BUYR//AAIIFRCCXXX
    :16S:SETPRTY
    :16R:SETPRTY
    :95R::REAG/SICV/00000113
    :97A::SAFE//L10
    :16S:SETPRTY
    :16S:SETTRAN
    -}

     

     

     

    Any help will be very appreciated Smile

    Regards,

    Nicolas B.

    Tuesday, September 2, 2008 9:19 AM

All replies

  • You should be able to open the project with the SWIFT schema and right-click on it in Visual Studio and click properties. This will let you specify an instance of the file and here you should specify where on disk the message you have copied to this post can be found. Then you can right-click on the schema and go to Validate instance to see the errors that appear. This is a good way to run tests on the schema validation to determine which characters are causing the problems.

     

    Thanks,

     

    Tuesday, September 2, 2008 4:52 PM
    Moderator
  • Hi Ben,

     

    Thanks for this tips.

    I made this test and correct the swift message. (Some fields such as messagePriority were in wrong place). I get a successful validate message now in visual studio.  

    But i still get the same error when i put my corrected message on receive port with SWIFT disassembler pipeline :

     

    "<?xml version="1.0" encoding="Windows-1252"?>

    <SWIFT_ERROR MessageType="">

    <ParseError ExceptionType="" LineNumber="1" LinePosition="0" MultipleEmptyLines="False" SchemaName="http://schemas.microsoft.com/BizTalk/Solutions/FinancialServices/SWIFT/SWIFTHeader#SWIFTHeader">

    <Message>Unable to decipher the body schema name from the SWIFT header data.</Message>

    </ParseError>

    <ParseError ExceptionType="" LineNumber="0" LinePosition="0" MultipleEmptyLines="False" SchemaName="">

    <Message>Stray data was found at the end of the message.</Message>

    </ParseError>

    </SWIFT_ERROR>"

     

    Here is my event log :

     

    Event Type: Error
    Event Source: BizTalk Accelerator for SWIFT
    Event Category: None
    Event ID: 4096
    Date:  9/3/2008
    Time:  6:12:57 PM
    User:  N/A
    Computer: XXXXX
    Description:
    Publishing failed message to MessageBox. Details: The single message of type -1, whose Interchange ID is {D8BB7299-1B81-4D61-9485-FFA2684B7FF2}, has been marked as A4SWIFT_Failed=True in the MessageBox database by the SWIFT Disassembler.
    This message failed with 2 parse errors, 0 XML validation errors, and 0 BRE validation errors.
    Error details can be extracted from the failed message in the MessageBox database by subscribing to messages where A4SWIFT_Failed=True.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Whereas here are properties of my receive pipeline :

    XMLValidation = False

    BREValidation = False

     

    Strange ?

     

    Regards,

    Nicolas  

    Wednesday, September 3, 2008 4:23 PM
  • Be sure to check if DestinationAddress and LTAddress follow the pattern of six uppercase letters followed by six letters or numbers
    Wednesday, August 5, 2009 12:06 PM