Steps to Reproduce:

1. Upgrade Sage CRM 7.1 SP2 to Sage CRM 7.2 B
2. Install Sage 300 ERP v2012 Integration for CRM 7.2
3. Add/Insert new A/R customer from Sage 300


Actual result (please include error message):

Specific error: System.NullReferenceException: Object reference not set to an instance of an object. at AccpacCRMWS.Link.ParseXML() at AccpacCRMWS.Link.UpdateCompanyEntity()

Modify/Update A/R customer from Sage 300 is working fine.

Expected result: Added A/R customer will be inserted to Sage CRM 7.2 B.

Workaround: Modify the triggers EmailLink_InstUpd and PhoneLink_InstUpd to be the same as a clean 7.2 B install e.g.

---------------------------------------------------------------

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO

ALTER TRIGGER [dbo].[EmailLink_InstUpd] ON [dbo].[EmailLink] --WITH ENCRYPTION
INSTEAD OF UPDATE
AS
 SET NOCOUNT ON;
 
 IF EXISTS (
  SELECT 1
  FROM inserted ins
  INNER JOIN deleted del ON ins.ELink_LinkID = del.ELink_LinkID
  WHERE (ins.ELink_EntityID <> del.ELink_EntityID) OR (ins.ELink_RecordID <> del.ELink_RecordID))
 BEGIN
  RAISERROR ('You are not allowed to modify any of the following columns: ELink_EntityID, ELink_RecordID', 16, 1);
 END
 ELSE -- perform original update
 BEGIN
  UPDATE EmailLink
  SET ELink_LinkID = ins.ELink_LinkID,
   ELink_CreatedBy = ins.ELink_CreatedBy,
   ELink_CreatedDate = ins.ELink_CreatedDate,
   ELink_UpdatedBy = ins.ELink_UpdatedBy,
   ELink_UpdatedDate = ins.ELink_UpdatedDate,
   ELink_TimeStamp = ins.ELink_TimeStamp,
   ELink_Deleted = ins.ELink_Deleted,
   ELink_EmailId = ins.ELink_EmailId,
    ELink_Type = ins.ELink_Type
  FROM EmailLink link
  INNER JOIN inserted ins on ins.ELink_LinkID = link.ELink_LinkID
 END;
 
 SET NOCOUNT OFF;

---------------------------------------------------------------
More info:
The following upgrade paths will cause this problem.
Sage CRM Version 7.1 SP2 -> Sage CRM 7.2 B
Sage CRM Version 7.1 SP2 -> Sage CRM 7.2 A -> Sage CRM 7.2 B

However, if we install Sage CRM 7.2 B with a clean install Sage 300 ERP Integration, everything work as expected.