January 18, 2013 at 9:06 am
I have set up an Oracle transactional publication on a single table as a test. Snapshot works ok so i assume we have good data mapping. However the replication is failing on update. When i try to view the failing command, using sp_browsereplcmds, it is truncated. .
sp_MSupd_BULLPERSON" (62,'Mr','FRANK','Q','SPENCER',12345,NULL,'678910','M','1939-09-13 00:00:00','M',NULL,NULL,NULL,NULL,'2013-01-18 14:10:36',NULL,NULL,NULL,NULL,NULL,' --missing parameters here.
This makes it impossible to test the sp_MSupd_Table command and isolate any problem field which is causing the update to fail. If i look directly into the MSrepl_commands table the command is encoded. Looking in the sp_browsereplcmds script i see sp_printstatement @query which i assume translates the coded command - is this truncating the command ?
The error shown in the replication monitor does not reveal which field i need to look at
I created a smaller publication so that the entire update with all parameters is visible. this works fine. For the same update it gives no error. Consequently i don't know it there is an errant data mapping in the larger publication or even if the larger publication is sending a truncated command!
Any help appreciated.
Z
January 18, 2013 at 11:22 am
ok just checking the basics here;
I'm assuming you are reviewing the code in SSMS? by default, to save memory, SSMS limits results to the first 256 characters...have you already changed this to show the first 8K (if the command is larger than 8K, you need to use something else...SSMS will not show more than 8K, even if the string is longer:)
Lowell
January 21, 2013 at 4:57 am
Brilliant - never noticed that little SSMS 'feature' before! Well that's got my "command" where i want it.
Needless to say it runs fine from the SSMS window using 'exec' but the replication still fails on update.
Any thoughts where to go next? Nothing much in Googleland
Command attempted:
{CALL "sp_MSupd_BULLPERSON" (62,'Mr','FRANK','Q','SPENCER',123456,NULL,'270944','M','1939-09-13 00:00:00','M',NULL,NULL,NULL,NULL,'2013-01-18 14:10:36',NULL,NULL,NULL,NULL,NULL,'
(Transaction sequence number: 0x0000000000000000000700000000, Command ID: 2)
Error messages:
Invalid distribution command, state 2: transaction 0x0x0000000000000000000700000000 command 2{offset : 175 token offset: 174 state: 50) }. (Source: MSSQL_REPL, Error number: MSSQL_REPL21001)
Get help: http://help/MSSQL_REPL21001
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply