How to catch Errors arising before the message enters the scope block in Biztalk

403 Views Asked by At

Biztalk Error

I am having an Biztalk Orchestration,In It I am having a Biztalk Scope and Catch Block in order to catch errors arising inside the scope.I am able to catch error in it whenever there is any error in the corresponding scope shape.

But problem arises when the orchestration fails at the begining of its processing, i.e before entering the scope shape(this happens when there are some special characters in the xml received). I am stuck on this! plz help!!

2

There are 2 best solutions below

1
On

If Biztalk can't determine the message type (usually identifying the xmlns#root), then the message will be suspended and your intended target orchestration won't be touched.

I'm not sure what you mean by special characters though. If the document isn't valid XML, then you either need to ask the source system / partner to fix it, or otherwise would need a custom pipeline to scrub data in the receive port.

If however you mean something like Byte Order Markers, BizTalk should be able to parse these. Check that you have selected XmlReceivePipeline on the port maybe?

2
On

If you drop the same (failing) message into BizTalk without using an orchestration, and only using the same pipeline, do you get the same exception? Is the scope block the first thing in your orchestration?