Power BI: Expression.Error: We cannot convert the value null to type Logical

Power BI: Expression.Error: We cannot convert the value null to type Logical

在下面的代码中,第 10 行出现错误(“Expanded Table Column1”):

let
Source = SharePoint.Files("https://microsoft.sharepoint.com/teams/Fake_Folder/", [ApiVersion = 15]),
#"Added Custom" = Table.AddColumn(Source, "find file", each if Text.Contains([Name], "Fake_Name")
then 1 else 0),
    #"Filtered Rows" = Table.SelectRows(#"Added Custom", each ([Name] <> null)),
    #"Filtered Rows1" = Table.SelectRows(#"Filtered Rows", each ([find file] = 1)),
    #"Filtered Hidden Files1" = Table.SelectRows(#"Filtered Rows1", each [Attributes]?[Hidden]? <> true),
    #"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File (6)", each #"Transform File (6)"([Content])),
    #"Removed Other Columns1" = Table.SelectColumns(#"Invoke Custom Function1", {"Transform File (6)"}),
    #"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File (6)",

基本上,我选择了一个与名称“Fake_Name”相匹配的文件,然后展开该文件。我得到了错误: We cannot convert the value null to type Logical

在错误发生之前,正在定位文件,过滤文件,然后当需要将其扩展为 table 时,它遇到了空值。当我无法转到错误并且文件本身没有我要查找的空值时,我该如何修复它?

发现问题:“示例文件 6”(此查询中引用的另一个文件)存在导致其被卸载的问题,从而导致此处出现的问题。