SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Troubleshooting Outdated Computed Trait Values in Segment Unify

Issue

A computed trait in Segment Unify, such as a "last device ID on sign up" trait, appears to show the wrong value. The value in the Profile Explorer or in Profile Sync (for example, in Databricks) doesn't match the value you expect from your event data, or it differs from the same trait in another warehouse table such as BigQuery. It can look like the trait is holding an older value instead of the one from the most recent event.

 

Product

Segment

 

Environment

Segment Console

 

Cause

A computed trait set to return the most recent (last) value of an event property uses the event with the latest timestamp on the profile. If a profile has more than one qualifying event, for example two Signed Up events a year apart, the trait takes its value from the newer one.

Discrepancies usually come from comparing the trait against a different source that uses different logic. A warehouse table or a custom query may pick a value by a different rule, such as the first row returned, a MIN or MAX aggregation, or a filter that leaves out the newer event. That source then shows the older event's value while Segment shows the newer one.

 

Resolution

  1. In the Segment Console, go to Unify > Profile Explorer and open the affected profile.
  2. Note the current value of the computed trait on the Computed Traits tab.
  3. Open the Events tab and find every event that feeds the trait. Compare their timestamps and property values.
  4. check that it's set to the most recent value and that it isn't filtered to a subset of events.
  5. If the trait value matches the property on the event with the latest timestamp, the trait is computing correctly.

 

Additional Information 

Have more questions? Submit a request
Powered by Zendesk