create custom variable variable in a scenario reporter

Options
Tanguy
Tanguy Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer, Neuron 2023 Posts: 112 Neuron

I have a scenario for which I would like to use a custom variable inside a Reporter.

More precisely, I would like to reference a variable created in that scenario at the scenario scope (so my variable is not at the local or global scope and cannot be found in the "variables" view). I was hoping that using the "create a custom variable" button would help me, however I cannot even save the function provided by dataiku.

Here are screenshots to illustrate the problem:

screenshot-create_custom_variable.jpg

screenshot-error_create_custom_variable.jpg

How can I fix this?


Operating system used: Windows 10


Operating system used: windows 10

Answers

  • Tanguy
    Tanguy Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer, Neuron 2023 Posts: 112 Neuron
    Options

    I would like to lever the "create custom variable" option inside a Scenario Reporter to enrich notifications with the parameters the scenario ran with.

    When clicking on the "create custom variable", one has to edit the following function:

    screenshot-create_custom_variable_function.jpg

    However, this function is not intuitive (moreover when technical problems arise).

    Is there any documentation on:

    1. the arguments fed to this function?
    2. the required format of the output? (e.g. a dictionary with a unique key/value?)

    Operating system used: Windows 10

  • Tanguy
    Tanguy Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer, Neuron 2023 Posts: 112 Neuron
    Options

    Regarding the saving issue, an admin solved the problem by enabling this option in the group settings to which I belong:

    screenshot-enable_create_custom_variable.jpg

  • Srini_E
    Srini_E Registered Posts: 14
    Options

    Hi @tanguy
    , Were you able to figure out how to create custom variables in reporters to send notifications? If yes, could you please let me know how to do?

    Thanks!

    Srini

  • Tanguy
    Tanguy Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron, Dataiku DSS Adv Designer, Registered, Dataiku DSS Developer, Neuron 2023 Posts: 112 Neuron
    Options

    Hi @Srini_E
    , I have abandoned using custom variables in the settings of a scenario as I failed to make them work and have not found any documentation on the subject

    Instead, I resorted to add a new "send message" step in my scenario (which initially I did not want to use because I wanted to send messages before and after the scenario computations).

  • Srini_E
    Srini_E Registered Posts: 14
    Options

    Thanks for quick reply @tanguy
    . I too tried, do not find any documentation on this. Hope dataiku will introduce the functionality in upcoming releases.

    Thanks!

    Srini

Setup Info
    Tags
      Help me…