Update local variables on automation project

Options
Axolotl
Axolotl Registered Posts: 13
edited July 16 in Using Dataiku

Hi,

I'm looking for the way to use : "Update local variables on automation project".

Indeed when I'm trying to use this option with for exemple :

{
  "BON": "JOUR"
}

on deployer node : Deployments / $projecKey-on-dataiku-automation-2/settings/
I get this error :

Invalid format: Cannot read properties of undefined (reading '$invalid')

The variable does not exist either locally or globally in the design node. It also does not exist in the bundles deployed on the same project, neither locally nor globally.

Whats wrong ?
Thanks
Operating system used: linux aws
Operating system used: linux aws

Best Answer

  • Axolotl
    Axolotl Registered Posts: 13
    Answer ✓
    Options

    Hi,

    I get answer from the support :

    --------------

    ​Hello,
    Unfortunatly, you did stumble on a known regression bug. The fix has already been released in DSS 12.5.1. Please upgrade to resolve the issue.
    Regards,
    Technical support engineer,
    Dataiku

Answers

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 1,727 Neuron
    Options

    Why are you trying to update variables? Projects have two types of variables, Global and Local. Globals get included in the bundle, Local don't. Local always override Global. That means that if the same variable is defined in both Global and Local the Local value takes precedence. So define your variables in Global. Then set them in Local in Designer and Automation to whatever values you want. Problem solved. Any bundles will not include the Local values which you already set in the Automation node to the value you want.

  • Axolotl
    Axolotl Registered Posts: 13
    Options

    Hello,
    Thank you for your message. Perhaps I didn’t explain my problem clearly. I want to create a variable that would have a different value in design and in automation node depending on my groups. And I wish to do this with a macro during the deployment of the bundle.

    Dataiku offers a menu for this : "Update local variables on automation project" (screen attached)

    and it’s great. But I encountered the error mentioned above.

    Has anyone else received this error message?

  • Marlan
    Marlan Neuron 2020, Neuron, Registered, Dataiku Frontrunner Awards 2021 Finalist, Neuron 2021, Neuron 2022, Dataiku Frontrunner Awards 2021 Participant, Neuron 2023 Posts: 317 Neuron
    Options

    Hi @Axolotl
    ,

    You can define variables at the node level. We do this for several variables. They are defined in config files on each node.

    It sounds like you are after variables that are updated based on group and node so this probably won't help but wanted to mention it nonetheless.

    Good luck.

    Marlan

  • Axolotl
    Axolotl Registered Posts: 13
    Options

    Hi @Marlan
    , thanks for your answer.

    Indeed, its not exactly what im looking for because I have to select value by group.

    Does anyone know how the feature "update local variable on automation project" works ?

    Thanks

Setup Info
    Tags
      Help me…