Merge Replication Error When Initialising subscription

I have a SQL server 2005 server with a merge publication of 6 articles all of which are tables which is also the distributor. I have two existing subscriptions one from a SQL 2005
Server and one from a SQL Server 2008 R2 Server both of which are working fine on this publication. I am trying to setup a third subscription to another SQL Server 2008 R2 server, the only difference with this server is that it is a named instance. I have
forced the port to 1433, and created an alias on the publisher connectivity is not an issue or at least i don't think so.
when I try to initialise the subscription from a new snapshot I get the below error;
Error: 14151, Severity: 18, State: 1.
Replication-Replication Merge Subsystem: agent failed. No subscription is on this publication or article.
I've changed the agent profile and turned on verbose logging and output the results to a file the snapshot delivery is failing on the below for the first table;
call sys.sp_MSsetup_identity_range (?,?,?,?,?,?,?,?)
I've checked the subscriber and the table does indeed get dropped and created, permissions / routes don't seem to be an issue. I've included some of the verbose logging output below.
2012-01-11 12:05:40.684 Microsoft SQL Server Merge Agent 9.00.3042.00
2012-01-11 12:05:40.700 Copyright (c) 2005 Microsoft Corporation
2012-01-11 12:05:40.716 Microsoft SQL Server Replication Agent: replmerg
2012-01-11 12:05:40.716 
2012-01-11 12:05:40.731 The timestamps prepended to the output lines are expressed in terms of UTC time.
2012-01-11 12:05:40.747 User-specified agent parameter values:
-Publisher PubServerName
-PublisherDB UserDBName
-Publication MtoC_M
-Subscriber SubServerName
-SubscriberDB UserDBName
-Distributor PubServerName
-DistributorSecurityMode 1
-Continuous
-OutputVerboseLevel 4
-Output G:\CMcReplicationLogging\OUTPUT.TXT
-XJOBID 0x5FFBC73C3A4A494A9E10C369696B1C72
-XJOBNAME PubServerName-UserDBName-MtoC_M-SubServerName-29
-XSTEPID 2
-XSUBSYSTEM Merge
-XSERVER PubServerName
-XCMDLINE 0
-XCancelEventHandle 000008EC
-XParentProcessHandle 00000E9C
2012-01-11 12:05:40.841 Percent Complete: 0
2012-01-11 12:05:40.841 Connecting to Distributor 'PubServerName'
2012-01-11 12:05:40.856 Repl Agent Status: 3
2012-01-11 12:05:40.856 Connecting to OLE DB Distributor at datasource: 'PubServerName', location: '', catalog: '', providerstring: '' using provider 'SQLNCLI'
2012-01-11 12:05:42.137 OLE DB Distributor: PubServerName
DBMS: Microsoft SQL Server
Version: 09.00.3042
catalog name: 
user name: dbo
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len: 
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-01-11 12:05:42.137 OLE DB Distributor 'PubServerName': {call sp_MSgetversion }
2012-01-11 12:05:42.153 OLE DB Distributor 'PubServerName': {call sp_helpdistpublisher (N'PubServerName') }
2012-01-11 12:05:42.169 OLE DB Distributor 'PubServerName': {call sp_MShelp_repl_agent (N'PubServerName', N'UserDBName', N'MtoC_M', N'SubServerName', N'UserDBName', 1)}
2012-01-11 12:05:42.169 OLE DB Distributor 'PubServerName': select datasource, srvid from master..sysservers where upper(srvname) = upper(N'PubServerName')
2012-01-11 12:05:42.184 OLE DB Distributor 'PubServerName': {call sp_MShelp_merge_agentid (0,N'UserDBName',N'MtoC_M',null,N'UserDBName',90,N'SubServerName')}
2012-01-11 12:05:42.184 OLE DB Distributor 'PubServerName': {call sp_MShelp_profile (29, 4, N'')}
2012-01-11 12:05:42.184 Percent Complete: 0
2012-01-11 12:05:42.184 Connecting to OLE DB Publisher at datasource: 'PubServerName', location: '', catalog: 'UserDBName', providerstring: '' using provider 'SQLNCLI'
2012-01-11 12:05:42.200 Initializing
2012-01-11 12:05:42.200 Repl Agent Status: 1
2012-01-11 12:05:42.216 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:42.216 Percent Complete: 0
2012-01-11 12:05:42.231 Connecting to Publisher 'PubServerName'
2012-01-11 12:05:42.231 Repl Agent Status: 3
2012-01-11 12:05:42.231 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:43.153 OLE DB Publisher: PubServerName
DBMS: Microsoft SQL Server
Version: 09.00.3042
catalog name: UserDBName
user name: dbo
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len: 
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-01-11 12:05:43.169 OLE DB Publisher 'PubServerName': set nocount on declare @dbname sysname select @dbname = db_name() declare @collation nvarchar(255) select @collation = convert(nvarchar(255), databasepropertyex(@dbname, N'COLLATION')) select collationproperty(@collation,
N'CODEPAGE') as 'CodePage', collationproperty(@collation, N'LCID') as 'LCID', collationproperty(@collation, N'COMPARISONSTYLE') as 'ComparisonStyle',cast(case when convert (int,databasepropertyex (@dbname,'comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end
as bit) as DB_CaseSensitive,cast(case when convert (int,serverproperty ('comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end as bit) as Server_CaseSensitive set nocount off
2012-01-11 12:05:43.169 OLE DB Publisher 'PubServerName': {call sp_MSgetversion }
2012-01-11 12:05:43.200 Connecting to OLE DB Publisher at datasource: 'PubServerName', location: '', catalog: 'UserDBName', providerstring: '' using provider 'SQLNCLI'
2012-01-11 12:05:44.137 OLE DB Publisher: PubServerName
DBMS: Microsoft SQL Server
Version: 09.00.3042
catalog name: UserDBName
user name: dbo
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len: 
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-01-11 12:05:44.137 OLE DB Publisher 'PubServerName': {call sp_MSchecksnapshotstatus (N'MtoC_M')}
2012-01-11 12:05:44.153 OLE DB Publisher 'PubServerName': {call sp_helpmergepublication (N'MtoC_M')}
2012-01-11 12:05:44.153 OLE DB Publisher 'PubServerName': {call sys.sp_MSgetreplicainfo(?,?,?,?,?,?,?,90)}
2012-01-11 12:05:44.169 OLE DB Distributor 'PubServerName': {call sp_MShelp_repl_agent (N'PubServerName', N'UserDBName', N'MtoC_M', N'SubServerName', N'UserDBName', 1)}
2012-01-11 12:05:44.169 Connecting to OLE DB Subscriber at datasource: 'SubServerName', location: '', catalog: 'UserDBName', providerstring: '' using provider 'SQLNCLI'
2012-01-11 12:05:44.747 OLE DB Subscriber: SubServerName
DBMS: Microsoft SQL Server
Version: 10.50.1600
catalog name: UserDBName
user name: distributor_MtoC
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len: 
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-01-11 12:05:45.122 OLE DB Subscriber 'SubServerName': {call sp_MSgetversion }
2012-01-11 12:05:45.216 OLE DB Subscriber 'SubServerName': {call sp_MSreplcheck_subscribe}
2012-01-11 12:05:45.309 OLE DB Subscriber 'SubServerName': set nocount on declare @dbname sysname select @dbname = db_name() declare @collation nvarchar(255) select @collation = convert(nvarchar(255), databasepropertyex(@dbname, N'COLLATION')) select collationproperty(@collation,
N'CODEPAGE') as 'CodePage', collationproperty(@collation, N'LCID') as 'LCID', collationproperty(@collation, N'COMPARISONSTYLE') as 'ComparisonStyle',cast(case when convert (int,databasepropertyex (@dbname,'comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end
as bit) as DB_CaseSensitive,cast(case when convert (int,serverproperty ('comparisonstyle')) & 0x1 = 0x1 then 0 else 1 end as bit) as Server_CaseSensitive set nocount off
2012-01-11 12:05:45.419 Percent Complete: 0
2012-01-11 12:05:45.419 OLE DB Subscriber 'SubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.419 Connecting to Subscriber 'SubServerName'
2012-01-11 12:05:45.434 Repl Agent Status: 3
2012-01-11 12:05:45.434 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.559 Percent Complete: 0
2012-01-11 12:05:45.559 OLE DB Subscriber 'SubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.559 Retrieving publication information
2012-01-11 12:05:45.575 Repl Agent Status: 3
2012-01-11 12:05:45.575 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.653 OLE DB Subscriber 'SubServerName': {call sys.sp_MSmerge_upgrade_subscriber(1,?)}
2012-01-11 12:05:45.653 Percent Complete: 0
2012-01-11 12:05:45.669 Retrieving subscription information.
2012-01-11 12:05:45.669 Repl Agent Status: 3
2012-01-11 12:05:45.684 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.763 OLE DB Publisher 'PubServerName': {call sys.sp_MSgetreplicainfo(?,?,?,?,?,?,?,90)}
2012-01-11 12:05:45.763 OLE DB Publisher 'PubServerName': {call sys.sp_MShelpmergearticles (?,9000000,?) }
2012-01-11 12:05:45.778 OLE DB Publisher 'PubServerName': {call sp_MSenumschemachange (?,?,9000000,?,0,1) }
2012-01-11 12:05:45.794 OLE DB Subscriber 'SubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.888 OLE DB Publisher 'PubServerName': {call sys.sp_MSallocate_new_identity_range (?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.888 Percent Complete: 0
2012-01-11 12:05:45.903 Applying the snapshot to the Subscriber
2012-01-11 12:05:45.903 OLE DB Publisher 'PubServerName': {call sys.sp_MSallocate_new_identity_range (?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.903 Repl Agent Status: 3
2012-01-11 12:05:45.919 OLE DB Publisher 'PubServerName': {call sys.sp_MSallocate_new_identity_range (?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.919 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.919 OLE DB Publisher 'PubServerName': {call sys.sp_MSallocate_new_identity_range (?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.934 OLE DB Publisher 'PubServerName': {call sys.sp_MSallocate_new_identity_range (?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.950 OLE DB Publisher 'PubServerName': {call sys.sp_MSallocate_new_identity_range (?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.950 OLE DB Publisher 'PubServerName': {call sys.sp_MSallocate_new_identity_range (?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.966 OLE DB Publisher 'PubServerName': {call sys.sp_MSallocate_new_identity_range (?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.981 OLE DB Publisher 'PubServerName': {call sys.sp_MSallocate_new_identity_range (?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.997 OLE DB Publisher 'PubServerName': {call sys.sp_MSallocate_new_identity_range (?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:45.997 OLE DB Subscriber 'SubServerName': {call master..sp_helpreplicationoption ('merge')}
2012-01-11 12:05:46.091 OLE DB Subscriber 'SubServerName': {call sys.sp_MSmergesubscribedb ('true', 0) }
2012-01-11 12:05:47.263 OLE DB Subscriber 'SubServerName': {call sp_MSpublicationcleanup (?,?,?)}
2012-01-11 12:05:47.372 OLE DB Subscriber 'SubServerName': {call sp_MSCleanupForPullReinit (?,?,?)}
2012-01-11 12:05:47.481 OLE DB Subscriber 'SubServerName': {call sp_MSdropconstraints (N'tblEmailMessages',N'dbo')}
2012-01-11 12:05:47.606 OLE DB Subscriber 'SubServerName': {call sp_MSdropconstraints (N'tblUser',N'dbo')}
2012-01-11 12:05:47.716 OLE DB Subscriber 'SubServerName': {call sp_MSdropconstraints (N'tblDPVLocked',N'dbo')}
2012-01-11 12:05:47.809 OLE DB Subscriber 'SubServerName': {call sp_MSdropconstraints (N'tblCaptureAppToken',N'dbo')}
2012-01-11 12:05:47.903 OLE DB Subscriber 'SubServerName': {call sp_MSdropconstraints (N'tblCreditThresholdNotification',N'dbo')}
2012-01-11 12:05:48.013 OLE DB Subscriber 'SubServerName': {call sp_MSdropconstraints (N'tblCreditPot',N'dbo')}
2012-01-11 12:05:48.106 OLE DB Subscriber 'SubServerName': {call sys.sp_MSaddinitialpublication (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:48.247 OLE DB Subscriber 'SubServerName': {call sp_MSunmarkifneeded (N'tblEmailMessages',?, 1, ?, ?)}
2012-01-11 12:05:48.403 OLE DB Subscriber 'SubServerName': {call sp_MSunmarkifneeded (N'tblUser',?, 1, ?, ?)}
2012-01-11 12:05:48.513 OLE DB Subscriber 'SubServerName': {call sp_MSunmarkifneeded (N'tblDPVLocked',?, 1, ?, ?)}
2012-01-11 12:05:48.606 OLE DB Subscriber 'SubServerName': {call sp_MSunmarkifneeded (N'tblCaptureAppToken',?, 1, ?, ?)}
2012-01-11 12:05:48.700 OLE DB Subscriber 'SubServerName': {call sp_MSunmarkifneeded (N'tblCreditThresholdNotification',?, 1, ?, ?)}
2012-01-11 12:05:48.809 OLE DB Subscriber 'SubServerName': {call sp_MSunmarkifneeded (N'tblCreditPot',?, 1, ?, ?)}
2012-01-11 12:05:48.903 OLE DB Publisher 'PubServerName': {call sp_MShelpmergeschemaarticles(?)}
2012-01-11 12:05:48.919 OLE DB Subscriber 'SubServerName': {call sp_MSaddinitialsubscription (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)}
2012-01-11 12:05:49.059 OLE DB Distributor 'PubServerName': select datasource, srvid from master..sysservers where upper(srvname) = upper(N'PubServerName')
2012-01-11 12:05:49.059 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_mergesubentry_indistdb (0,N'PubServerName',N'UserDBName',N'MtoC_M',N'SubServerName',N'UserDBName',0,1,0,N'',?,90)}
2012-01-11 12:05:49.075 OLE DB Subscriber 'SubServerName': {call sp_MScreateglobalreplica (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,90)}
2012-01-11 12:05:49.341 Connecting to OLE DB Subscriber at datasource: 'SubServerName', location: '', catalog: 'UserDBName', providerstring: '' using provider 'SQLNCLI'
2012-01-11 12:05:49.825 OLE DB Subscriber: SubServerName
DBMS: Microsoft SQL Server
Version: 10.50.1600
catalog name: UserDBName
user name: distributor_MtoC
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len: 
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-01-11 12:05:50.185 OLE DB Subscriber: SubServerName
DBMS: Microsoft SQL Server
Version: 10.50.1600
catalog name: UserDBName
user name: distributor_MtoC
API conformance: 0
SQL conformance: 0
transaction capable: 1
read only: F
identifier quote char: "
non_nullable_columns: 0
owner usage: 15
max table name len: 128
max column name len: 128
need long data len: 
max columns in table: 1000
max columns in index: 16
max char literal len: 131072
max statement len: 131072
max row size: 131072
2012-01-11 12:05:50.325 OLE DB Subscriber 'SubServerName': {call sys.sp_MSregistermergesnappubid(?, ?)}
2012-01-11 12:05:50.450 OLE DB Subscriber 'SubServerName': sp_MSacquiresnapshotdeliverysessionlock
2012-01-11 12:05:50.544 OLE DB Subscriber 'SubServerName': sp_MStrypurgingoldsnapshotdeliveryprogress
2012-01-11 12:05:50.810 OLE DB Subscriber 'SubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:50.966 [2%] OLE DB Subscriber 'SubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
ꜻä㹒 ꜐äB 11 12:05ä谼砗꜐ä镴ĀPercent Complete: 4
2012-01-11 12:05:50.997 Propagated 1 schema changes: 1 total
2012-01-11 12:05:51.013 Repl Agent Status: 3
2012-01-11 12:05:51.013 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:51.091 [6%] OLE DB Subscriber 'SubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
ꜻä㹒 ꜐äB 11 12:05ä谼砗꜐ä镴ĀPercent Complete: 6
2012-01-11 12:05:51.122 Propagated 1 schema changes: 2 total
2012-01-11 12:05:51.153 Repl Agent Status: 3
2012-01-11 12:05:51.153 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:51.200 OLE DB Subscriber 'SubServerName': {call sp_MSunmarkreplinfo (N'tblEmailMessages')}
2012-01-11 12:05:51.200 [6%] Percent Complete: 6
2012-01-11 12:05:51.231 Propagated 1 schema changes: 3 total
2012-01-11 12:05:51.247 Repl Agent Status: 3
2012-01-11 12:05:51.263 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:51.325 OLE DB Subscriber 'SubServerName': sp_MSissnapshotitemapplied @snapshot_session_token = N'E:\Microsoft SQL Server\MSSQL.1\MSSQL\repldata\unc\PubServerName_UserDBName_MTOC_M\20120111115787\', @snapshot_progress_token = N'E:\Microsoft
SQL Server\MSSQL.1\MSSQL\repldata\unc\PubServerName_UserDBName_MTOC_M\20120111115787\tblEmailMessages_2.sch'
2012-01-11 12:05:51.435 drop Table [dbo].[tblEmailMessages]
go
SET ANSI_PADDING ON
go
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tblEmailMessages](
[EmailMessageId] [bigint] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
[Guid] [nvarchar](32) NOT NULL,
[Recipients] [varchar](8000) NOT NULL,
[CcRecipients] [varchar](8000) NULL,
[BccRecipients] [varchar](8000) NULL,
[Sender] [varchar](8000) NOT NULL,
[Subject] [nvarchar](4000) NOT NULL,
[BodyText] [nvarchar](max) NULL,
[BodyHTML] [nvarchar](max) NULL,
[IsBodyEncrypted] [bit] NOT NULL CONSTRAINT [DF_tblEmailMessages_IsBodyEncrypted] DEFAULT ((0)),
[Status] [tinyint] NOT NULL CONSTRAINT [DF_tblEmailMessages_Status] DEFAULT ((1)),
[DateAdded] [datetime] NOT NULL CONSTRAINT [DR_tblEmailMessages_DateAdded] DEFAULT (getdate()),
[rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [MSmerge_df_rowguid_207F75F229994684BC3FAAE5BE4CD6EB] DEFAULT (newsequentialid())
GO
GRANT DELETE ON [dbo].[tblEmailMessages] TO [odintermediary]
GO
GRANT INSERT ON [dbo].[tblEmailMessages] TO [odintermediary]
GO
GRANT SELECT ON [dbo].[tblEmailMessages] TO [odintermediary]
GO
GRANT UPDATE ON [dbo].[tblEmailMessages] TO [odintermediary]
GO
SET ANSI_NULLS ON
go
SET QUOTED_IDENTIFIER ON
go
ALTER TABLE [dbo].[tblEmailMessages] ADD CONSTRAINT [PK_tblEmailMessage] PRIMARY KEY CLUSTERED 
[EmailMessageId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
GO
2012-01-11 12:05:51.450 OLE DB Subscriber 'SubServerName': drop Table [dbo].[tblEmailMessages]
2012-01-11 12:05:51.560 OLE DB Subscriber 'SubServerName': SET ANSI_PADDING ON
2012-01-11 12:05:51.669 OLE DB Subscriber 'SubServerName': SET ANSI_NULLS ON
2012-01-11 12:05:51.778 OLE DB Subscriber 'SubServerName': SET QUOTED_IDENTIFIER ON
2012-01-11 12:05:51.872 OLE DB Subscriber 'SubServerName': CREATE TABLE [dbo].[tblEmailMessages](
[EmailMessageId] [bigint] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
[Guid] [nvarchar](32) NOT NULL,
[Recipients] [varchar](8000) NOT NULL,
[CcRecipients] [varchar](8000) NULL,
[BccRecipients] [varchar](8000) NULL,
[Sender] [varchar](8000) NOT NULL,
[Subject] [nvarchar](4000) NOT NULL,
[BodyText] [nvarchar](max) NULL,
[BodyHTML] [nvarchar](max) NULL,
[IsBodyEncrypted] [bit] NOT NULL CONSTRAINT [DF_tblEmailMessages_IsBodyEncrypted] DEFAULT ((0)),
[Status] [tinyint] NOT NULL CONSTRAINT [DF_tblEmailMessages_Status] DEFAULT ((1)),
[DateAdded] [datetime] NOT NULL CONSTRAINT [DR_tblEmailMessages_DateAdded] DEFAULT (getdate()),
[rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [MSmerge_df_rowguid_207F75F229994684BC3FAAE5BE4CD6EB] DEFAULT (newsequentialid())
2012-01-11 12:05:51.981 OLE DB Subscriber 'SubServerName': GRANT DELETE ON [dbo].[tblEmailMessages] TO [odintermediary]
2012-01-11 12:05:52.091 OLE DB Subscriber 'SubServerName': GRANT INSERT ON [dbo].[tblEmailMessages] TO [odintermediary]
2012-01-11 12:05:52.200 OLE DB Subscriber 'SubServerName': GRANT SELECT ON [dbo].[tblEmailMessages] TO [odintermediary]
2012-01-11 12:05:52.294 OLE DB Subscriber 'SubServerName': GRANT UPDATE ON [dbo].[tblEmailMessages] TO [odintermediary]
2012-01-11 12:05:52.403 OLE DB Subscriber 'SubServerName': SET ANSI_NULLS ON
2012-01-11 12:05:52.497 OLE DB Subscriber 'SubServerName': SET QUOTED_IDENTIFIER ON
2012-01-11 12:05:52.606 OLE DB Subscriber 'SubServerName': ALTER TABLE [dbo].[tblEmailMessages] ADD CONSTRAINT [PK_tblEmailMessage] PRIMARY KEY CLUSTERED 
[EmailMessageId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
2012-01-11 12:05:52.716 OLE DB Subscriber 'SubServerName': sp_MSrecordsnapshotdeliveryprogress @snapshot_session_token = N'E:\Microsoft SQL Server\MSSQL.1\MSSQL\repldata\unc\PubServerName_UserDBName_MTOC_M\20120111115787\', @snapshot_progress_token = N'E:\Microsoft
SQL Server\MSSQL.1\MSSQL\repldata\unc\PubServerName_UserDBName_MTOC_M\20120111115787\tblEmailMessages_2.sch'
2012-01-11 12:05:52.841 OLE DB Subscriber 'SubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:52.966 [6%] Percent Complete: 6
2012-01-11 12:05:52.981 Applied script 'tblEmailMessages_2.sch'
2012-01-11 12:05:52.981 Repl Agent Status: 3
2012-01-11 12:05:52.981 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:53.153 OLE DB Subscriber 'SubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:53.263 [6%] OLE DB Subscriber 'SubServerName': {call sys.sp_MSaddinitialarticle (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
ꜻä㹒 ꜐äB 11 12:05ä谼砗꜐ä镴ĀPercent Complete: 6
2012-01-11 12:05:53.294 Preparing table 'tblEmailMessages' for merge replication
2012-01-11 12:05:53.294 Repl Agent Status: 3
2012-01-11 12:05:53.310 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:53.450 OLE DB Subscriber 'SubServerName': {call sp_MSupdatesysmergearticles (?,?,?,?,0)}
2012-01-11 12:05:53.575 OLE DB Subscriber 'SubServerName': {call sys.sp_MSsetup_identity_range (?,?,?,?,?,?,?,?)}
2012-01-11 12:05:53.794 The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with
verbose history logging and specify an output file to which to write.
2012-01-11 12:05:53.825 OLE DB Subscriber 'SubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:53.966 Percent Complete: 6
2012-01-11 12:05:53.966 No subscription is on this publication or article.
2012-01-11 12:05:53.997 Repl Agent Status: 6
2012-01-11 12:05:54.013 OLE DB Distributor 'PubServerName': {call sys.sp_MSadd_merge_history90 (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
2012-01-11 12:05:54.216 Percent Complete: 0
2012-01-11 12:05:54.231 Category:SQLSERVER
Source: SubServerName
Number: 14050
Message: No subscription is on this publication or article.
2012-01-11 12:05:54.247 Repl Agent Status: 3
2012-01-11 12:05:54.372 Percent Complete: 0
2012-01-11 12:05:54.372 Category:NULL
Source: Merge Replication Provider
Number: -2147201001
Message: The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with verbose history
logging and specify an output file to which to write.
2012-01-11 12:05:54.388 Repl Agent Status: 3
2012-01-11 12:05:54.388 Disconnecting from OLE DB Subscriber 'SubServerName'
2012-01-11 12:05:54.388 Disconnecting from OLE DB Subscriber 'SubServerName'
2012-01-11 12:05:54.403 Disconnecting from OLE DB Subscriber 'SubServerName'
2012-01-11 12:05:54.403 Disconnecting from OLE DB Subscriber 'SubServerName'
2012-01-11 12:05:54.403 Disconnecting from OLE DB Publisher 'PubServerName'
2012-01-11 12:05:54.419 Disconnecting from OLE DB Publisher 'PubServerName'
2012-01-11 12:05:54.419 Disconnecting from OLE DB Publisher 'PubServerName'
2012-01-11 12:05:54.419 Disconnecting from OLE DB Publisher 'PubServerName'
2012-01-11 12:05:54.435 Disconnecting from OLE DB Distributor 'PubServerName'
2012-01-11 12:05:54.435 Disconnecting from OLE DB Distributor 'PubServerName'
2012-01-11 12:05:54.450 The merge process will restart after waiting 30 second(s)...
Percent Complete: 0
Any help would be much appreciated.
Thanks
Chris 

The error happens on this table every time.
The schema of the table is below;
CREATE TABLE [dbo].[tblEmailMessages](
[EmailMessageId] [bigint] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
[Guid] [nvarchar](32) NOT NULL,
[Recipients] [varchar](8000) NOT NULL,
[CcRecipients] [varchar](8000) NULL,
[BccRecipients] [varchar](8000) NULL,
[Sender] [varchar](8000) NOT NULL,
[Subject] [nvarchar](4000) NOT NULL,
[BodyText] [nvarchar](max) NULL,
[BodyHTML] [nvarchar](max) NULL,
[IsBodyEncrypted] [bit] NOT NULL CONSTRAINT [DF_tblEmailMessages_IsBodyEncrypted] DEFAULT ((0)),
[Status] [tinyint] NOT NULL CONSTRAINT [DF_tblEmailMessages_Status] DEFAULT ((1)),
[DateAdded] [datetime] NOT NULL CONSTRAINT [DR_tblEmailMessages_DateAdded] DEFAULT (getdate()),
[rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT [MSmerge_df_rowguid_207F75F229994684BC3FAAE5BE4CD6EB] DEFAULT
(newsequentialid())
The table gets dropped and recreated each time i try to reinitialise the subscription.  I can't remove the article at the moment as two other servers subscribe to the publication.
Thanks for your help
Chris
I am the master of my fate: I am the captain of my soul.

Similar Messages

  • SQLSERVER Merge Replication Error: Command attempted: {call sp_MSreleasemakegenerationapplock}

    Dear Friends, I updated SQL SERVER 2k5 with SP4 and I am getting error while synchronizing merge replication.
    Here is the error in Replication Monitor:
    Command attempted:
    {call sp_MSreleasemakegenerationapplock}
    Error messages:
    The merge process was unable to create a new generation at the 'Subscriber'. Troubleshoot by restarting the synchronization with verbose history logging and specify an output file to which to write. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147200994)
    Get help: http://help/MSSQL_REPL-2147200994
    Internal Query Processor Error: The query processor encountered an unexpected error during execution. (Source: MSSQLServer, Error number: 8630)
    Get help: http://help/8630
    I executed below statement in both Publisher and Subscriber, but didn't help.
    update sysmergepublications set [generation_leveling_threshold] = 0
    Some suggests that I should use SP2 Update Package, Though that is installed and I am using SP4 now.

    Hi arahmancsd,
    Hi arahmancsd,
    According to your error message, when you sync data in merge replication, check if you use a SELECT INTO query statement. If you run the same INTO query twice and separately or you perform an operation that causes SQL Server to recompile the second SELECT
    INTO query, they all return the error 8630 message.
    For more information, see:
    http://support.microsoft.com/kb/323586/en-us
    Since you have changed the generation_leveling_threshold to 0 in sysmergepublications table in publisher and in subscriber. Please do not update the system tables directly. You can follow the steps mentioned in workaround section of
    http://support.microsoft.com/kb/953568.
    Hope it can help you.
    Regards,
    Sofiya Li
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • VBA Merge PDFs - Error when first and second PDF are the same

    Using http://khkonsulting.com/2009/03/adobe-acrobat-and-vba-an-introduction/ as a guide, I am able to successfully merge multiple pdf's together into one document using VBA (Access mdb), except when the PDF being merged to has the same name as the next PDF.
    Here's my scenario.  An Access table is updated with a list of reports that need to be printed.  All of these reports are PDF's.  I loop thru this table and merge the PDF's according to an identifier, then print the group.  There are times
    when there are multiple copies of the same report for an identifier.  If the PDF being merged to has the same name of the PDF being merged, an error occurs.  How can I handle this situation?
    Sample data:  This identifier (ESO and Pulling) needs to merge these PDF's (Aaa.PDF) together which happen to have the same name.  Aaa.PDF is trying to merge Aaa.PDF and this throws an error.
    Aaa.PDF ESO  Pulling
    Aaa.PDF ESO  Pulling
    This identifier merges fine despite having the same PDF twice.  But the first PDF is not named the same.  Xxx.PDF is the first PDF and merges the next two into it.  The last two
    are named the same.
    Xxx.PDF  916  Pulling
    Bbb.PDF  916  Pulling
    Bbb.PDF  916  Pulling
    Code:
    pdfDoc1.Open (filesToMerge(1))
    numPages = pdfDoc1.GetNumPages()
    Set pdfDoc2 = CreateObject("AcroExch.PDDoc")
    Dim i As Integer
    For i = 2 To intNbr - 1
    pdfDoc2.Open (filesToMerge(i))
    If pdfDoc1.InsertPages(numPages - 1, pdfDoc2, 0, pdfDoc2.GetNumPages(), True) = False Then
    MsgBox "Cannot insert pages"
    End If
    pdfDoc2.Close
    Next i
    If pdfDoc1.Save(PDSaveFull, "C:\....\ReportPacket__" & Trim(CStr(intReportCount)) & "__" & ... & ".pdf") = False Then
    MsgBox "Cannot save the modified document"
    End If
    pdfDoc1.Close
    The pdfDoc1.InsertPages command fails, displays "Cannot insert pages", then displays "Method 'Close' of object 'CAccroPDDoc' failed.
    Thanks for any help or advice.

    Hi
    As far as I know, Access didn't provide such method. But I think you are able to achieve this goal through some 3rd party PDF component
    Hope this will help you.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • "Merging data" error when syncing iPhone 5s Calendar to MacBook Pro Calendar, using Mountain Lion

    Since a failed attempt to sync data via iCloud (resulting in duplicate entries in Calendar and Contacts, missing data, and other oddities), whenever I try to sync the Calendars via iTunes, I repeatedly get the error message, "iTunes could not sync calendars to the iPhone <name> because an error occurred while merging data." The Contacts sync fine, and the backup runs smoothly. The only discussions I can find in Apple Support are dated 2009 with older systems (I'm using Mountain Lion 10.8.5, iTunes 11.1.5, iOS 7.1.1, but the problem occurred with iOS 7.0 and possibly 6.0 as well). Repairing permissions had no effect. I can't use the option to copy the Mac Calendar to the iPhone because new data are entered into the iPhone. Would appreciate guidance. I'm trying to avoid iCloud but if I have to go there to fix this, guidance for that would also be welcome.

    I have iPhone 5 with iOS 6.1.4 and iMac with Mavericks 10.9.3 and iTunes 11.2.1.
    I also got this error when I tried to sync iPhone with iMac (after a year when Apple disabled local USB cabel sync in Mavericks - thanks Apple for re-enabling it!).
    I tried a number of things to no avail. Finally I tried three things - and hurraaa, can sync now! Unfortunatelly I didn't test sync among these three steps - so don't know which one fixed it - up to you to try. My guess is that it was the 3rd step, actually
    Step 1: On my iPhone I opened Calendar and tap "Calendars" (top left). I have 7 items on the list (2 email accounts, Calendar, Home, Work, Reminders, Birthdays). Most of the calendar entries were in my Home calendar, only a few were in Work or Birthdays. I moved all of them to Home. I also checked whether there aren't any items without content.
    Step 2: On the list of Calendars I had one custom item (Birthday in my local language). This item had only one entry in it. I deleted both the single entry and the custom item as a whole - so I left the default categories only.
    Step 3: At the top of the list of Calendars there is an item "All from My Mac". I tapped this and thus enabled all of my calendar categories. Now the sync worked like a charm!
    I actually noticed that when I synced, iTunes automatically checked all items under "Sync Calendars - Selected Calendars". Even if I manually deselected all except the "Home" calendar, as soon as I started to sync, iTunes checked all items automatically. This led me to thinking that if I check "All from My Mac" item in my iPhone it might work.
    Good luck with your sync issue, hope you'll solve it.

  • Ibdev error when initialise secondary GPIB address

    I have ibdev error when I use secondary address(I need use it). I use MSVS6.0 and your example, it works with keithley, but not with my device. When I work with my device by LabVIEW and for addressing use "1+1"(for example) it works. But I am getting mistake when I try to initialise device in VStudio, without secondary address it does not understand my command.
    Please help me.

    The NI-488.2 API adds 96 to the secondary address to create it properly (since a SAD of 0 is different than no secondary address). Try using
    ibdev 0 1 97 12 1 0
    to open a device a primary address 1 and secondary address 1.

  • "Internal error" when renewing subscription

    Hi I can't renew my World subscription, I've been trying for three days and the error doesn't let me renew it.
    Can you help me?

    I depend on my skype to do business and communicate with our programmers overseas.I cannot buy skype minutes.I get the following error. You cannot access this page. This may be due to one of two reasons:1. The FI you are trying to access is deactivated
    2. The access to the FI is restricted for specific IP addresses, and your address is not one of them.

  • SQL Server Compact 3.5 Merge Replication With SQL Server 2012 - Causing IIS App Pool to Crash

    Hi, I may be the only person in the world doing this but I wanted to give this information to anyone else who may follow this path in the future, and hopefully avoid a headache, or at least a paid support call to Microsoft.
    My original scenario was we had a SQL Server 2008 Server using Merge Replication through and IIS (web server) to several Windows Mobile 6 devices.  This has worked fairly well for a few years.
    Recently we upgraded our SQL server to version 2012 SP 1.  After moving the database over to the new server, and re-setting the merge replication stuff, we couldn't get merge replication to work on the Windows Mobile 6 handheld devices.  The replication
    would appear to start, and then we would get a message saying that the device could not get to the web site.  The message on the handheld device was this:
    "The IIS service is not available."
    After doing some more research, we found that the start of the replication process was causing the Thread Pool that was running the SQLCESA35.dll to crash.  
    The SQLCESALOG.txt file had this information:
    Date Time == SQLCESA Version ==> 3.5.8088.0
    Date Time Hr=80004005 ERR:Couldn't find existing RSCB 1
    After 2 days of trying to figure out the issue on our own, we gave in and called for paid Microsoft support.  They eventually found a known issue where a cumulative update was able to fix the problem.
    We installed the update on the IIS server and everything ran smoothly again.
    FIX: Merge replication fails when you use SQL Server Compact to perform a merge replication that synchronizes changes with a publisher in SQL Server 2012
    http://support.microsoft.com/kb/2845550
    Seth O'Neal

    Hi sonealtx,
    Glad to hear that the issue is resolved. Thanks for your sharing, other community members could benefit from your solution.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • CF 8 CFPDF "Merged" document throws 131 Error when opened in Acrobat

    We are using CF 8 on Windows Server 2003 platform.
    Any CFPDF "Merged" documents are throwing 131 Errors when opened in Acrobat
    Tried re-saving the documents on local machine and still same problem. Tried opening in multiple versions of Acrobat, same problem.
    Individual documents created are opening without issue. It is Only when these documents are merged that this error occurs.
    We do not experience this behavior in our CF 10 environment.
    We are a Big, Slow moving enterprise here so not much chance of getting our CF 10 environments promoted to meaningful production use soon.
    Found virtually nothing in HelpX and nothing online of any value regarding this issue.
    Has anyone else experienced the issue noted in the title of this discussion?
    Has anyone a work around or solution?

    I am getting the same error even in Acrobat version 8.1.3.
    Additionally, I noticed that if we click on menu ‘Advanced->Sign&Certify->Preview Document’, then we get a notification as “This document is not PDF/SigQ compliant and may display inconsistently”. On clicking  ‘View report’ on that notification, the below dialog pops up. It has errors listed as:-
    Code 4000 : Unrecognized PDF content. The document contains PDF content or custom content not supported by the current version of Acrobat.
    Code 4002: PDF content contains erros.
    However, if we sign the PDF using default adobe signature functionality and reopen that PDF, the error does NOT come and the notification also says ‘This document is PDF/SigQ compliant’.
    Can anybody please suggest what could be missing in the custom sign that we apply? Is it because of any of the missing fonts or any other resources?
    Awaiting reply!
    Regards.

  • I just purchased a month to month subscription for Acrobat Pro and I am getting an error when I try to download the software.

    I just purchased a month to month subscription for Acrobat Pro and I am getting an error when I try to download the software. after about 50% of the way, it just crashes.
    Thank you,
    JTF

    I am having the same problem - the install crashes around 40%. 
    I am using MAC OS 10.10.2 and purchased Acrobat Pro monthly subscription.  The error message is: 
    'Acrobat installer has encountered an unexpected failure.  Please try again.  If it continues to fail, contact Adobe support.'
    I have tried several times but keep getting the same error message.  Any ideas?
    Thanks,
    Cindy

  • I get an error when attempting to cancel my subscription to The Daily Read.

    Anyone getting an error when trying to cancel a subscription? I get a website error. It's pretty frustrating. I also get an Ajax error when trying to send a message to an HP expert.

    Hi havequick99,
    Try the solutions located at this website: How to Manage, Pause, or Unsubscribe from Prints and Faxes
    If you got an error at ePrintcenter.com, it may be the website was experiencing technical problems and you can try again.
    Please post here if you this solved your problem (and select Solved) or if you need further help.
    I work on behalf of HP.

  • Error when attempting to merge into table with RLS - ORA - 28132

    hey,
    i've encountered an "ORA-28132 - Merge into syntax does not support security policies" when attempting to merge into a table with RLS defined on it.
    i looked around and found this [discussion |http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:259415261270] on ask tom.
    according to the thread - this was a bug in 9i. in 10g merge is possible only if the policy returns "null" and in 11g it was finally fixed.
    *i have been able to merge into tables with rls in 10gR2 in some cases.*
    i would like to know if anyone has some more information about this error. when can i merge into tables with RLS ?
    thanks, Haki.

    Never.
    The bug was that it did work sometimes in 10g i.e. it should always raise an error.
    It's something that I've always found a bit odd and frustrating - that MERGE and RLS policy should not be compatible.
    But bottom line is that you shouldn't be using MERGE on table with RLS policy.
    Edited by: Dom Brooks on Feb 14, 2011 10:51 AM

  • I get a error when i open the criteria of a Alert subscription

    Hi All,
    I get this strange error when i open the criteria of a Alert subscription.
    Below is the screen shot of the error and the contents of the alert.
    Can any one help.
    Note:  The following information was gathered when the operation was attempted.  The information may appear cryptic but provides context for the error.  The application will continue to run.
    Id='' -- Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).Id='' -- Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
    Microsoft.EnterpriseManagement.Common.DataAccessLayerException: Id='' -- Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
       at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.AddParameter(SqlCommand sqlCommand, String parameterName, ColumnDefinition columnDefinition, Object parameterValue, Boolean stronglyTypeParameter)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParsePredicateNextOperand(XmlReader criteriaReader, String parameterBaseName, SqlCommand sqlCommand, QueryDefinition queryDefinition, ColumnDefinition columnDefinition,
    Boolean stronglyTypeParameter)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.NextPredicateWithPropertyOperatorAndOperand(StringBuilder criteriaStringBuilder, SqlCommand sqlCommand, QueryDefinition queryDefinition, ColumnDefinition columnDefinition,
    String propertyName, XmlReader criteriaReader)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParsePredicateWithProperty(SqlCommand sqlCommand, QueryDefinition queryDefinition, Nullable`1 typeContextId, XmlReader criteriaReader)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParsePredicate(SqlCommand sqlCommand, QueryDefinition queryDefinition, Nullable`1 typeContextId, XmlReader criteriaReader)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParseCriteria(SqlCommand sqlCommand, QueryDefinition queryDefinition, Nullable`1 managedTypeIdContext, XmlReader criteriaReader)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParsePredicateGroup(SqlCommand sqlCommand, QueryDefinition queryDefinition, Nullable`1 managedTypeIdContext, XmlReader criteriaReader)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.ParseCriteria(SqlCommand sqlCommand, QueryDefinition queryDefinition, Nullable`1 managedTypeIdContext, XmlReader criteriaReader)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.ParameterizedCriteriaBuilder.CreateCriteriaTextAndParameters(SqlCommand sqlCommand, QueryDefinition queryDefinition, XmlReader criteriaReader, XmlNamespaceManager xmlNamespaceManager)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.SqlCommandBuilder.CreateCriteria(SqlCommand sqlCommand, QueryDefinition queryDefinition, String criteriaXml, Dictionary`2 parameterValues)
       at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.CreateSqlCommandForSelectType()
       at Microsoft.EnterpriseManagement.Mom.DataAccess.QueryRequest.Execute(SqlNotificationRequest sqlNotificationRequest)
       at Microsoft.EnterpriseManagement.Mom.ServiceDataLayer.DataAccess.ExecuteQuery(String queryDefinitionName, String criteriaXml, Pair`2[] parametersAndValues, String inClauseColumnName, ICollection`1 inClauseElements)
    Gautam.75801

    Was any changes made to the Notifications Internal Library MP?
    Do you have a recent/latest backup copy for the MP? if yes, you may want to reimport it.
    Blog: http://theinfraguys.com
    Follow me at Facebook
    The Infra Guys Facebook Page
    Please remember to click Mark as Answer on the answer if it helps you in anyway

  • "Subscriptions limit reached for same user" validation error when trying to create a subscription to a product - wha can cause this?

    Hi,
    I've created a third product level called "partner" other than the two that come as standard.
    I'm running through the process of taking an existing user from the starter product to the partner product, and am subscribing the user to partner before removing the starter subscription. There seems no problem with a user having both a starter and unlimited
    subscription, but am getting the following error when subscribing to partner.
    "Subscriptions limit reached for same user"
    This is using a subscriptions put. The same code works fine when upgrading to unlimited.
    What can cause this?
    Andy

    Hi Miao,
    The function to promote someone to partner is:
    public async Task<ActionResult> ToPartner(string id)
    //add partner subscription
    var prodId = await APIMHandler.GetProductIdFromName("Partner");
    var subscriptionId = Guid.NewGuid().ToString();
    //set apim role to partner
    var partnerId = (await APIMHandler.GetGroups()).First(a => a.name == "Partners").id;
    await APIMHandler.AddUserToGroup(id, partnerId);
    if (await APIMHandler.SubscribeToProduct(subscriptionId, id, prodId))
    //disable starter subscription
    await ApimDelegationController.HandleFreeSubscriptionRemoval(id);
    //set local role to partner
    await UserManager.AddToRoleAsync(id, "Partners");
    return RedirectToAction("Index");
    Where subscribetoproduct is:
    public static async Task<bool> SubscribeToProduct(string subscriptionId, string UserId, string productId)
    //The REST API and the delegation are inconsistent in how they represent ids.
    if (!UserId.StartsWith("/users/"))
    UserId = "/users/" + UserId;
    if (!productId.StartsWith("/products/"))
    productId = "/products/" + productId;
    var client = new HttpClient();
    client.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", "SharedAccessSignature " + CalculateAcessToken(ApimIdentifier, ApimPrimaryKey));
    var uri = ApimBaseUrl + "subscriptions/" + subscriptionId.ToString() + "?api-version=" + ApiVersion;
    var response = await client.PutAsJsonAsync(uri, new { userId = UserId, productId = productId, state = "active" });
    if (response.StatusCode == System.Net.HttpStatusCode.Created)
    return true;
    if (response.StatusCode == System.Net.HttpStatusCode.Conflict)
    var error = await response.Content.ReadAsStringAsync();
    return false;
    if (response.StatusCode == System.Net.HttpStatusCode.BadRequest)
    var error = await response.Content.ReadAsStringAsync();
    return false;
    var errorf = await response.Content.ReadAsStringAsync();
    throw new Exception(string.Format("Error in SubscribeToProduct: return status {0}. Content: {1}", response.StatusCode.ToString(), errorf));
    The status code is "BadRequest" and the error provided earler is returned.
    So at this time the user is added to the "partners" group, but I can't subscribe them to the Partner subscription, which is accessible to members of the partner group.
    Andy

  • Constraint error when merging workspace

    Hi,
    We have a problem with Workspace Manager. I believe there are duplicate rows in the underlying OWM tables that are causing lots of problems. Firstly, we're trying to merge a child with it's parent and we get constraint violation on the xx_AUX table. Secondly, when trying to do a difference between the workspaces, we get a "multiple rows returned from subquery" error when accessing the xx_DIFF table. These errors seem to indicate some duplication, but I have no idea how it got there.
    We had a similar problem a couple years back, and there was a post in this forum at that time.
    Any suggestions? 1) how to fix this problem? 2) how to keep it from happening again?

    Ben,
    We have not been able to reproduce the problem on a dev system, so no help there. I guessed that you would need the metadata, but that is not an option right now (we need a quick solution).
    Newly created children of LIVE merge just fine, so I'm writing a program to duplicate the differences in the original child into a new child. I will then merge the new child and remove all the children workspaces (leaving only LIVE).
    Hopefully, this will clear up all our problems. Next, I will have to keep a very close eye on the state of the workspaces to see if this ever happens again. With luck, I will then be able to replicate the conditions and let you know.
    Thanks for your reply. I will post again if I ever determine how this problem occurred.
    Edited by: user9179477 on Feb 24, 2010 7:36 AM

  • Merge Replication: subscriber database error

    Hello
    We have a principal application database running on SQL Server 2005, which has 300 GB information.
    This database is synchronized with multiple subscribers using merge replication agent, allowing changes at both the publisher and subscribers.
    Client applications connect to the subscribers and not the publisher, so the information is loaded in the subscribers.
    Last week, one of the subscribers had storage level error (broken discs) that caused corruption in the file system of the server.
    Then, the merge replication with this server began to fail due to bad sectors of the file system. But the database remained online, and the application continued to function normally, so new information was loaded in database.
    Because disk errors, it was not possible backed up the affected database or copy databases files to save the information. Subscribers regular backups were NOT performed.
    After resolving disk errors and repaired the file system, database was restored,
    but had consistency errors which were repaired by the DBCC CHECKDB command with
    repair_allow_data_loss option.
    Comparing the number of records before and after repair, we estimates that some records were lost in the database.
    Replication has not been restored yet.
    Now we have the following questions:
    - What happens with lost data in the subscriber database if the merge synchronization is reactivated? We estimate that the lost data will be replicated to the Publisher, and want to avoid that.
    - Is there any way to sync (download) data from the Publisher to the Subscriber to load the missing records again? Avoiding of course the upload from the subscriber to the publisher.
    - If the above point is possible, may you then make the upload to the publisher to sync the information loaded into the database subscriber?
    - If these actions are not possible, have we another ways to sync the information, to avoid losing data in the subscriber?
    Thanks in advance
    Javier
    Javier Mariani

    Hi,
    You can configure the Synchronization direction in Article Property. Right-click the Publication, click Properties. In the Articles page, set the properties of the articles. See the image:
    Here is a thread for your reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/dc21b614-b736-409b-883e-3af6c75ab546/merge-replication-synchronization-direction-as-downloadonly-to-subscriber-allow-subscriber?forum=sqlreplication
    Thanks.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for

  • Cannot print PDF's from brother HL2140 after last 10.05.8 update.

    ok so, after fighting with apple about various final cut issues, I have thus far refused to 'upgrade' and I use that term very loosely, to snow leopard. I was reminded to update a few days ago-and now cannot print from my brother HL2140. I have NEVER

  • HT1414 i have done it but no changes

    I have tried to restore the IOS but still no changes

  • Creating a drop zone in a picture

    Hi everyone. Here is that I'm trying to do. I have a picture of a castle with windows, I would like to add a drop zone in the windows so I can zoom to it then go to another picture or video in another window. I used photoshop to crop out the windows

  • Scrolling PDFs in Preview is choppy

    Scrolling, even the smallest PDFs, in Preview using the trackpad (swiping a la iPad) is very choppy. Even if I'm swiping very slowly, it pretends that I'm not moving my fingers at all, and then suddenly it jumps down half a page. I did not have this

  • HT1918 How do I pay with an iTunes card?

    I want to use iTunes card to pay for apps instead of credit card. Payment settings does not give me that option. How do I switch it?