Showing posts with label BizTalk Mapper. Show all posts
Showing posts with label BizTalk Mapper. Show all posts

Saturday, 4 December 2010

Issue: Schema not found in BizTalk Type Picker of a BizTalk Map

Today I had a different issue when in I started to work on a BizTalk Sample created by a colleague.
It has a source and destination schema, which are to be mapped.



A new map is then created and a source schema is added. When I clicked on Select Destination Schema, I was not able to find the destination schema in the BizTalk Type Picker of the BizTalk Map.


There are no build errors and every thing looked fine.

The culprit which led to this is the Build Action property of the schema.

This property will be shown when you select the schema in the Solution Explorer.



If this property is set to None, it will not be included in the Build and hence will not be able to use that in BizTalk Tools.

I made the Build Action to BTSCompile and it showed up in the BizTalk Type Picker of the BizTalk Map.



The reason being for this is that the schema was not created using BizTalk Schema Editor rather using an external tool. Hence when this schema was imported to BizTalk Project, its Build Action property was set to None.



So, care should be taken for the schemas that are created outside BizTalk Schema Editor.

Hope it helps.

- Shiv

Sunday, 21 November 2010

Auto Mapping feature in BizTalk Mapper

Many of us are not aware that BizTalk Mapper can map the Source Fields to Destination Fields automatically.

There are two options available for Auto Linking.
1. Structure
2. Node Name

This can be seen by clicking on the Grid between the Source and Destination schemas and opening the properties.


Auto Link by Structure:

This will map source fields with destination fields one by one (structure wise) without looking for the name of the node.

This can be achieved by holding SHIFT Key and dragging from the source Root node to the destination Root node




Auto Link by Node Name:

This will map the Source node to the matching destination node.

This can also be achieved by setting AutoLink By Property to Node Name and holding SHIFT Key and dragging from the source Root node to the destination Root node




- Shiv


Web Counters