Quantcast
Channel: SCN: Message List - SAP Replication Server
Viewing all articles
Browse latest Browse all 876

Data exception - string data right truncated error

$
0
0

Hi Team,

 

I have this weird error on my replication environment when applying a DDL change to primary server being replicated to MSA and Warm Standby.

Can some explain why I receive this error?

 

 

The command was

IF EXISTS

    (

    SELECT 1

    FROM sysobjects, syscolumns

    WHERE

        sysobjects.id = syscolumns.id                                                   

        AND sysobjects.name = 'SequentialValues'

        AND syscolumns.name = 'description'

        and syscolumns.status <> 0

     )

EXEC ('ALTER TABLE SequentialValues MODIFY description NOT NULL')

go

 

 

This executed successfully on the primary with no warning but brought the DSI down on the warm standby and MSA

 

Message from server: Message: 9502, State 9, Severity 16 -- 'Data exception - string data right truncated'

 

The DSI thread for database 'WSBSRV.DB' is being shutdown. DSI received data server error #9502 which is mapped to STOP_REPLICATION. See logged data server errors for more information. The data server error was caused by output command #0 mapped from input command #0 of the failed transaction.

I. 2015/10/29 14:44:30. The DSI thread for database 'WSBSRV.DB' is shutdown.

 

E. 2015/10/29 14:48:21. ERROR #1028 DSI EXEC(466(1) MSASRV.DB) - dsiqmint.c(4722)

        Message from server: Message: 9502, State 9, Severity 16 -- 'Data exception - string data right truncated'

 

The script first does the following

1. first add the field

ALTER TABLE SequentialValues ADD description varchar(100) NULL

 

2. update the column to make sure non of the data is null

 

3. then alter the table to make it not null

 

When I look at the primary table table the largest data length in that column is 70, which is well below the 100 defined on the table

 

SELECT max(char_length(description)) FROM dbo.SequentialValues

 

I was able to resume the DSI only after manually applying the same command on the WSB and MSA database.

On resumption of the DSI the following warning message was displayed but the transactionwas able to continue

 

. 2015/10/29 16:24:33. The DSI thread for database 'WSBSRV.DB' is started.

I. 2015/10/29 16:24:33. Message from server: Message: 13925, State 1, Severity 10 -- 'Warning: ALTER TABLE operation did not affect column 'description'.'.

I. 2015/10/29 16:24:33. Message from server: Message: 13905, State 1, Severity 10 -- 'Warning: no columns to drop, add or modify. ALTER TABLE 'SequentialValues' was aborted.'.

I. 2015/10/29 16:24:33. Database 'WSBSRV.DB' returns messages that are mapped to IGNORE or WARN by error action mapping. See logged data server messages for more information.

I. 2015/10/29 16:26:00. The DSI thread for database 'MSASRV.DB' is started.

I. 2015/10/29 16:26:00. Message from server: Message: 13925, State 1, Severity 10 -- 'Warning: ALTER TABLE operation did not affect column 'description'.'.

I. 2015/10/29 16:26:00. Message from server: Message: 13905, State 1, Severity 10 -- 'Warning: no columns to drop, add or modify. ALTER TABLE 'SequentialValues' was aborted.'.

I. 2015/10/29 16:26:00. Database 'MSASRV.DB' returns messages that are mapped to IGNORE or WARN by error action mapping. See logged data server messages for more information.


Viewing all articles
Browse latest Browse all 876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>