Loop in Custom Scenario

Options
Lucasjulian
Lucasjulian Registered Posts: 1

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

Answers

  • Alexandru
    Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,209 Dataiker
    Options

    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

Setup Info
    Tags
      Help me…