Recently I try to test a BizTalk map the test fails and for my surprise it gives me the following error:
“Cannot load source/destination schema: “schema_name”. Either the file/type does not exist, or if a project dependency exists, the dependent project is not built.”
- For some reason the BizTalk designer loses the schema reference and it is a little hard trying to “trick” the designer into remembering the schema’s location.
- Unload/load project shortcuts to sort of refresh the VS shell with the references.
- Make a new importation of the schemas to the map.
If you are working with BizTalk Server 2009 and Visual Studio 2008, there are some issues that can cause this problem:
- Map looses information about schemas
I have seen several times, that even after choosing source- and destination schema for a map and dragging a couple of links in the map and saving it, then at compile time, I get an error about the map not having source- and destination schemas. So I need to choose them again, and redo all the links, because they have magically disappeared. This happens for maps that uses both schemas from the same project as schemas from referenced projects.
- Auto save a map before schemas are chosen
When you add a new map then at some point VS.NET auto saves the map, but if this happens before you have chosen both the source and destination schema you suddenly get an error, which you really do not expect, because you weren’t doing anything at the time of the error. This also occurred in previous versions of BizTalk.
Tags: BizTalk | Map | Errors and Warnings, Causes and Solutions