Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8526

error in clearing duplicate values of custom attribute

$
0
0

Hello IDM experts,

 

IDM 7.1 SP7

DB: Oracle 3.0.04

I have one custom attribute "Z_REQUESTTYPE"  having same value assigned twice for many users (MX_PERSON) .

MSKEYATTRNAMEAVALUESEARCHVALUE
Z_REQUESTTYPEMASSLOADMASSLOAD
Z_REQUESTTYPEMASSLOADMASSLOAD

 

Removing this attribute (attribute is set as multi-value attribute) for the affected user using uIS_SetValue(mskey, 2 , "Z_REQUESTTYPE", "") or {R} operator using below statement does not work.

MSKEYVALUE           %USER_ID%

changetype                modify

Z_REQUESTTYPE     {R}

 

I think it would work using DELETE sql query but how to do it using IDM without using DELETE sql query.

 

Instead, I get below error on execution of above statement.

Error

putNextEntry failed storing<user>

Exception from Modify operation:com.sap.idm.ic.ToPassException: ToIDStore.modEntry failed modifying entry '<user>'. IDStore returned error message: "DATABASE EXCEPTION:java.sql.SQLException: ORA-01422: exact fetch returns more than requested number of rowsORA-06512: at "MXMC_OPER.MXI_DELETEMULTI", line 265ORA-06512: at "MXMC_OPER.MX_UTILSETATTRIBUTE", line 1601ORA-06512: at line 1" when clearing attribute Z_REQUESTTYPE

 

However, I could delete this attribute with different values for affected users as shown below.

MSKEYATTRNAMEAVALUESEARCHVALUE
Z_REQUESTTYPEMASSLOADMASSLOAD
Z_REQUESTTYPEHRHR

 

I tried to create same value of this attribute Z_REQUESTTYPE twice for a user by executing uIS_SetValue(mskey, 2 , "Z_REQUESTTYPE", "MASSLOAD") or {A} operator two times but it does not add same value twice to this attribute for the user.

MSKEYVALUE           %USER_ID%

changetype                modify

Z_REQUESTTYPE     {A}MASSLOAD

 

I wonder how I have many users with same value twice for this attribute.

If I try to create duplicate entries using insert sql query, then it is possible.

 

Kindly assist on how to delete both same values for this attribute for all affected users.

 

Your help is greatly appreciated.

 

Thanks & Regards,

Pradeep


Viewing all articles
Browse latest Browse all 8526

Trending Articles