• Fabian Wetzel
  • 2016-10-04
  • 1 min. read

BizTalk Schema Compile Error (With Solution)

Problem: I tried to compile my BizTalk project and all I got was this compile time (!) error:

MySchema.xsd : error BEC2004: Object reference not set to an instance of an object.

Not helpful at all!

Solution: You may not use Max Occurs = 0 anywhere!