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