Error: Add new BTAHL7 Projects, Object Reference not set to an instance of an Object

Sometimes, when you try to add BTAHL7 Common Project to your solution you may encounter with the error “Object Reference not set to an instance of an Object”.

I am not sure how to resolve this error, but there is a simple alternative to this Error.

 This error will fail to add the necessary common schemas (for eg: datatypes_25.xsd, segments_25.xsd, tablevalues_25.xsd) to your solution.

All of these schemas would generally be available in the following path. <drive>:\Program Files\Microsoft BizTalk 2010 Accelerator for HL7\Templates\Schemas\V2.X\

So, you can Create a new Empty BizTalk Project, Copy these common schemas to your project folder and Add them to the Project using Add Existing Item.

Please post if you have a solution to resolve this.

-Shiv

Web Counters
  • This error occurs when you try to create the BTAHL7 Common Project within a folder other than your solution’s root folder, e.g. if you try to create your BTAHL7 Common Project within C:ProjectsMyHL7SolutionProjects. If you create the project in the solution’s root folder (e.g. C:ProjectsMyHL7Solution) then you don’t get this error.

    The workaround is to create project in the solution’s root folder, save it, exclude it from the solution, copy the project folder over to where you want it (e.g. C:ProjectsMyHL7SolutionProjectsBTAHL7V2XCommon) and then add an existing project, picking it up from its new location. If your solution is already source controlled then you might want to create the BTAHL7 Common Project in a dummy solution and then copy it over to the folder where you want it so as to avoid a fight with source control.

BizTalk360
BizTalk Server

Over 500+ customers across
30+ countries depend on BizTalk360

Learn More
Serverless360
Azure

Manage and monitor serverless
components effortlessly

Learn More
Atomicscope
Business Users

Monitor your Business Activity in iPaaS
or Hybrid integration solutions

Learn More

Back to Top