on 12-16-2005 5:28 PM
Hi All,
When we test a mapping under the <b>test</b> tab in mapping,
it displays a trace like "Executed succesfully" or
"cannot produce target element elementname".
I am facing a scenario where i need to capture this and send this message back to the sender.
Can some body help me in this.
Thanks.
Regards.
Disney joe.
You can do this with BPM.
Catch the exception of the transform step and send the message back.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Disney,
Check all the mandatory fields in your target structure are getting mapped at runtime. Though you might have mapped all the mandatory fields in target at design from the source but runtime(when you execute) if value does'nt exist in the source then the mapping might give this error.
You can also use 'display queue' function to check if all the mandatory fields have some values in the queues.
Regards
Anand
Message was edited by: Anand Torgal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anand,
Thanks for your reply.
Actually I am doing validations, so when the mapping fails i need to send a message back to the sender , stating that "mapping failed due to the field that errored out".
It is enough if i send the exception messgae that
XI is throwing like " cannot produce target element elementname" ( in the test tab of mes mapping).
Thanks.
Regards.
Disney.
Hi Disney,
what kind of validations you are doing ?
You can avoid your mapping from failing in your java code and send a appropriate message instead. Just map blank values or constants to the mandatory target fields whenever your validation fails. Have additional field in target to capture the exact reason for this failure.
Other option is let your mapping fail and you can raise an alert and send a generic message instaed.
It all depends on your scenario.
Regards
Anand
hi,
>>Actually I am doing validations, so when the mapping >>fails i need to send a message back to the sender , >>stating that "mapping failed due to the field that >>errored out".
when a mapping error occurs you cannot send back custom error messages, XI will return a generic error "Server Error". One has to look into sxmb_moni to know waht exactly the error was. or the sender can catch soap exception.
cheers,
naveen
Message was edited by: Naveen Pandrangi
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.