on 02-05-2009 2:00 PM
Hi,
I am getting this error "com.sap.mdm.internal.protocol.manual.ServerException: Information out of date"
while trying to update a record using MDM APIs.
Please help
OK guys,
I think I figured it out.
The reason for you to get this message is that your record has been updated in the meanwhile. There is probably a workflow and assigment that does this update automatically on the MDM server.
This update makes the record you are about to update out-dated, therefore you have to re-extract it again just before you write in it.
What I do is:
//Retrieve the Record again in case it changed (Using the same connection)
cmd.execute();
recs = cmd.getRecords();
rec = recs.getRecord(0);
rec.setFieldValue(<FieldId>, <MdmValue>);
ModifyRecordCommand modify = new ModifyRecordCommand(<connection>);
modify.setSession(<sessionId>);
modify.setRecord(rec);
modify.execute();
That worked for me.
Best regards,
Boris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm getting absolutely the same error message and it's not consistent.
I think this is because we have a listener that updates the process in the background and by the time I try to save the record, it's been already updated by another process, but I can't be sure.
Once again, sometimes it saves the record, sometimes it doesn't and gives me the error above.
Any help is appreciated.
Regards,
Boris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.