cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cannot cast to Boolean error

Former Member
0 Likes
6,379

Hi

I am working in a multimapping in PI 7.1. I have two Idocs at target side. I used this logic to create the IDocs

If FieldA  equalsS constant XY or YZ, then MT_Sender is IDoc one

I used Boolean Or, Text function equalsS, if without else also

My requirement is like that if a particular field in Source file has XY or YZ, Ist IDoc should be created.

However I get this error in Message Mapping test tab, that

FunctionException: Cannot cast 'XY' to boolean] in class com.sap.aii.mappingtool.flib7.Bool method or[XY, YZ, com.sap.aii.mappingtool.tf7.rt.Context@111644f0] com.sap.aii.utilxi.misc.api.BaseRuntimeException: Exception:[com.sap.aii.mappingtool.tf7.FunctionException: Cannot cast 'XY' to boolean] in class com.sap.aii.mappingtool.flib7.Bool method or[XY,YZ, com.sap.aii.mappingtool.tf7.rt.Context@111644f0]

View Entire Topic
Former Member
0 Likes

HI Radhka,

To the OR boolean function are arriving not boolean values, are you using it after the equalS function?, could you share you mapping?

Regards.