Loop in Custom Scenario

Lucasjulian
Level 1
Loop in Custom Scenario

Hello community

I was working on a repetitive rework task
and it occurred to me that I could automate it with a new scenario custom python script

First I wanted to confirm that it works and then start making the loop and modify the variable every time it loops.

First step does not build the dataset
Script:

from dataiku.scenario import Scenario
scenario = Scenario()
scenario.build_dataset("RepTaxes_Extract")

Can you help me?
Thank you so much
 

1.png2.png

 


Operating system used: Windows


Operating system used: Windows

0 Kudos
1 Reply
AlexT
Dataiker

Hi @Lucasjulian ,
The method should work if there is something to build.
Can you try with :
scenario.build_dataset(dataset_name, build_mode='RECURSIVE_FORCED_BUILD')?

If that still build nothing we may need scenario diagnostics. Can you please open a support ticket with the scenario diagnostics?
Thanks

0 Kudos