on 10-01-2015 8:15 AM
Hi all;
i did search the issue through all article , but i did not get an answer on SDN.
is there easy way to throw exception in graphical mapping or in using UDF ?
it will check if a value is empty, and then throw exception as mapping error in sync interface.
Thank You
David.
Hi David,
The best way to do this is to code the mapping logic in the response message root node. Just output result.addSuppress() in your UDF if the condition is not met and it will fail because the root node is mandatory. You can even use ifWithoutElse in the rootnode.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
David,
Use this code
if (!var1.equals("")) {
return var1;
} else {
throw new StreamTransformationException("Here is error message");
}
public String calculate1(String var1, Container container) throws StreamTransformationException {
if (!var1.equals("")) {
return var1;
} else {
throw new StreamTransformationException("Here is error message");
}
}
Hi David,
Have you checked this blog https://scn.sap.com/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graph...?
Regards.
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.