cancel
Showing results for 
Search instead for 
Did you mean: 

Value Mapping Error Handling

sab125
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

udo_martens
Active Contributor
0 Kudos

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