Error when discovering schema for Facebook Marketing source with 'mmm' breakdown

Summary

The user encountered an error when trying to discover the schema for a Facebook Marketing source with ‘mmm’ breakdown. The error was a KeyError for ‘mmm’. The discrepancy was found between the ‘facebook_business’ Python package and the ‘ads_insights_breakdowns.json’ schema.


Question

Hi all!
I tried to set up a new Facebook Marketing source with “Custom Insights” and the “Breakdowns” set to mmm .
The source was saved successfully.
When setting up a connection, discovering the schema failed with error message: KeyError: 'mmm' .
After digging in the code, I found that Facebook Marketing Source setup page is using the facebook_business Python package, which contains mmm as valid breakdown.
However the “ads_insights_breakdowns.json” schema (which I guess is used when discovering the schema) doesn’t have mmm as a valid property.

  1. Is this the right place to make a change request to add mmm as a valid property?
  2. Is it by design that the source setup screen and the schema discovery code are using different sources of truth to identify valid breakdowns?
    Thanks! :pray:

Airbyte version: 0.63.4



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

["facebook-marketing-source", "schema-discovery", "keyerror", "facebook-business", "ads-insights-breakdowns"]