Hi! I am trying to get tap-facebook to load specif...
# announcements
z
Hi! I am trying to get tap-facebook to load specific data by including a schema.json. I've tried following the docs for schema extra, but it seems that it is not working. Here's the error I receive when I try to list if tap-facebook will load the schema:
Copy code
C:\devABI\abi>docker run --interactive -v %cd%:/projects -w /projects meltano/meltano select --list --all tap-facebook
Cannot list the selected attributes: Could not find catalog. Verify that the tap supports discovery mode and advertises the `discover` capability as well as either `catalog` or `properties`
Here's my meltano,yml
Copy code
extractors:
  - name: tap-facebook
    pip_url: git+<https://gitlab.com/meltano/tap-facebook.git>
    config:
      account_id: '367982704370551'
      start_date: '2020-10-01'
    settings:
      _schema: fb_schema
      env: TAP_FACEBOOK__SCHEMA
Here's my .env
Copy code
TAP_FACEBOOK__SCHEMA=./catalog.json
d
@zlatan That
meltano.yml
doesn't quite look right! Are you trying to use https://meltano.com/docs/plugins.html#catalog-extra? Is there a specific reason you want to provide a manually generated catalog instead of using
meltano select
(https://meltano.com/docs/integration.html#selecting-entities-and-attributes-for-extraction)?
z
This actually works better. Thank you.
Is there an easy way to chain multiple fb ad accounts? It seems that only one ad account ID is allowed per tap?
d
@zlatan Right now, the only option is to use env vars for each pipeline: https://meltano.com/docs/integration.html#pipeline-specific-configuration or to add your plugin multiple times as a custom plugin and configure them separately: https://meltano.slack.com/archives/C013EKWA2Q1/p1601930908056500?thread_ts=1601926389.055800&amp;cid=C013EKWA2Q1 Configuration Profiles will bring native support for this: https://gitlab.com/groups/meltano/-/epics/51
z
Great, thanks for the help