<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dataflow Gen2 w/ Variable Library - variable resolves but fails in destination query in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-w-Variable-Library-variable-resolves-but-fails-in/m-p/5158082#M16006</link>
    <description>&lt;P&gt;I'm trying to create a Dataflow Gen2 that uses a variable library to remap the destination lakehouse between stages of a deployment pipeline. I followed these two guides:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/cicd/variable-library/tutorial-variable-library" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/cicd/variable-library/tutorial-variable-library&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have created a variable library with entries for WorkspaceId and a LakehouseId.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two queries for WorkspaceId and LakehouseId in my Dataflow. These appear to be working. Just as a test, I added another query that writes these to a (hardcoded) lakehouse destination, and the data that appears when I run this is correct (the correct Workspace Id and Lakehouse Id).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="merganzeruncle_0-1776207676299.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1333602i50E63AB06C8EC81E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="merganzeruncle_0-1776207676299.png" alt="merganzeruncle_0-1776207676299.png" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, when I try to use WorkspaceId and LakehouseId in the destination query of one of my actual data queries, I get an error "The key didn't match any rows in the table".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is the m script for the destination query that fails:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;let
  Pattern = Lakehouse.Contents([CreateNavigationProperties = false, EnableFolding = false, HierarchicalNavigation = true]),
  Navigation_1 = Pattern{[workspaceId = WorkspaceId]}[Data],
  Navigation_2 = Navigation_1{[lakehouseId = LakehouseId]}[Data],
  Navigation_3 = Navigation_2{[Id = "Strong", ItemKind = "Schema"]}[Data],
  TableNavigation = Navigation_3{[Id = "Destination", ItemKind = "Table"]}[Data]
in
  TableNavigation&amp;lt;p&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(To clarify, that ID="Destination" is because the destination table name is also incidentally called "Destination" for unrelated reasons)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was generated by using the destination lakehouse widget on the query, but then I replaced the hardcoded workspace Id and lakehouse Id with my variables. Other potentially relevant information - the destination lakehouse is schema-enabled. These queries don't use incremental refresh, although I have another Dataflow that I need to do this in that does use an incremental refresh.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Apr 2026 18:38:12 GMT</pubDate>
    <dc:creator>merganzeruncle</dc:creator>
    <dc:date>2026-04-24T18:38:12Z</dc:date>
    <item>
      <title>Dataflow Gen2 w/ Variable Library - variable resolves but fails in destination query</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-w-Variable-Library-variable-resolves-but-fails-in/m-p/5158082#M16006</link>
      <description>&lt;P&gt;I'm trying to create a Dataflow Gen2 that uses a variable library to remap the destination lakehouse between stages of a deployment pipeline. I followed these two guides:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/cicd/variable-library/tutorial-variable-library" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/cicd/variable-library/tutorial-variable-library&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have created a variable library with entries for WorkspaceId and a LakehouseId.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two queries for WorkspaceId and LakehouseId in my Dataflow. These appear to be working. Just as a test, I added another query that writes these to a (hardcoded) lakehouse destination, and the data that appears when I run this is correct (the correct Workspace Id and Lakehouse Id).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="merganzeruncle_0-1776207676299.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1333602i50E63AB06C8EC81E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="merganzeruncle_0-1776207676299.png" alt="merganzeruncle_0-1776207676299.png" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, when I try to use WorkspaceId and LakehouseId in the destination query of one of my actual data queries, I get an error "The key didn't match any rows in the table".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-variable-library-integration" target="_blank" rel="noopener"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is the m script for the destination query that fails:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;let
  Pattern = Lakehouse.Contents([CreateNavigationProperties = false, EnableFolding = false, HierarchicalNavigation = true]),
  Navigation_1 = Pattern{[workspaceId = WorkspaceId]}[Data],
  Navigation_2 = Navigation_1{[lakehouseId = LakehouseId]}[Data],
  Navigation_3 = Navigation_2{[Id = "Strong", ItemKind = "Schema"]}[Data],
  TableNavigation = Navigation_3{[Id = "Destination", ItemKind = "Table"]}[Data]
in
  TableNavigation&amp;lt;p&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(To clarify, that ID="Destination" is because the destination table name is also incidentally called "Destination" for unrelated reasons)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was generated by using the destination lakehouse widget on the query, but then I replaced the hardcoded workspace Id and lakehouse Id with my variables. Other potentially relevant information - the destination lakehouse is schema-enabled. These queries don't use incremental refresh, although I have another Dataflow that I need to do this in that does use an incremental refresh.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 18:38:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-w-Variable-Library-variable-resolves-but-fails-in/m-p/5158082#M16006</guid>
      <dc:creator>merganzeruncle</dc:creator>
      <dc:date>2026-04-24T18:38:12Z</dc:date>
    </item>
  </channel>
</rss>

