 |
|
 |
|
Next: Question on SQL-based Administrative Task Schedul..
|
| Author |
Message |
External

Since: Apr 18, 2007 Posts: 8
|
(Msg. 1) Posted: Wed Oct 22, 2008 6:10 am
Post subject: Error 20508 followed by "cannot insert value NULL" Archived from groups: microsoft>public>sqlserver>replication (more info?)
|
|
|
SQL Server 2000 (SP4), running on Windows 2003, transactional
replication.
The publisher is in a workgroup, in one of our DMZs. The (push)
subscriber is on our internal network. This topology has been running
succesfully for quite a while (over a year).
Yesterday, I applied a large number of inserts/updates within a
transaction on the subscriber. During this process (it took several
hours), an error appeared, error 20508, stating that "The text/ntext/
image values inserted at Subscriber will be NULL". However, given that
it continued to perform processing, and didn't cause the whole trigger
to rollback, I assumed that this was going to be somewhat okay.I
believed I'd be able to update these particular rows later at the
publisher, if needs be.
This morning, when I arrived, the long-running query had completed. I
checked the tables in the publisher and the subscriber. On the
publisher, the values in the text column appeared to be a blank
string. The subscriber had the strings expected. I produced a script
to update the rows on the subscriber to the values I wanted, and I
assumed replication would sort itself out (I was thinking it may
generate a false conflict or something like that).
However, on further review, I find that the push synchronizations
haven't been succesfully occurring since the early hours of this
morning. The error message is that it "cannot insert value NULL into
column X". Now, the column in question isn't nullable, but given it
seemed to cope with this matter at the publisher (by inserting a blank
string instead), I'm not sure what to do with it now.
I could, obviously, tear down the replication, build a new snapshot,
then rebuild the replication. However,that's not a particularly fast
solution since the DB is ~80GB and we'd have to pull the snapshot down
over a relatively slow link.
Can anyone suggest any troubleshooting steps I could follow, or any
additional info that I've missed out?
Thanks,
Damien >> Stay informed about: Error 20508 followed by "cannot insert value NULL" |
|
| Back to top |
|
 |  |
External

Since: Apr 18, 2007 Posts: 8
|
(Msg. 2) Posted: Thu Oct 23, 2008 1:10 am
Post subject: Re: Error 20508 followed by "cannot insert value NULL" [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Oct 22, 2:10 pm, Damien <Damien_The_Unbelie....RemoveThis@hotmail.com> wrote:
[snip]
>
> Yesterday, I applied a large number of inserts/updates within a
> transaction on the subscriber. During this process (it took several
> hours), an error appeared, error 20508, stating that "The text/ntext/
> image values inserted at Subscriber will be NULL". However, given that
> it continued to perform processing, and didn't cause the whole trigger
> to rollback, I assumed that this was going to be somewhat okay.I
> believed I'd be able to update these particular rows later at the
> publisher, if needs be.
>
[snip]
>
> However, on further review, I find that the push synchronizations
> haven't been succesfully occurring since the early hours of this
> morning. The error message is that it "cannot insert value NULL into
> column X". Now, the column in question isn't nullable, but given it
> seemed to cope with this matter at the publisher (by inserting a blank
> string instead), I'm not sure what to do with it now.
>
[snip]
I've managed to resolve my specific problem now - I altered the
automatically generated insert stored proc on the subscriber to
explicitly check for null and replace with an empty string. Now
everything has synchronized, I've reverted the procedure back to the
MS generated one.
Damien >> Stay informed about: Error 20508 followed by "cannot insert value NULL" |
|
| Back to top |
|
 |  |
External

Since: Nov 11, 2008 Posts: 1
|
(Msg. 3) Posted: Tue Nov 11, 2008 2:04 am
Post subject: Re: Error 20508 followed by "cannot insert value NULL" [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi,
I am facing the similar situation, I am using SQL2000 and my subscriber is
updatable, when I am trying to update the subscriber in Northwind database
(Dummy Database for R & D), Categories table, Picture (DataType Image), this
is giving me the same error,
You can handle this by modifying the SP, but I dont have control over the
application and SP as this is pre existing application which is running from
years.
So do you have any idea how to handle this scenario without changing the
table structure and SP?
Thanks
Brij Mohan
http://www.dotnetglobe.com
"Damien" wrote:
> On Oct 22, 2:10 pm, Damien <Damien_The_Unbelie....DeleteThis@hotmail.com> wrote:
> [snip]
> >
> > Yesterday, I applied a large number of inserts/updates within a
> > transaction on the subscriber. During this process (it took several
> > hours), an error appeared, error 20508, stating that "The text/ntext/
> > image values inserted at Subscriber will be NULL". However, given that
> > it continued to perform processing, and didn't cause the whole trigger
> > to rollback, I assumed that this was going to be somewhat okay.I
> > believed I'd be able to update these particular rows later at the
> > publisher, if needs be.
> >
> [snip]
> >
> > However, on further review, I find that the push synchronizations
> > haven't been succesfully occurring since the early hours of this
> > morning. The error message is that it "cannot insert value NULL into
> > column X". Now, the column in question isn't nullable, but given it
> > seemed to cope with this matter at the publisher (by inserting a blank
> > string instead), I'm not sure what to do with it now.
> >
> [snip]
>
> I've managed to resolve my specific problem now - I altered the
> automatically generated insert stored proc on the subscriber to
> explicitly check for null and replace with an empty string. Now
> everything has synchronized, I've reverted the procedure back to the
> MS generated one.
>
> Damien
> >> Stay informed about: Error 20508 followed by "cannot insert value NULL" |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|