How to map this value?

Product/components used and version/fix level:

Integration Server 10.5

Detailed explanation of the problem:

I’m trying to map this email address but this logic isn’t working. Why?

%/billToContactPoint/email/fullAddress% == /[^ ]/

There are no errors, the automation never goes into that label.
What is wrong?

Thank you

Error messages / full error message screenshot / log file:

Question related to a free trial, or to a production (customer) instance?

production customer

1 Like

If I recall correctly (have not explicitly done this) only one path of the steps under the branch will ever be executed – the first one that matches.

I would structure your steps differently.

BRANCH on '/billToContactPoint/id/schemeName'
..NIF: BRANCH on '/billToContactPoint/id/value'
..../\S/: SEQUENCE
......MAP
BRANCH on '/billToContactPoint/email/fullAddress'
../\S/: SEQUENCE
....MAP

The /\S/ regex is similar to /[^ ]/ but applies to any whitespace (tab, newline) not just spaces. It will be selected if the value is not null and not just whitespace.

2 Likes

That’s it @reamon

Thank you, thank you, thank you.

I hope you can have a great day ahead.

Cheers!

1 Like