on ‎2015 Jan 29 8:26 PM
Hi Gurus,
I am facing below error during initial load of one our system with further investigation & pointers from SAP , we have found that every privileges uploaded from back-end system contains attributes with duplicate values
Initial Load Error screen shot.
Query result.
Query result detail.
Pherphas , Can some one guide best approach to clear duplicate enteries.
Regards,
Ali.
Request clarification before answering.
Hi,
I have seen this before, IdM creates duplicates in the mxi_values table.
Please check this in your Development system:
The following query should list all these duplicates:
select mv.mskey, mv.attr_id, mv.searchvalue, count(1) from mxi_values mv
inner join mxi_attributes ma on mv.attr_id = ma.attr_id
where ma.multivalue = 0
group by mv.mskey, mv.attr_id, mv.searchvalue
having count(1) > 1
If you want to remove the duplicate rows, this should work:
delete from mxi_values where rowid not in
(
select min(mv.rowid) from mxi_values mv
inner join mxi_attributes ma on mv.attr_id = ma.attr_id
where ma.multivalue = 0
group by mv.mskey, mv.attr_id, mv.searchvalue
)
These queries are fir Oracle.
Regards,
Ole K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.