Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A4SWIFT BATCH MESSAGES

101 views
Skip to first unread message

Angelo Laris

unread,
Apr 30, 2007, 2:18:00 AM4/30/07
to
Hello Everyone,

I am having great difficulty handling batch SWIFT Messages and was wondering
if anyone can help.

Basically I am trying to process a MT103 message which has a header record
of an MT021 (as known as a MTS21 in FRRSchema.dll).

Batch processing involves splitting the message up which has a seperator of
$ character.

So I have the following

[MTS21][MT103]$[MTS21][MT103]$[MTS21][MT103]

Now notice there is no $ character after the last sequence.

So to handle this message my SWIFT Dissassembler is as follows.

Fragmentation: True
Inbound Debatching: True
Message Header Schema: .....SWIFT.FrrSchemas.MTS21_FIN_ACKNAK
Message Trailer Schema: Dollar

Now to handle the Message Trailer Schema of Dollar I have a component in the
pipeline that appends a $ sign.

So the input maybe [MTS21][MT103]$[MTS21][MT103]$[MTS21][MT103] but by the
component appending a $ sign it becomes
[MTS21][MT103]$[MTS21][MT103]$[MTS21][MT103]$ which the disassembler does
receive.

This is not working (unparsed message) and I was wondering if anyone else in
the Biztalk SWIFT community has done this.

I can provide the dollar.xsd and sample messages upon request.

Any help would be appreciated.

Thanks


Angelo Laris

Jay Kinker

unread,
May 8, 2007, 6:25:26 AM5/8/07
to
Hi Angelo,

First of all try processing 1 message per file. One you are able to process
1 Msg per file your solution is good and you may only be missing something
small.

A question - did you try [MTS21][MT103]$[MTS21][MT103]$[MTS21][MT103]$ i.e.
with $ in the end. If you are using trailer schema, BTS will expect trailer
for the last message as well.

I am assuming that your trailer schema is good.

In my case I am able to do batching for [MT103]$[MT103]$[MT103]$
with below property combination for A4SWIFT DisAssembler

Fragmentation = True
Inbound Debatching = True
Message Trailer Schema = Select the flat file schema you have created
SWIFT Header Schema =
Microsoft.Solutions.FinancialServices.SWIFT.RuntimeSchemas.HeaderSchema,
Microsoft.Solutions.FinancialServices.SWIFT.RuntimeSchemas, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35


Regards,

Jay Kinker__
http://geekswithblogs.net/JayKinker

---------------------------------------------------------------------------------------

Angelo Laris

unread,
May 9, 2007, 12:14:00 AM5/9/07
to
Hello Jay,

Thank you for your response.

Because this use to work in BizTalk 2004 I investigated further. I using a
virtual machine reinstalled windows server 2003 - SQL2005 - VS2005 - Biztalk
2006 - A4SWIFT 2.3.

This worked fine and I was able to process batch messages.

But when I upgraded A4SWIFT2.3 with sp1 I had this problem occur on the
machine.


Event Type: Error
Event Source: BizTalk Accelerator for SWIFT
Event Category: None
Event ID: 4099
Date: 9/05/2007
Time: 1:41:54 PM
User: N/A
Computer: SAA60FMF43
Description:
Error during application execution. The error message is : Unable to cast
object of type 'Microsoft.BizTalk.Streaming.XmlTranslatorStream' to type
'Microsoft.BizTalk.Streaming.MarkableForwardOnlyEventingReadStream'.

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

I have no idea why this is now no longer working with A4SWIFT2.3 sp1 as I
have been able to get the batch messages to work with A4SWIFT 2.3 standalone.

Any ideas anyone.

Thanks in advance

Angelo

Amit Shukla

unread,
Sep 11, 2007, 6:01:24 AM9/11/07
to
please install hot fix KB Article no. 930949
and 927110 of Swift V 2.3 and follow your procedure .
The message will pass correctly.

lingarajdanappagoudar

unread,
Jul 30, 2008, 5:45:50 AM7/30/08
to
Hi Angelo,

I have come across the same scenario, could you plzz help me out to achieve the same?.

[MTS21][MT103]$[MTS21][MT103]$[MTS21][MT103]...i am getting file like this. need to debatch single files.

I have written pipeline code to append '$' at the end of message.

Your early response is appreciated.

Regards,
Raj..the King!

Jay Kinker

unread,
Jul 30, 2008, 11:08:04 AM7/30/08
to
Can you copy-paste the text of actual message you are getting...

If you have $ between every MT then you will be able to split them and
process without any custom pipeline.

Regards,

Jay Kinker__

Lingaraj Danappagoudar

unread,
Jul 31, 2008, 5:07:01 AM7/31/08
to
Jay,

Here is my sample ack/Nak file seperated by $.

{1:F21LDANGB2LATOL1598374047}{4:{177:0711091424}{451:0}}{1:F01LDANGB2LATOL1598374047}{2:I300RBOSGB2LXTCMN}{4:
:15A:
:20:1537735/1
:22A:NEWT
:22C:RBOS2L6993SHLL2L
:82A:LDANGB2LTOL
:87A:RBOSGB2LTCM
:15B:
:30T:20071109
:30V:20071113
:36:0,6993
:32B:EUR547110,72
:56A:CHASDEFX
:57A:/22628924
CHASGB2L
:33B:GBP382594,53
:57A:RBOSGB2L
-}{5:{CHK:3270CE43364E}}${1:F21LDANGB2LATOL1598374047}{4:{177:0711091424}{451:0}}{1:F01LDANGB2LATOL1598374047}{2:I300RBOSGB2LXTCMN}{4:
:15A:
:20:1537735/1
:22A:NEWT
:22C:RBOS2L6993SHLL2L
:82A:LDANGB2LTOL
:87A:RBOSGB2LTCM
:15B:
:30T:20071109
:30V:20071113
:36:0,6993
:32B:EUR547110,72
:56A:CHASDEFX
:57A:/22628924
CHASGB2L
:33B:GBP382594,53
:57A:RBOSGB2L
-}{5:{CHK:3270CE43364E}}

Jay Kinker

unread,
Jul 31, 2008, 5:59:02 AM7/31/08
to
I believe you are already able to process multiple messages seperated by $.
We have had one other discussion thread about it.

I have not worked with this situation but here is how I would proceed:

Looking at the data, only header information has changed. So, most of things
are already done at your end. I would create one additional Flat File Schema
to acomodate it.

You must have already created similar Flat File Schema for Footer information.

So, create a FF SChema required for additional info and assign it to
"Message Header Schema" property of A4SWIFT DSM.

Please let me know if this solves your problem...


Regards,

Jay Kinker__
http://geekswithblogs.net/jaykinker
--------------------------------------------

Lingaraj Danappagoudar

unread,
Jul 31, 2008, 8:58:00 AM7/31/08
to
Jay,

For simple MT's, i have created FF scema(refered in disassembler message
trailer schema property) which will split individual file by reading $ symbol.

this has already been discussed and working fine.

What would be the FF schema structure for the File which has got extra
Ack/Nak header and where do i need to refer it..i mean against which
disassembler property?

Do i need to refer the same FF schema created earlier or i have create
another FF schema of the same structure i.e single field($)?

Regards,
Raj..the King!

Lingaraj Danappagoudar

unread,
Jul 31, 2008, 9:14:03 AM7/31/08
to
Jay,

We have a schema called MTS21(Category 0) which will validate only first
header i.e Ack/Nak.

I used this schema in disassembler properties(swfit header schema as well as
Body header schema)...in both the cases i am not getting an expected result.

Regards,
Raj..the King!

Osvaldo_Sousa

unread,
Aug 28, 2008, 5:58:01 AM8/28/08
to
Hi Lingaraj,

Have you found the soluction for this problem?

I have a very similar problem with MT535 messages
I am receving [MTS21][MT535]$[MTS21][MT535]$[MTS21][MT535]

I have configured the SWIFT disasembler with the following properties
Message Header Schema - [MTS21]
Message Trailer Schema - FF Schema (Schema - Child Delimiter Type=Hex
Order=Postfix Delimiter 0x0A 0x0D; Root - Delimiter type=char Order=Postfix
Delimiter=$)
SWIFT Interchange Schema - [MT535]

This configuration successful outputs the first [MT535] messages but it
fails to output the last message. The last message is outputed as an unparsed
message with an error saying that there was an unexpected end of stream while
looking for $

How did you manged to solve this issue?

Regards
Osvaldo

Lara

unread,
Sep 10, 2008, 4:47:48 AM9/10/08
to
Hi,
Just curious, I've tried searching the net and found this link.
May I know what does RBOSGB2LTCM mean.
This is important.
Appreciate your reply on this.
Thanks a lot.

--
NNTP.hk - (^(oo)^)
http://www.nntp.hk/web/

Lingaraj Danappagoudar

unread,
Sep 26, 2008, 3:14:00 AM9/26/08
to
Hi Osvaldo,

This is very simple and straight forward solution. What i did is, just
created custom pipeline to add '$' at the end of message as swift expects '$'

at the end of message.

If you wish i can share the custom pipeline code to resolve your issue.

Regards,
Lingaraj
+91-9900189235

Lingaraj Danappagoudar

unread,
Sep 30, 2008, 5:16:22 AM9/30/08
to
Hi Lara,

I am not clear what are you looking for. Could you please elaborate it and
let me know..then only i am able to help you out with solution.

Regards,
Raj..the King!

0 new messages