Forum Discussion

AntoineW's avatar
AntoineW
Super User
6 months ago
Solved

Dataflow Gen2: Variable Library references fail in Connection Settings

Hi everyone, I am working on variabilizing my Dataflow Gen2 for deployment pipelines, following the documentation on Variable references. I’ve noticed a discrepancy in how variables are handled, ...
  • miguel's avatar
    miguel
    6 months ago

    This appears to be a screenshot of an error shown in the data preview of the Power Query editor.

     

    When using Variable.ValueOrDefault the value being used for the data preview today is the "Default". What could be happening is something related to the value that you have as default and how that is being passed into the M code. Perhaps there's something quite specific with the Lakehouse connector that returns this error or it could also be that your queries where you store your variables are set to staging hence it's actually not a scalar value but rather a table. Based on the screenshot, it does appear that both your queries are set to be staged hence it might actually field during a refresh as the values wouldn't be rendered as simple values and they'll be basically just a value within a table of a single column 

     

    Regardless, I'd recommend opening a support ticket so we can take a closer look at this behavior. Feel free to share the case number with me directly so I can take a closer look