on 06-20-2016 4:20 AM
Hi folks,
Today one table in our SLT system keeps getting the error "
". This error happened when I update or delete a row in our source system(SYBASE). Table's name is SLT_TEST1.
I have followed the note 1919356 but it didn't help.
My detail steps:
first try:
1. update or delete a row in source system
2. find the errors and follow note 1919356
3. no help, so I stop and restart the replication
4. but the transfer behavior is 1 after the restart
Second try:
1. stop and restart replication
2. follow 1919356
3. update or delete a row in source system
4. the error happens...
This table's primary key was modified one week ago.
Anyway, I tested another table SLT_TEST2 with no errors.
So please suggest me how to resolve it or investigate the reason.
Thank you!
Chong
Hmm...This issue has been resolved.
The reason is that you have to make sure that the columns specified in the primary key should be the first N columns in the table. N is equal to the number of columns the primary key has.
Suppose you have a table call TEST1 with columns of col1, col2, col3, col4, col5. And you create a primary key on (col1, col4, col5). If you update on col2 or col3, or you delete a row, duplicate error will occur.
You have two options the fix it. one is to ask the db administrator of the source system to modify the table structure. one is to modify it in the SLT table settings(LTRS).
Chong
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amar,
sorry for the late reply as i'm dealing with BO reports....
The table structure in the source system as below:
table structure with the above error:
Modify the table to below structure:
As the first picture, after the initial load, SLT is successful and table is created in HANA with a primary key with (ZRUNSA, MATNR, REC). But SLT will treat (ZRUNSA, DOC_TYPE, FLAGS) as a primary key when you update or delete on the source table. That will cause the duplicate key error.
This conclusion is just based on the results I tested. Need official explanation!
Regards,
Chong
Even I recreate the configuration , it still throws the same error.
so confusing..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.