https://prefect.io logo
Title
m

Marwan Sarieddine

02/12/2021, 10:48 PM
Hi folks, it seems to me the upgrade in the prefect UI has introduced a bug - specifically when it comes to trying to Run a flow with parameters from the UI. I.e. it seems that inputting parameter values is no longer possible.
I get the following error in the corresponding flow run
{'type': ['Missing data for required field.']}
however when I pass the parameters programmatically to client.create_flow_run - I don’t face this error
z

Zanie

02/12/2021, 10:55 PM
j

Jenny

02/12/2021, 11:07 PM
Hi @Marwan Sarieddine - are you able to give any more information about how you're running your flow and what parameters you're using? It would be useful to know if you're adding parameters through the UI and if so how (JSON, the run page, the flow group settings?). If you're able to give an example that would be useful too! I'll create a ticket so you can add there or here if easier. @Marvin open "BUG: Type - missing data for required field" in UI
m

Marwan Sarieddine

02/12/2021, 11:08 PM
Sure it is a flow with a single parameter
max_leases
which is an integer
πŸ‘€ 1
it is through the run tab - please see the accompanying screenshot
this should be the equivalent programmatically
client = prefect.Client()
client.create_flow_run(flow_id=flow_id, parameters={"max_leases": 1})
z

Zanie

02/12/2021, 11:34 PM
Thanks! We're having a hard time reproducing this but we're investigating
m

Marwan Sarieddine

02/12/2021, 11:53 PM
would it help if I share the flow/flow run id ?
z

Zanie

02/12/2021, 11:57 PM
It's EOD here so people are signing off but the flow run id can't hurt.
m

Marwan Sarieddine

02/12/2021, 11:58 PM
yes of course - it is understandable (no rush from my end) - here is the flow run id
03ca38c7-6f81-4586-aae1-68a5745fa15b
j

Jenny

02/13/2021, 12:08 AM
Hey Marwan - one more question: what version of Prefect Core is your flow registered with? (It should be on the flow overview tile)
m

Marwan Sarieddine

02/13/2021, 12:09 AM
Prefect Core Version:
0.14.6
j

Jenny

02/13/2021, 12:09 AM
Thanks.
πŸ‘ 1
c

Chris White

02/13/2021, 4:23 AM
Hey @Marwan Sarieddine - we were able to identify the issue and release a fix, so next time you use the UI be sure to hard refresh and you should be good to go πŸ‘
m

Marwan Sarieddine

02/13/2021, 3:40 PM
Hi @Chris White - thanks for the update, I just checked and it works now πŸ™‚
πŸ‘ 2