Hello! Pretty new to prefect here. I’m ocassionall...
# prefect-getting-started
e
Hello! Pretty new to prefect here. I’m ocassionally getting this error on one of my workflows, even though this parameter should have a default value:
Copy code
Validation of flow parameters failed with error: 
Traceback (most recent call last):
  File "/home/ec2-user/.local/lib/python3.7/site-packages/prefect/engine.py", line 304, in retrieve_flow_then_begin_flow_run
    parameters = flow.validate_parameters(flow_run.parameters)
  File "/home/ec2-user/.local/lib/python3.7/site-packages/prefect/flows.py", line 351, in validate_parameters
    raise ParameterTypeError.from_validation_error(exc) from None
prefect.exceptions.ParameterTypeError: Flow run received invalid parameters:
 - country: none is not an allowed value
The default value is specified in in the deployment yaml file, as well as the annotated function:
Copy code
@flow                                                                # vvvvvvvvvv
def get_domain(list_id: str, workflow_id: str, workflow_run_id: str, country: str = "no", block_name: str = "db-prod-prospects", batch_size: int = 95):
  connector = SqlAlchemyConnector.load(block_name)
Shouldn’t that be enough? Also when the jobs failed, the parameter tab shows:
Copy code
{
  "country": null,
  ...
}
Could it be that is has to be undefined, not null perhaps?