BizTalk Document Mapping – Organizing Maps

  • Sandro Pereira
  • Jul 20, 2009
  • 4 min read

As any BizTalk developer knows, what starts as a simple “drag-and-drop” map can quickly spiral into a “spaghetti” of links that is impossible to debug. When dealing with large schemas, organizing your mapping logic isn’t just a “nice-to-have”—it’s a requirement for enterprise-grade development.

If you are dealing with large maps, they can become very complex and therefore very difficult to maintain and read.

📝 One-Minute Brief

Managing large, complex BizTalk maps can be a nightmare for maintenance and readability. This post explores how to stay organized using two essential BizTalk Mapper features: Grid Pages for segmenting logical mapping groups and Link Labels for making functoid relationships crystal clear. Learn how to rename, reorder, and delete grid pages to keep your transformation logic professional and easy to navigate.

To minimize this problem, BizTalk Server provides two main features to aid in the readability and maintainability of maps:

  • Grid Pages: You can segment groups of links onto different grid pages. BizTalk allows you to create, remove, delete, and order grid pages. You can see this like different pages or segments of links of the map. By default, the map file is created with one grid page named “Page 1”.
    • Standard Practice: Create separate pages for Header Data, Line Items, and Address Details.
    • Pro Tip: In modern BizTalk versions (2010 onwards), the old 20-page limit is gone. Don’t be afraid to create as many pages as you need to keep each view “scannable.”
  • Link Labels: By default, a functoid will show XPath designation if linked directly to a destination field, or it will show the name of the previous functoid if it’s linked from another functoid. However, if the input links to a functoid are labeled, then the Label property of the link will be shown. Therefore, it will be easier to read.
    • The Solution: Use Link Labels. Right-click any link, go to Properties, and set the Label.
    • Result: The Mapper will show your descriptive label instead of a technical path, making the logic immediately clear to the next developer (or your future self).

How to Manage Grid Pages

  • To add a grid page:
    • On the BizTalk menu, click Add Page. You can also right-click an existing grid page name and click Add Page from the shortcut menu.
  • To rename a grid page
    • On the BizTalk menu, click Rename Page. You can also right-click an existing grid page name and click Rename Page from the shortcut menu, or double-click an existing grid page name
    • Type a new name, and then press ENTER.
  • To reorder grid pages
    • On the BizTalk menu, click Reorder Pages. You can also right-click an existing grid page name and click Reorder Pages from the shortcut menu
    • In the Reorder Pages dialog box, select the grid page you want to move, then click the Up arrow or Down arrow to change the relative position of the grid page
    • Repeat step 2 for other grid pages, as appropriate, and then click OK.
  • To delete a grid page
    • Select the grid page you want to delete, and then on the BizTalk menu, click Delete Page. You can also right-click an existing grid page name and click Delete Page from the shortcut menu
    • In the confirmation dialog box, click Yes.

A well-organized map reduces the time spent on bug fixing and makes peer reviews much faster. By spending an extra 30 seconds to name a page or label a link, you save hours of frustration later.

Take Your Mapping Skills to the Next Level

If you found these tips on organizing maps helpful, you will love my comprehensive guide: BizTalk Mapping Patterns and Best Practices.

This 400-page eBook is designed specifically for BizTalk developers to make their day-to-day lives easier. It serves as a complete “recipe book” for developing effective, robust, and organized transformations.

Inside the book, you’ll find:

  • Deep dives into how the BizTalk Mapper engine works.
  • Solutions for the most common real-time mapping scenarios.
  • Proven best practices to optimize performance and maintainability.

👉 Download your free copy of the eBook here

Hope you find this helpful! If you liked the content or found it useful and would like to support me in writing more, consider buying (or helping to buy) a Star Wars Lego set for my son. 

Thanks for Buying me a coffe
Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

Leave a Reply

Your email address will not be published. Required fields are marked *

The Ultimate Cloud
Management Platform for Azure

Supercharge your Azure Cost Saving

Learn More
Turbo360 Widget

Back to Top