cancel
Showing results for 
Search instead for 
Did you mean: 

Storing MX_MANAGER attribute

Former Member
0 Kudos

Hi all,

I want to store the entry type MX_PERSON with the attribute MX_MANAGER in the identity store. All attributes are from a SQL Database like this:


ID	Name	Manager
1	Hook 	2
2	Wolf	3
3	...	...
...

For but if I run the job which stores the data in my identity store, i get an error:


Exception from Add operation:com.sap.idm.ic.ToPassException: 
ToIDStore.addEntry failed storing entry '1'. 
IDStore returned error message: " Referenced entry is of wrong entry type:
Attribute: MX_MANAGER" when storing attribute 'MX_MANAGER=2'

How can i store the attribute MX_MANAGER...?!

Thanks you for your help...

Accepted Solutions (0)

Answers (1)

Answers (1)

renefeisterSAP
Advisor
Advisor
0 Kudos

Hello,

when you store MX_MANAGER data pointing to an existing MX_PERSON you have to store the MSKEY of the MX_PERSON object, not the MSKEYVALUE.

If during runtime you want to get the MSKEY of an existing MSKEYVALUE you can use syntax (the brackets make the calculation) or use a small script that gets the MSKEY for the current MSKEYVALUE.

Hope that helps a bit,

Regards.

René Feister

SAP Consulting Germany