Concatenate the segment code of parent segment with the child segment | Community
Skip to main content
Level 2
Jan 18, 2022 3:01 PM UTC
Solved

Concatenate the segment code of parent segment with the child segment

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 

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Kishore_Padamata
Kishore_PadamataAccepted solution
Employee
Feb 4, 2022 8:02 AM UTC

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

Hope this helps!

9 replies

Kishore_Padamata
Kishore_PadamataAccepted solution
Employee
Feb 4, 2022 8:02 AM UTC

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

Hope this helps!

Translate
Sukrity_Wadhwa
Employee
Feb 16, 2022 8:49 AM UTC

Hi @saurav_pincha,

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

Thanks!

Translate
Sukrity Wadhwa
Sukrity_Wadhwa
Employee
Jan 27, 2022 10:39 AM UTC

Hi @saurav_pincha, 

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

Thanks!

Translate
Sukrity Wadhwa
Level 2
Jan 27, 2022 11:05 AM UTC

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.

Translate
Sukrity_Wadhwa
Employee
Jan 27, 2022 4:50 PM UTC

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

Translate
Sukrity Wadhwa
David_Loyd
Employee
Jan 18, 2022 3:09 PM UTC

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'

 

Translate
Level 2
Jan 18, 2022 3:37 PM UTC

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.

Translate
David_Loyd
Employee
Jan 18, 2022 4:08 PM UTC

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

Translate