Hello everyone, I'm new to Meltno and I'm trying t...
# plugins-general
s
Hello everyone, I'm new to Meltno and I'm trying to use the extractor tap-csv, but whatever config I try, I always end up with the same error :
Copy code
Cannot start extractor: Catalog discovery failed
Any idea ? The command 'meltano invoke tap-csv --help' run and print : 2022-07-25T120537.132977Z [info ] Environment 'dev' is active Usage: tap-csv [OPTIONS] Execute the Singer tap. Options: --state PATH Use a bookmarks file for incremental replication. --catalog PATH Use a Singer catalog file with the tap. --test TEXT Use --test to sync a single record for each stream. Use --test=schema to test schema output without syncing records. --discover Run the tap in discovery mode. --config TEXT Configuration file location or 'ENV' to use environment variables. --format [json|markdown] Specify output style for --about --about Display package metadata and settings. --version Display the package version. --help Show this message and exit.
p
Hey @sylvain_gutierrez - did you try using debug mode to see what error is causing discovery to fail? It could be a missing or incorrect config, or maybe it could be failing to actually parse your csv. Debug mode should give you more info though
s
The debug mode didn't give any more intels... My file is at the good format I suppose ... (I wrote it following the informations in the documentation) : "REGION","NUMMR","ACHLR","AEMM","AEMMR","AGED" "94","63416","3","2012","9","038" "94","63417","4","1997","8","067" "94","63417","4","1997","8","076" "94","63418","6","2010","9","050" In the yaml file I use the config like following : extractors: - name: tap-csv variant: meltanolabs pip_url: git+https://github.com/MeltanoLabs/tap-csv.git config: files: - entity: exemple_csv - path: extract/exemple_csv.csv - keys: - AGED csv_files_definition: - entity: exemple_csv - path: extract/exemple_csv.csv - keys: - AGED
p
The debug logs should be logging something related to this but you need either
files
OR
csv_files_definition
defined and
csv_files_definition
is a string path to a file that contains the definition. Check out https://hub.meltano.com/extractors/tap-csv. I suspect the tap is failing because youre giving an invalid
csv_files_definition
. Try removing that from your meltano.yml and see if it works
s
ok, it worked! thanks a lot ! 🙂 I had try it but visibly with a mistake... files don't works for me but csv_files_definition with a json file is good