merge replication fails on XML index
===

On the following table, with Merge Replication enabled, attemps to build a snapshot fail with this error:

    Could not find PRIMARY XML index named 'xmlprim_Attributes' on table 'dbo.GDB_ITEMRELATIONSHIPS' 

However, the index is there, and working fine, not fragmented, and in fact, the field that the index is built on contains null in all of the columns. 

Here is the table and index:


    CREATE TABLE [dbo].[GDB_ITEMRELATIONSHIPS](
    	[ObjectID] [int] NOT NULL,
    	[UUID] [uniqueidentifier] NOT NULL,
    	[Type] [uniqueidentifier] NOT NULL,
    	[OriginID] [uniqueidentifier] NOT NULL,
    	[DestID] [uniqueidentifier] NOT NULL,
    	[Properties] [int] NULL,
    	[Attributes] [xml] NULL,
     CONSTRAINT [R3_pk] PRIMARY KEY CLUSTERED 
    (
    	[ObjectID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON, FILLFACTOR = 75) ON [PRIMARY]
    ) ON [PRIMARY]
    
    GO

    CREATE PRIMARY XML INDEX [xmlprim_Attributes] ON [dbo].[GDB_ITEMRELATIONSHIPS] 
    (
    	[Attributes]
    )WITH (PAD_INDEX  = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON)
    GO


