BizTalk Troubleshooting: Specify a valid .NET type name for this root node
Issue
While integrating PeopleSoft 9.2 Integration Broker HTTP to FlexNet MES using MSMQ I encountered this error:
"Specify a valid .NET type name for this root node. The current .NET type name of this root node is invalid (it is a reserved BizTalk Keyword or is an invalid C# identifier)."
Cause
Turns out the issue was the FlexNet schema root node has periods on its name, and BizTalk do not like that a bit. When trying to create .NET types behind the scenes it cannot deal with the periods.
Solution
The fix is to change the RootNode TypeName property of the rootnode. Visual Studio will default that property to the Root Node name. If we change the periods to underscores, or otherwise remove them, BizTalk can now create .NET types and the issue goes away.
See Also
Another important place to find a huge amount of BizTalk related articles is the TechNet Wiki itself. The best entry point is BizTalk Server Resources on the TechNet Wiki.