#86954·airbyte

[source-mixpanel] Export: case-colliding property names get "_" prefix in schema but not in records, values silently dropped

Author: linkTDPCreated Sep 24, 2026Updated Sep 24, 2026
Labelscommunityconnectors/source/mixpanelautoteamteam/use

Connector Name

source-mixpanel

Connector Version

4.0.1

What step the error happened?

During the sync

Relevant information

Summary

In the export stream, property names that differ only by case (e.g. gclid and GCLID) are renamed differently in the discovered schema and in the records. As a result, the values of one of the two properties never match any catalog field and are silently dropped by the destination. No error or warning is raised.

Root cause

PropertiesTransformation (source_mixpanel/components.py) calls transform_property_names(), which resolves case-insensitive collisions by prefixing the later name (in sorted order) with _. It is applied in two places with different inputs:

  1. Schema: export_schema_loader.schema_transformations (manifest.yaml) runs it on the full list of project properties from events/properties/top. GCLID and gclid collide, so the catalog gets GCLID and _gclid.
  2. Records: export_transformations runs it on the keys of a single record. An event that only carries gclid has no collision within that record, so it is emitted as gclid.

gclid matches neither GCLID nor _gclid, so the destination drops it. The _gclid column exists but is always empty. The underscore column only gets filled when both variants appear in the same event.

When this happens

This is common whenever two senders write to the same Mixpanel project. For example, the Mixpanel JS SDK sends gclid / fbclid / msclkid on page views, while a server-side integration sends GCLID / FBCLID / MSCLKID on backend events. From the moment the second variant shows up in events/properties/top, the first one stops being synced.

Steps to reproduce

  1. In one Mixpanel project, send event A with property foo and event B with property FOO. Never send both on the same event.
  2. Discover the schema: the catalog contains FOO and _foo.
  3. Sync export: event B lands in FOO, but event A's foo value is lost and _foo is always null.

Observed impact (our project)

On $mp_web_page_view events, the SDK's gclid, fbclid, gbraid, gad_campaignid, msclkid and twclid have been dropped for months. Their _-prefixed catalog columns are 100% null. _referrer, where both variants occur in the same event, is populated, which confirms the mechanism.

Suggested fix

Make the record transformation use the same mapping as the schema. For example, compute the source_name -> transformed_name mapping once from the full property list (the same events/properties/top call the schema loader already makes), cache it for the sync, and apply it per record. Keys that are not in the mapping keep today's behaviour. This keeps the existing _-prefixed column names, so there is no schema change for existing connections. The currently empty _* columns simply start being populated.

Another approach would be to decide collisions against the configured catalog instead of the record's own keys.

Relevant log output

bash
No error is logged: the values are dropped silently.

Contribute

  • Yes, I want to contribute