BizTalk Server Tutorial

BizTalk Server Concepts and Common Errors

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

June 22, 2011 - Posted by | Common Errors & Solutions | ,

1 Comment »

  1. 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:\Projects\MyHL7Solution\Projects. If you create the project in the solution’s root folder (e.g. C:\Projects\MyHL7Solution) 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:\Projects\MyHL7Solution\Projects\BTAHL7V2XCommon) 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.

    Comment by Daniel Hester | May 10, 2012 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: