I am trying to use the bq
CLI to create a BigQuery Data Transfer Service following the instructions here, but for some reason, when I run this in the PowerShell I keep getting this error:
The filename, directory name, or volume label syntax is incorrect.
Here is my command
bq mk --transfer_config --project_id=ingestion-test --data_source=google_cloud_storage --display_name='DTA' --target_dataset=Data --params='{"data_path_template":"gs://mydata-766451231152/a_*","destination_table_name_template":"alpha","file_format":"CSV","max_bad_records":"0","ignore_unknown_values":"true","field_delimiter":"|","skip_leading_rows":"0","allow_quoted_newlines":"true","allow_jagged_rows":"false","delete_source_files":"false"}' --data_source=google_cloud_storage
I have tried all the normal things like escaping double quotes with \
, ""
, etc. It seems the error is in the --params
part because without that, the command actually goes through, but obviously fails because --params
is required. All examples I have seen online show the same syntax.
What is wrong?