Excel Power Query エラー - Expression.Error: 引数の値が無効です

Excel Power Query エラー - Expression.Error: 引数の値が無効です

クエリをコピーして貼り付けることで、あるワークブックから別のワークブックにシートをコピーしようとしています。これらのクエリは元のシートでは正常に機能しますが、コピーするとエラーが発生します。

Expression.Error: The Argument Name isn't Valid. Details: List

実行されるクエリは次のとおりです。

 let
    Source = #"Base Table",
    #"Replaced Value" = Table.ReplaceValue(Source,null,0,Replacer.ReplaceValue,List.Select(Table.ColumnNames(Source), each Value.Is(Value.FromText(_), type date))),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Replaced Value", List.Select(Table.ColumnNames(#"Replaced Value"), each not Value.Is(Value.FromText(_), type date)), "Date", "Value"),
    #"Changed Type" = Table.TransformColumnTypes(#"Unpivoted Other Columns",{{"Date", type date}, {"Value", type number}}),

    #"Filtered Rows1" = Table.SelectRows(#"Changed Type", each [Value] <> 0),
    #"Added Custom" = Table.AddColumn(#"Filtered Rows1", "Custom", each [Value] * [Billable Rate]),
    #"Renamed Columns" = Table.RenameColumns(#"Added Custom",{{"Custom", "Monetary Value"}}),
    #"Removed Other Columns" = Table.SelectColumns(#"Renamed Columns",{"Group", "Region", "Level", "Name", "Client", "Mandate", "Mandate Code", "Billable? (Y/N) ", "Status", "Recovery", "Billable Rate", "Date", "Value", "Monetary Value"}),
    #"Appended Query" = Table.Combine({#"Removed Other Columns", dates})
in
    #"Appended Query"

コピーしたワークブックではシートは「シート 8」と呼ばれ、別のワークブックでは「期間合計」と呼ばれます。新しいワークブックには外部データベースへの接続を持つ他のクエリがいくつかありますが、元のワークブックにはそれらがありません。これが問題なのでしょうか?

これをデバッグ/解決する方法について何か考えはありますか? 原因がわかりません。Excel のバグでしょうか? ありがとうございます!!

答え1

クエリ エディター ウィンドウのクエリ ペインからクエリ オブジェクトをコピーします。この方法は、依存オブジェクトも含まれるため、より信頼性があります。

関連情報