cancel
Showing results for 
Search instead for 
Did you mean: 

validating Line items count with count value field.

Former Member
0 Kudos

Hi All,

My scenario is Proxy to file. Where my reuirement is to validate count of lines in the Items structure with count value in the summery strucre. If number of line items count don't match with count value in summary structre i need fail that message.

Please let me know how to acheive this requirement. Thanks in advance.

Regards,

Rajesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Where do yo want to fail the message? I mean in R3 or in XI (mapping).

Since you are using outbound proxy therefore you can do the same in R3 itself.

Regards,

Sarvesh

Former Member
0 Kudos

Hi Sarvesh,

I want to fail the message in XI mapping. The requirement is to fail in the middleware if count doesn't match.

Please let me know any inputs.

Thanks,

Rajesh

Former Member
0 Kudos

Use count function(Statistic) to count the line item occurances and compare(equalsS) the value with summary value.Use If Then function to validate the result and map the target node accordingly

former_member200962
Active Contributor
0 Kudos

The target node should be mandatory (occurence 1..1) to achieve this.

Count1-->
       -->Equals --> ifWithoutElse (Then --> SomeSourceNode) --> Target
Count2-->

Now if the count is not the same then the above logic will fail and hence the mapping (since target is mandatory)

Regards,

Abhishek.

Former Member
0 Kudos

You can fail the message in mapping with the logic given as above, but this will create a red flag message in MONI, if you are ok with that then go ahead, else let us know what exactly you want when message fails.