If you are using a provided template, in the documentation you can review the configuration parameters. Seems like the foramt of the outputStagingTableNameTemplate parameter that you are trying to use is not properly configured. Can you check that the format is correct?
gcloud beta dataflow flex-template run JOB_NAME \
--project=PROJECT_ID \
--region=REGION_NAME \
--enable-streaming-engine \
--template-file-gcs-location=gs://dataflow-templates/VERSION/flex/Cloud_Datastream_to_BigQuery \
--parameters \
inputFilePattern=GCS_FILE_PATH,\
gcsPubSubSubscription=GCS_SUBSCRIPTION_NAME,\
outputStagingDatasetTemplate=BIGQUERY_DATASET,\
outputDatasetTemplate=BIGQUERY_DATASET,\
outputStagingTableNameTemplate=[project_id]:[dataset_id].[table_id],\
outputTableNameTemplate=BIGQUERY_TABLE_log
For example, if the target table were a table from a public google datasets (which is not possible, it is just an example) the outputStagingTableNameTemplate parameter should be like this:
outputStagingTableNameTemplate=bigquery-public-data:covid19_italy.data_by_province
Where:
- bigquery-public-data is the project_id
- covid19_italy is the dataset_id
- data_by_province is the table_id