Error message in Integration Manager for Microsoft Dynamics GP 10.0: "Object reference not set to an instance of an object"


Symptoms


When you try to open the Query Relationship window in Integration Manager for Microsoft Dynamics GP 10.0, you receive the following error message:
Object reference not set to an instance of an object


Source: Microsoft.Dynamics.GP.IntegrationManager.frmRelationships.SetNextPosition

Message: Object reference not set to an instance of an object

Number: -2147221462



Call Stack:



frmRelationships.SetNextPosition

frmRelationships.GetQueryDimensions

frmRelationships.DisplayQueries

frmRelationships.Form_Activate

Cause


This issue occurs when you remove an integration source file before you remove the query relationship.

Resolution


To resolve this issue, follow these steps:
  1. Remove all the integration sources on the integration except the main source.
  2. Add one source back to the integration.
  3. Open the Relationships window, and then set the relationship.
  4. Repeat steps 2 and 3 until all the sources are on the integration and until the relationship is linked.