Marketo Segmentation Not Working in Velocity Scripting
Hi Team,
We have a segmentation in Marketo that was working correctly during our initial testing, but it is now not working as expected. We have not made any changes to the segmentation.
The same segmentation is also causing an issue when used in another campaign. The email is always going to the else condition, and the if condition is not triggering.
I tested other segmentations, and they are working as expected. This particular segmentation is used through a Velocity Script , which was previously tested and worked correctly.
I also tried unapproving and reapproving the segmentation, but this did not resolve the issue.
#set( $portalsegment = ${lead.Segmentation_CustomerPortalSegment_1018} )
#set ($ContactId = ${lead.contactid})
#if( $portalsegment && $portalsegment.trim() == "Portal Status Is Active" )
DISPLAY A
#else
DISPLAY B
#end

Let me know if you need more details , happy to share :)
Looking forward to your help on this !!
Regards,
Akshat