<?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 Re: Dataflow::Can't save content to Lakehouse if I filter it first with date in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3858974#M2767</link>
    <description>&lt;P&gt;I tested filtering on ID field and there was no issues then.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 11:35:02 GMT</pubDate>
    <dc:creator>TimoRiikonen</dc:creator>
    <dc:date>2024-04-22T11:35:02Z</dc:date>
    <item>
      <title>Dataflow::Can't save content to Lakehouse if I filter it first with date</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3858907#M2765</link>
      <description>&lt;P&gt;I wish to:&lt;/P&gt;&lt;P&gt;1) Copy data from Lakehouse bronze layer to the same Lakehouse silver layer&lt;/P&gt;&lt;P&gt;2) Remove extra columns&lt;/P&gt;&lt;P&gt;3) Only copy today's and yesterday's data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First two steps work fine, but when I add the third step, then I get an error.&lt;/P&gt;&lt;P&gt;Silver table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Code to create yesterday's date:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date.AddDays( Date.From( DateTime.LocalNow() ), -1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result is&amp;nbsp;4/21/2024 (or&amp;nbsp;4/12/2024), so the date is in US-en format, same as in Lakehouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Code to do the data copying:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
  Source = Lakehouse.Contents([]),
  #"Navigation 1" = Source{[workspaceId = "8466c1bc-e477-415e-8b77-a714cd043631"]}[Data],
  #"Navigation 2" = #"Navigation 1"{[lakehouseId = "f236f3df-1701-4605-842d-415b6cb3ba37"]}[Data],
  #"Navigation 3" = #"Navigation 2"{[Id = "ServiceRequest", ItemKind = "Table"]}[Data],
  #"Removed other columns" = Table.SelectColumns(#"Navigation 3", {"Tilaus_id", "Pyynnön_alatyyppi", "Pyyntötyyppi", "Pyyntötyyppi_id", "Tilaus", "Updated"}),
  #"Changed column type" = Table.TransformColumnTypes(#"Removed other columns", {{"Updated", type date}}),
  #"Filtered rows" = Table.SelectRows(#"Changed column type", each [Updated] &amp;gt;= MinUpdateDate)
in
  #"Filtered rows"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I refresh my data, everything works still fine:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Publish over new or existing, same result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;After I publish it, I get this error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ServiceRequest_WriteToDataDestination: Mashup Exception Expression Error Couldn't refresh the entity because of an issue with the mashup document MashupException.Error: Expression.Error: We cannot apply operator &amp;lt; to types Table and Date. Details: Reason = Expression.Error;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 Microsoft.Data.Mashup.ProviderCommon.MashupResource.TryGetValue(Func`1 getValue, IValue&amp;amp; value, String&amp;amp; errorMessage)#(cr)#(lf)Record";Right = 4/17/2024 12:00:00 AM;Microsoft.Data.Mashup.Error.Context = User&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I remove the last filter, then everything works as it should (I had -10, not -1 so ignore the date):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 11:50:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3858907#M2765</guid>
      <dc:creator>TimoRiikonen</dc:creator>
      <dc:date>2024-04-22T11:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow::Can't save content to Lakehouse if I filter it first with date</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3858954#M2766</link>
      <description>&lt;P&gt;Is your&amp;nbsp;&lt;SPAN&gt;query that calculate the date set to be staged? If yes, please disable staging for it and try running the dataflow again&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 11:32:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3858954#M2766</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-04-22T11:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow::Can't save content to Lakehouse if I filter it first with date</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3858974#M2767</link>
      <description>&lt;P&gt;I tested filtering on ID field and there was no issues then.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 11:35:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3858974#M2767</guid>
      <dc:creator>TimoRiikonen</dc:creator>
      <dc:date>2024-04-22T11:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow::Can't save content to Lakehouse if I filter it first with date</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3859002#M2768</link>
      <description>&lt;P&gt;Upon further inspection of the error, my suspicion is correct. The query&amp;nbsp;MinUpdateDate is more than likely set to be staged which causes the result of the query to be set to a table. Then you're trying to use that table value as a filter to a column that expects a date and that's why the error displays that specific error message.&lt;/P&gt;
&lt;P&gt;The solution is to disable the staging from the&amp;nbsp;MinUpdateDate query.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 11:39:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3859002#M2768</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-04-22T11:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow::Can't save content to Lakehouse if I filter it first with date</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3859065#M2769</link>
      <description>&lt;P&gt;Hello Miguel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You were correct.&lt;/P&gt;&lt;P&gt;Table was not staged, but the parameter was.&lt;/P&gt;&lt;P&gt;After removing this, it is working again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 11:49:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3859065#M2769</guid>
      <dc:creator>TimoRiikonen</dc:creator>
      <dc:date>2024-04-22T11:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow::Can't save content to Lakehouse if I filter it first with date</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3859452#M2771</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="173772" data-lia-user-login="TimoRiikonen" class="lia-mention lia-mention-user"&gt;TimoRiikonen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad that you query got resolved. &lt;BR /&gt;Please continue using Fabric Community for further queries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 13:15:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-Can-t-save-content-to-Lakehouse-if-I-filter-it-first/m-p/3859452#M2771</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-04-22T13:15:40Z</dc:date>
    </item>
  </channel>
</rss>

