Skip to contentSkip to navigationSkip to topbar
On this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Frequently Asked Questions


FREE x
TEAM x
BUSINESS
ADDON x

Why is my event failing ingestion with the error "context.consent.categoryPreferences object is required"?

why-is-my-event-failing-ingestion-with-the-error-contextconsentcategorypreferences-object-is-required page anchor

A context.consent.categoryPreferences object is required error occurs when you send the Segment Consent Preference Updated event without the context.consent.categoryPreferences object. Segment performs a validation on the Segment Consent Preference Updated event to ensure that you've correctly structured your end users' consent preferences. If the required object is missing, Segment won't ingest the event and the event won't appear in downstream tools.

Other events, like Track, Identify, or Group, are not subject to the same consent validation and do not require the context.consent.categoryPreferences object.

If you're using a Consent Management Platform (CMP) integration other than Segment's Analytics.js OneTrust wrapper, you must ensure your Segment Consent Preference Updated events contain the context.consent.categoryPreferences object.