Hi,
I need help! I've been trying for 2 days to find the root cause of that issue and I can't figure out whats wrong.
I initially encounter this problem in a complex dataflow but I was able to reproduce the “bug” with a very simple dataflow.
Usecase to reproduce the problem :
- The dataflow has 2 very simple queries. The first query imports a csv file and the other gets the maximum value of the timestamp column from the first query.
- Everything refreshes just fine in the editor.
- I setup the mapping to upload into separate destination tables in Dataverse then save it.
- It’s when I try to refresh the dataflow from the web service that I get the error :
“bugColumnNotFound,getMax,15/12/2020 5:51:52 pm,15/12/2020 5:51:54 pm,Failed,"Error Code: Mashup Exception Error, Error Details: Couldn't refresh the entity because of an issue with the mashup document MashupException.Error: Expression.Error: The column 'timestamp' of the table wasn't found. Details: timestamp (request id: 30d76f34-7155-442d-946c-05732e1dd5c9)." - Important observation : The problem disappears when I disable load on the first query (getFile)…. But I obviously want to load data for the getFile query…it’s actually the most important part of the dataflow.
My source file contains 4 rows and 2 columns (testColumnNotFound.csv)
itemno;timestamp
1;2020-12-09 05:47:10
2;2019-01-04 14:55:41
3;2018-02-14 01:51:29
4;2010-03-18 12:20:43
1st query “ : getFile =
let
Source = SharePoint.Files(urlAPI, [ApiVersion = 15]),
#"Sorted rows" = Table.Sort(Source, {{"Name", Order.Ascending}}),
Navigation = #"Sorted rows"{[Name = "testColumnNotFound.csv", #"Folder Path" = sourcePath]}[Content],
#"Imported CSV" = Csv.Document(Navigation, [Delimiter = ";", Columns = 2, QuoteStyle = QuoteStyle.None]),
#"Promoted headers" = Table.PromoteHeaders(#"Imported CSV", [PromoteAllScalars = true]),
#"Changed column type" = Table.TransformColumnTypes(#"Promoted headers", {{"itemno", Int64.Type}, {"timestamp", type datetime}})
in
#"Changed column type"
BUG Column not found: getFile query
2nd query : getMax =
let
Source = #table({"c1"}, {{0}}),
#"Added custom" = Table.AddColumn(Source, "maxtime", each List.Max(getFile[timestamp]))
in
#"Added custom"
BUG Column not found: getMax query
Thank you
--mo