on 08-04-2011 1:51 PM
Hi all,
How create the SMQ2 error through program ?
Any idea ... please share.
Regards,
Srikanth
Hi,
Use UDF to create custom error in mapping and if it is a EOIO then this message will stop the queue.
public String CreateError(String input,Container container)
{
if(input.equals('error"))
{
throw new RuntimeException(" Mapping will be failed");
}
return "";
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Suppose for a particular value from source you want to fail the interface and stop the message in queue
then you use this PI mapping UDF in between mapping of that field.
Sourcefield--
>Target
If source field value is equal to ERROR then UDF will create a custom mapping error and subsequenly it will fail in Queue.
If source field value is not equals to ERROR then no error will be created.
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.