Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Concatenate the segment code of parent segment with the child segment

Avatar

Level 1

I have two parent groups - Control and Offer and within them we will define multiple segments, say for example - Seg_A, Seg_B etc. When I get the final output I want something like this - Control.Seg_A, Offer.Seg_A etc.

 

When I check the option 

sauravp_0-1642517980798.png

in the Split activity I get the following error - XTK-170036 Unable to parse expression '[targetData/@segmentCode]+'Seg_A''

 

Is there a way to make this work or any workaround that can be used. I want to avoid manually entering the extended code every time.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hello @sauravp 
In the second split activity (where you see the error) > General tab please update the Filtering settings to Use the additional data only

kishorep_0-1643961707082.png

Hope this helps!

View solution in original post

1 Reply

Avatar

Level 5

Have you double checked the usage of quotes? Sometimes you have to go into the expression editor to check them. The visual is sometimes odd. The error you have looks like your quotes are in the wrong place.

I believe you want something like this.

'[targetData/@segmentCode]' + 'Seg_A'

 

Avatar

Level 1

The expression is being generated within the activity.

The error is because it is looking for targetData/@segmentCode, whereas the segmentCode from the previous activity is accessible directly as @segmentCode.

Avatar

Level 5

Can you add a screen shot of the activity with the targeting?

Avatar

Level 1

sauravp_0-1643281768156.png

This is a sample of how it will be in the workflows. First segment would be control or offer and then further segments will be created on those. Finally the segment which is stored in broadLog should look like - Control.Seg_A or Offer.Seg_B

Avatar

Administrator

Hi @sauravp

Were you able to resolve this query or do you still need more help here? Do let us know.

Thanks!

Avatar

Level 1

Hi @Sukrity_Wadhwa , 

 

The issue is not resolved. We are manually setting the concatenated segment codes for now. 

 

This looks like a bug in the activity code, which is preventing me from using it as intended.

Avatar

Administrator

Thanks for the update! I will escalate it further among SMEs and see if they can help you further.

Avatar

Correct answer by
Employee Advisor

Hello @sauravp 
In the second split activity (where you see the error) > General tab please update the Filtering settings to Use the additional data only

kishorep_0-1643961707082.png

Hope this helps!

Avatar

Administrator

Hi @sauravp,

Was this solution helpful to resolve your query? Do let us know.

Thanks!