Basic question: I am trying to get Parameters to w...
# ask-community
s
Basic question: I am trying to get Parameters to work, and it seem that no matter what I do, I get an error saying "Flow.run received the following unexpected parameters:". Here's the code:
c
So just instantiating the Parameter class doesn’t actually add it to the flow - you need to either explicitly call flow.add_task or use the parameter in another task for it to be added
We have a tutorial that should be coming out soon which addresses some common questions like this actually
s
ahh okay
c
Hi @Sherman the tutorial I referenced last week is now live! https://docs.prefect.io/guide/tutorials/task-guide.html In particular, the problem you ran into is addressed in the “Adding Tasks to Flows” section
@Marvin archive “Parameter isn’t being added to Flow”