Duco expects Swift messages that it receives to conform to Swift standards.
On occasion, they are generated by third party systems and contain unsupported tags or don't conform to industry standards.
The error that Duco generates then is a generic one: There was an error while trying to parse the MT535 message.
SWIFT messages, at high level, are expected to follow the following block structure:
Block name
|
Format
|
---|---|
Basic header | {1:...} |
Application header | {2:...} |
User header | {3:...} |
Text | {4:...} |
Trailer | {5:...} |
When they are concatenated in a message, the blocks appear as: {1:...}{2:...}{3:...}{4:...}{5:...}
Each block of the message must end with a } , and the entire message must end with - }.
Characters such as quotes, LF and CR could disrupt it, like in below example, which would cause the message not to be read.
"-}{5:{CHK:B52CE76C6495}{PDE:}}{S:{MDG:78CD76719E31C0A76D02FAF55071871591CB39B6BEF8F98B067A9531425CDA54}}"