Posts

Showing posts with the label BizTalk Map

Is it possible to have Map Chaining on the Port Level

Image
Firstly, let's understand what is Map chaining: The process of producing multiple documents from a single document by executing several maps to 07anslate the single document. So is it possible on the port level? This has two answers, Yes and No depending upon how and where it is applied.  To find out the working, I created a project with three document schema (Item, Product and Article) and a couple of maps and deployed it: 1. Map1: ItemToProduct 2. Map2: ProductToArticle Scenario 1: Map chaining on a single port (Receive/Send Port) In order to test map chaining on a single port, I configured ReceivePort with two maps as shown below and a send port configured to receive Article message. After dropping the message at the receive location, the message was suspended. To check the what processing was done on the message before suspending, clicked on the Message Flow and it was clear that the ItemToProduct map was applied and the message was su...

Can We Have Multiple Maps With Same Source Schema On The Port

Image
Is it possible to have more than one map with same source schema on a port? There are two answers for it Yes and No. Why Yes -- BizTalk won't stop you from configuring multiple maps with the same source. As it's perfectly legitimate to have a port associated with multiple maps. Why No -- Irrespective of how many maps you have configured on the port, only the map which matches the MessageType  of the message will be executed. And as soon as the first matching map is found, other maps are neglected. As the relation between message and map is 1:1, a message can be processed by a single map only (If and only if it's source type matches). Let's consider this through a scenario: We have three maps created with the same source schema, but different destination schema as shown below: To test we deploy the application, and configure the receive port with all the three maps, as shown below: An Item message was dropped in the receive location and the out...