cancel
Showing results for 
Search instead for 
Did you mean: 

Multi Mapping: Error in If Then condition

former_member257758
Participant
0 Kudos

Hello Guru's,

My requirement is to populate multiple target objects based on the source field called location. For testing I have tried If Location = india then source objects will be mapped to MT_Tfile1 other wise it should be mapped to MT_Tfile2(while mapping i am concatenating Fname and Lanme to Name to MT_Tfile2) . See the below mapping screen for more details.

I am getting error when i try to do test with some input values.

Not able to figure out what could be the error. Can you pls suggest/help what is the issue here?

Thanks

Arun

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi.

You must use Standar function equalsS (String) and not equals(boolean)

Regards

Lucho.

former_member257758
Participant
0 Kudos

Hi Luis,

Thanks for the response. As suggested I have used the standard function and there is error during compilation.  But mapping is not working as expected. It is displaying only first record. See the below screen shot.

Any suggestions?

Thanks

Arun

Message was edited by: Arun D

Former Member
0 Kudos

Hi Arun,

It does not create any other message because you've only set and IFTHEN condition. When India, MT_Tfile1 is created, but when others nothing is done.

Cheers,

Edu

former_member257758
Participant
0 Kudos

Hi Bertoni,

I did the mapping for MT-Tfile2 as well. Pls see the below screens hot.

But with this straight mapping, MT_Tfile2 is not populated for the data entered which is not equal to India. It got worked when changed the context of the filed location to messages, see the below screen.

Can you pls explain the logic behind it? i tried to check with display queue but not able to figure out how it worked.

Thanks

Arun

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

are you using BPM to collect messages? use equalsS functon from category text like mentiones in earlier response, it works.