on 2014 Jan 15 6:45 PM
I have to do one requirement to calculate the Time in job based on the Employee, position, job role and job stage. but here employee and cal month are the direct source fields, remaining fields are looking up in to Two other DSO's. So I wrote the code at End routine, the expected result will be the one employee might be more than one position, job role and job stage, but I got an error when i am executing the DTP that is - duplicate data record detected when updating to the DSO. actually there is no duplicate records with Key field combinations that is employee,position, Job role, Job stage and cal month.
I found only Employee and Cal month are the semantic keys at semantic group, I did not found any more keys which i mentioned in the DSO. key fields.
and I have tried with start routine also, same error facing , even i did not find any more keys at the semantic group,
one more surprised thing is I have opened the new data table at se11 and i checked the 5 key fields at new data table level, then it will be working fine,
and i got expected records. same thing i am not able to follow in production system with fire fighter access also.
any body please help me out on this.
Dommaraju,
Can you provide a little bit further information on what you are trying to do. It seems that your DSO key that you are writing to is incorrect. Are you trying to create additional records or just add values to fields in the same record? Let me know and I will be able to provide additional help.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
While activation you must be getting the error because your record count should be unique which in your case is not.
You need to modify the code by adding few lines which increase the record count--This can be done with the help of RECORD field available in the structure of End routine.
Regards,
AL
At first place why are you changing the key fields of new data table--you are not supposed to do that.
Just because you have given the developer authorization that does not mean you need to change the keyfields
It is pretty evident that when you select other objects as part of keyfields then your record becomes unique else you can see that based on the three Keyfields of new data table-SID--Datapakid--Record
Your first two records are same.So obviously as i suggested in my last reply you need to increase the record count for extra records which you are appending to the table.
This will solve the issue.
Regards,
AL
Hi Anshu,
You are telling correct, but for testing purpose i checked the key fields in new data table.
You are correct, The record Id should be unique, then only data will load to table,
Now I am implementing this in End routine, once it will be working fine, come back to you.
Can you please share the code for unique record, if you have.
Thanks.
These kind of issue will occur when we have time dependent master data. So could you please check the data available in data target before hand when you are updating data from below layer.
It would solve your problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dommaraju,
I would suggest can you please check your DSO key combination once again and comapre with source data.
Can you please check in SE11 for keys for new and active table for your DSO
/bic/Adsoname00
/bic/Adsoname40.
I think you need to modify you DSO keys according to your requirement.
regards,
Ganesh Bothe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ganesh,
Actually from the source only Two fields data is coming (Employee Cal month and source system) The error is showing when the records are loading to New data table, not to Active data table, I am able to see the keys and it is default checked in active data table at se11, but not in New data table, Can you please see the above post...
Thanks.
Hi,
In New table you will not have DSO key fields checked in SE11. In New table you will have always SID, Data packet Id and Record as key field.
In Active table only you will have same key fields in SE11 and in DSO.
I think your APPEND coding have some issue. May be share your coding so that we might help you better.
Regards,
Poomagal S.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dommaraju,
In your error msg it says "Records filtered in advance as error records with same key already exist"
So what's happened here is this: at some time in the past (not necessarily in current load) there were some records with the same semantic key that were marked as error due to some issue. Maybe they had invalid characters or some other problem with the record. Anyway, the important bit is that because they were marked as error records, if a record with the same key comes in a future DTP request (like the one you're running now) you will get this error.
The way to fix it is to open up the Error DTP and identify the records belonging to the same sem. key. Either delete those records from the Error DTP or fix them. Then execute the error DTP followed by the regular DTP.
Regards,
Suhas
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.