on 02-22-2008 12:25 PM
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
Hi Vijendra,
Please check your mailbox for my reply.
Good Luck!
Gerwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi Vijendra,
If you can do,restart your server and then try.This error comes sometimes due to overloading on the server.
Regards,
Dheeraj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.