on 01-08-2009 10:42 PM
Hi Experts,
Here is another problem I am facing. I am getting an exception during record update.
com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: One or more records failed a validation
I am not able to print additional info about the exception. How to find out exacty which validaton or assignment failed. Please let me know.
Thanks
-Sai
Hi Sai,
Is your problem solved? If yes, then please mark the thread as answered. If no, then use the following code:
{
int failedValidations = validateRecCmd.getValidationResult().getTotalValidationsFailed();
if (failedValidations > 0) {
for (int cnt = 0; cnt < failedValidations; cnt++) {
messages.addvalidateRecCmd.getValidationResult).getFailedValidations(recrd.getId())[cnt]
.getMessage());
}
}
}
where messages is arrayList which will contain all the error messages where the validations failed.
Hope it helps.
Regards.
Rajat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai,
If you have created a Validation in MDM and are trying to create or update the record through EP and the validation fails then the Error or warning message that you have given in the MDM Data manager must pop up in EP.
This error or warning message must talk about the validation that it is checking.
All the validations that fail will show up their validation message on EP based on what you have typed in MDM data manager.
This will let yoiu know exactly which validations has failes.As for assignments i am unsure about using MDM assignments through EP.
Hope it helped
Thanks & Regards
Simona Pinto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.