<?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 Issue with Dataflow Gen2 with date variable in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Issue-with-Dataflow-Gen2-with-date-variable/m-p/4891827#M13828</link>
    <description>&lt;DIV class=""&gt;&lt;SPAN&gt;I have a question, I want to ingest data from API's where I have to call multiple API's based on issue ID's to get the history from an issue and this history data is pretty long. To make my question/issue clear I don't want to give to many details about how I get the data but my setup is as this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I want to create a Dataflow Gen 2 that gets the data based on a watermark (date) value that I get from a SQL table (like for example yesterday 12/2/2025). so I created a scalar date value that I sould be able to use in my query to get only te new record.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;So in the query where I want to setup my table on the last step I add a filter to get all values from the WM date or after like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Table.SelectRows(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;IssuesTyped,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;each [updated_at] &amp;gt;= WM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;In my powerquery I do get the results so I see for this example all history of the issues that are updated yesterday and today.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;But when I want to ingest this table into my datawarehouse I get a error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Error Code: Mashup Exception Expression Error, Error Details: Couldn't refresh the entity because of an issue with the mashup document MashupException.Error: Expression.Error: Failed to insert a table., InnerException: We cannot apply operator &amp;lt; to types Table and Date., Underlying error: We cannot apply operator &amp;lt; to types Table and Date. Details: Reason = Expression.Error;ErrorCode = Lakehouse036;Message = We cannot apply operator &amp;lt; to types Table and Date.;Detail = [Operator = "&amp;lt;", Left = error "Microsoft.Mashup.Engine1.Runtime.ValueException: [Expression.Error] Value was not specified.#(cr)#(lf) at Microsoft.Mashup.Engine1.Language.ValueCreator.CreateValueForThrow(IThrowExpression throwExpr)#(cr)#(lf) at Microsoft.Mashup.Engine1.Language.ValueCreator.&amp;lt;&amp;gt;c__DisplayClass23_0.&amp;lt;CreateValueForRecord&amp;gt;b__0(Int32 index)#(cr)#(lf) at Microsoft.Mashup.Engine1.Runtime.RecordValue.DemandRecordValue.get_Item(Int32 index)#(cr)#(lf) at&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://Microsoft.Data" href="http://microsoft.data/" target="_blank" rel="noopener noreferrer nofollow"&gt;Microsoft.Data&lt;/A&gt;&lt;SPAN&gt;.Mashup.ProviderCommon.MashupResource.TryGetValue(Func`1 getValue, IValue&amp;amp; value, String&amp;amp; errorMessage)#(cr)#(lf)Record", Right = #date(2025, 3, 5)];Message.Format = We cannot apply operator #{0} to types #{1} and #{2}.;Message.Parameters = {"&amp;lt;", "Table", "Date"};ErrorCode = 10051;&lt;/SPAN&gt;&lt;A title="http://Microsoft.Data" href="http://microsoft.data/" target="_blank" rel="noopener noreferrer nofollow"&gt;Microsoft.Data&lt;/A&gt;&lt;SPAN&gt;.Mashup.Error.Context = User&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Does anyone have an idea how I could solve this issue? btw when I just hardcode the date for example I add a step in front: WM = #date(2025, 12, 3) then it works...&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 03 Dec 2025 14:28:18 GMT</pubDate>
    <dc:creator>RamonNooijen</dc:creator>
    <dc:date>2025-12-03T14:28:18Z</dc:date>
    <item>
      <title>Issue with Dataflow Gen2 with date variable</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Issue-with-Dataflow-Gen2-with-date-variable/m-p/4891827#M13828</link>
      <description>&lt;DIV class=""&gt;&lt;SPAN&gt;I have a question, I want to ingest data from API's where I have to call multiple API's based on issue ID's to get the history from an issue and this history data is pretty long. To make my question/issue clear I don't want to give to many details about how I get the data but my setup is as this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I want to create a Dataflow Gen 2 that gets the data based on a watermark (date) value that I get from a SQL table (like for example yesterday 12/2/2025). so I created a scalar date value that I sould be able to use in my query to get only te new record.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;So in the query where I want to setup my table on the last step I add a filter to get all values from the WM date or after like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Table.SelectRows(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;IssuesTyped,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;each [updated_at] &amp;gt;= WM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;In my powerquery I do get the results so I see for this example all history of the issues that are updated yesterday and today.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;But when I want to ingest this table into my datawarehouse I get a error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Error Code: Mashup Exception Expression Error, Error Details: Couldn't refresh the entity because of an issue with the mashup document MashupException.Error: Expression.Error: Failed to insert a table., InnerException: We cannot apply operator &amp;lt; to types Table and Date., Underlying error: We cannot apply operator &amp;lt; to types Table and Date. Details: Reason = Expression.Error;ErrorCode = Lakehouse036;Message = We cannot apply operator &amp;lt; to types Table and Date.;Detail = [Operator = "&amp;lt;", Left = error "Microsoft.Mashup.Engine1.Runtime.ValueException: [Expression.Error] Value was not specified.#(cr)#(lf) at Microsoft.Mashup.Engine1.Language.ValueCreator.CreateValueForThrow(IThrowExpression throwExpr)#(cr)#(lf) at Microsoft.Mashup.Engine1.Language.ValueCreator.&amp;lt;&amp;gt;c__DisplayClass23_0.&amp;lt;CreateValueForRecord&amp;gt;b__0(Int32 index)#(cr)#(lf) at Microsoft.Mashup.Engine1.Runtime.RecordValue.DemandRecordValue.get_Item(Int32 index)#(cr)#(lf) at&amp;nbsp;&lt;/SPAN&gt;&lt;A title="http://Microsoft.Data" href="http://microsoft.data/" target="_blank" rel="noopener noreferrer nofollow"&gt;Microsoft.Data&lt;/A&gt;&lt;SPAN&gt;.Mashup.ProviderCommon.MashupResource.TryGetValue(Func`1 getValue, IValue&amp;amp; value, String&amp;amp; errorMessage)#(cr)#(lf)Record", Right = #date(2025, 3, 5)];Message.Format = We cannot apply operator #{0} to types #{1} and #{2}.;Message.Parameters = {"&amp;lt;", "Table", "Date"};ErrorCode = 10051;&lt;/SPAN&gt;&lt;A title="http://Microsoft.Data" href="http://microsoft.data/" target="_blank" rel="noopener noreferrer nofollow"&gt;Microsoft.Data&lt;/A&gt;&lt;SPAN&gt;.Mashup.Error.Context = User&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Does anyone have an idea how I could solve this issue? btw when I just hardcode the date for example I add a step in front: WM = #date(2025, 12, 3) then it works...&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Dec 2025 14:28:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Issue-with-Dataflow-Gen2-with-date-variable/m-p/4891827#M13828</guid>
      <dc:creator>RamonNooijen</dc:creator>
      <dc:date>2025-12-03T14:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Dataflow Gen2 with date variable</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Issue-with-Dataflow-Gen2-with-date-variable/m-p/4891843#M13831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1450018"&gt;@RamonNooijen&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like your&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;WM is returning a table, not an individual value. so you're trying to compare a table with a date, and Power Query has no idea how to determine if a table is less than a date as those are two completely different datatypes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 14:47:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Issue-with-Dataflow-Gen2-with-date-variable/m-p/4891843#M13831</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2025-12-03T14:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Dataflow Gen2 with date variable</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Issue-with-Dataflow-Gen2-with-date-variable/m-p/4891844#M13832</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1450018"&gt;@RamonNooijen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message is actually giving the clue:&lt;/P&gt;&lt;P&gt;We cannot apply operator &amp;lt; to types &lt;STRONG&gt;Table&lt;/STRONG&gt; and &lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That means WM is not a single date value at runtime – it’s still a table (or query result) when the dataflow engine tries to fold the query and push it to the Lakehouse / DW.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you hard-code WM = #date(2025, 12, 3) it works, because WM is clearly a scalar date.&lt;BR /&gt;When you load it from SQL, your WM step is returning a table (for example one row, one column), not the cell value itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need one extra step to turn that table into a single date before using it in Table.SelectRows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A common pattern looks like this in Power Query (M):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// Query that gets the watermark table from SQL&lt;BR /&gt;WMTable = Sql.Database("server", "db"){[Name="WatermarkTable"]}[Data],&lt;/P&gt;&lt;P&gt;// Take the first row and the Watermark column as a scalar value&lt;BR /&gt;WM = Date.From( WMTable{0}[WatermarkDate] ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in your filter step:&lt;/P&gt;&lt;P&gt;FilteredRows =&lt;BR /&gt;Table.SelectRows(&lt;BR /&gt;IssuesTyped,&lt;BR /&gt;each [updated_at] &amp;gt;= WM&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Key idea:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;WMTable = table returned from SQL&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;WM = single Date value extracted from that table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Right now you’re comparing [updated_at] (a date) to WM (a table), which is why you get the “Table and Date” error only when it actually runs in the service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once WM is a true date value, your dynamic filter will work the same way as the hard-coded example.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;– Gopi Krishna&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 14:47:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Issue-with-Dataflow-Gen2-with-date-variable/m-p/4891844#M13832</guid>
      <dc:creator>Ugk161610</dc:creator>
      <dc:date>2025-12-03T14:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Dataflow Gen2 with date variable</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Issue-with-Dataflow-Gen2-with-date-variable/m-p/4894882#M13908</link>
      <description>&lt;P&gt;Thankyou,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1340679"&gt;@tayloramy&lt;/a&gt; and &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/920086"&gt;@Ugk161610&lt;/a&gt;&amp;nbsp;for your responses.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Hi RamonNooijen,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We appreciate your inquiry through the Microsoft Fabric Community Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;We would like to inquire whether have you got the chance to check the solutions provided by&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1340679"&gt;@tayloramy&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/920086"&gt;@Ugk161610&lt;/a&gt;&amp;nbsp; to resolve the issue. We hope the information provided helps to clear the query. Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Dec 2025 08:28:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Issue-with-Dataflow-Gen2-with-date-variable/m-p/4894882#M13908</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-12-06T08:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Dataflow Gen2 with date variable</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Issue-with-Dataflow-Gen2-with-date-variable/m-p/4896779#M13949</link>
      <description>&lt;P&gt;Hi RamonNooijen,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are following up to see if what we shared solved your issue. If you need more support, please reach out to the Microsoft Fabric community.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 08:59:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Issue-with-Dataflow-Gen2-with-date-variable/m-p/4896779#M13949</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-12-09T08:59:46Z</dc:date>
    </item>
  </channel>
</rss>

