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.

Mixpanel Actions Destination Drops Events with '<ID_value>' is not an allowed distinct_id Error

 

Issue

When sending events to Mixpanel via the Actions destination, events are dropped and a 400 Bad Request error is returned: "'distinct_id' is invalid: '<ID_value>' is not an allowed distinct_id". This issue occurs when the event payload includes a distinct_id value of "Unknown" or other disallowed values.

 

Product

Twilio Segment

 

Environment

Segment Console

 

Cause

Mixpanel’s /import endpoint enforces restrictions on the values allowed for the distinct_id property. Values such as "Unknown", "System", and other reserved terms are not permitted and will cause the event to be rejected.

The list of blocked values is:

- 00000000-0000-0000-0000-000000000000
- anon
- anonymous
- nil
- none
- null
- n/a
- na
- undefined
- unknown
- <nil>
- 0
- -1
- true
- false
- []
- {}

 

Resolution

  • Ensure that the distinct_id property in event payloads does not use restricted values such as "Unknown" or "System".
  • If your use case requires such identifiers to be used, you can disable the Strict Mode in the destination settings. With strict mode enabled, Mixpanel will validate the events you are trying to send and return errors per event that failed.
     

Additional Information 

Learn more about the Mixpanel Import Events API

 

Have more questions? Submit a request
Powered by Zendesk