cancel
Showing results for 
Search instead for 
Did you mean: 

Error while creating new user via new MDM API

Former Member
0 Kudos

Hi

I have two questions:

1) Is it possible to create a user in MDM via MDM4J?

2) I am trying to create a user through new MDM API (not the MDM4J). When I execute the command CreateUserCommand, I get following error:

com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: MDM repository data is out-of-date or is locked by another MDM Server. Refresh the data and try the operation again. If the error persists, contact the system administrator.
	at com.sap.mdm.security.commands.CreateUserCommand.execute(CreateUserCommand.java:93)
	at demo.dm.GetRoleList.main(GetRoleList.java:206)

Here is the code that I execute:

CreateUserCommand createusercommand =

new CreateUserCommand(connections);

createusercommand.setSession(repsessionId);

UserProperties userpp = new UserProperties();

userpp.setName("Vijendra");

//userpp.setRoleIds(roleids);

createusercommand.setUser(userpp);

//createusercommand.setInChangeStamp(-1);

//System.out.println(createusercommand.getOutChangeStamp());

try {

createusercommand.execute();

} catch (CommandException e) {

e.printStackTrace();

return;

}

Thanks

Vijendra

Edited by: Vijendra Bhanot on Feb 22, 2008 6:42 PM

Edited by: Vijendra Bhanot on Feb 22, 2008 6:49 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Vijendra,

Please check your mailbox for my reply.

Good Luck!

Gerwin

Former Member
0 Kudos

Hi

I am also getting same exception.

com.sap.mdm.internal.protocol.manual.ServerException: MDM repository data is out-of-date or is locked by another MDM Server. Refresh the data and try the operation again. If the error persists, contact the system administrator.

Please help me.

Thanks & Regards

Vinit

Former Member
0 Kudos

Hi,

were you able to resolve this issue, if yes please let me know how ?

Thanks,

Vinit Pugaliya

Former Member
0 Kudos

Hi Vijendra,

If you can do,restart your server and then try.This error comes sometimes due to overloading on the server.

Regards,

Dheeraj.