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

formatbyexample issue

mohammadaamir_khan
Participant
0 Kudos
2,112

Hi All,

I am doing mapping to various table based on condition. I am creating table node based on condition.

In one field mapping I am using FormatbyExample. It is working fine.

Issue happens when data is for another scenario and FormatbyExample should not be used as that table node is not supposed to create. It is giving error "queues do not have the same number of values" because data is not for this scenario.

How to avoid this error.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member190293
Active Contributor
0 Kudos

Hi!

You could use conditional functions (IfWithoutElse/IfThenElse), for example, to check if FormatByExample should be used or not.

Regards, Evgeniy.

mohammadaamir_khan
Participant
0 Kudos

Hi Evgeniy,

If I am putting the IfThenElse, it is not returning complete list if condition is true.

mohammadaamir_khan
Participant

Hi Evgeniy,

i used ifWithOutElse and UseoneasMany combination solved the issue.

Answers (1)

Answers (1)

mohammadaamir_khan
Participant
0 Kudos

Hi Suchita,

Both queue are different and incoming data is not for this scenario al together, but PI is still trying to map it though parent node is not created with CreateIf negation.

I want to avoid the error so that mapping will give proper node result.