Skip to Content
avatar image
Former Member

Value Mapping Error Handling

Hello,

I am trying to handle value mapping errors with an UDF (User Defined Function) with the mapping editor.

I was successful to simulate the standard valueMapping function (return the input value if value mapping is not found).

Here a part of my source code:

try { 
return  XIVMService.executeMapping(src, dst, source); 
} catch (ValueMappingException e) { 
return (source); 
}

Is any way to fill the default ExchangeFaultData (defined in Design in inbound Message Interface) with exception's information when ValueMappingException is thrown?

Thanks,

S. LAMINE

Edited by: S.Lamine on Jan 15, 2009 9:34 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 15, 2009 at 09:38 AM

    Hi,

    >>Is any way to fill the default ExchangeFaultData

    I'd say this is not possible to achive in standard

    but maybe someone else has done such a thing

    Regards,

    Michal KRawczyk

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 15, 2009 at 09:46 AM

    Hi S,

    please follow Michals excellent blog [XI/PI: Throwing Generic Exceptions from any type of Mapping|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6398] [original link is broken] [original link is broken] [original link is broken];

    I think the ExchangeFaultData can be filled only in case of application fault.

    Regards,

    Udo

    Add comment
    10|10000 characters needed characters exceeded