You now have until September 15th to submit your use case or success story to the 2022 Dataiku Frontrunner Awards!ENTER YOUR SUBMISSION

Using dataiku.dku_flow_variables in Version 9

pkansal
Level 3
Using dataiku.dku_flow_variables in Version 9

I am using version 9 of dataiku and it says dku_flow_variable is not available. How do I access partition labels in dataiku V9?

0 Kudos
3 Replies
NN
Neuron
Neuron

Hi,

I am on V9 and the below does work for me in the python recipe
assuming mydate is the name of the parition

If your case is different then please share some details so that the community can help.

partid=dataiku.dku_flow_variables["DKU_DST_MYDATE"]

https://doc.dataiku.com/dss/latest/partitions/variables.html#python

pkansal
Level 3
Author

I found the error. It works in script but not in notebook.

0 Kudos
NN
Neuron
Neuron

Yes that is correct.
Partitions only work in a flow.
Hence the variable will only be available to recipes that are run in the flow and will not work on notebook.

0 Kudos