Forum Discussion

cl27274's avatar
cl27274
Copper Contributor
Feb 06, 2021
Solved

Power Query - Expression.Error: Illegal characters in path, cell value as input

Hello, I have a function GetValue(), that gets the value from a cell that I named "Query". However when I then try to run the query, it gives me an error : Expression.Error: Illegal characters in p...
  • SergeiBaklan's avatar
    SergeiBaklan
    Feb 06, 2021

    cl27274 

    Thank you. I see only 1 row which returns Odbc.Query, but that doesn't matter. Perhaps to evaluate it you shall use something like

    let
        a = "Excel.Workbook(File.Contents(""C:\Test\Book1.xlsx""), null, true)",
        Source = Expression.Evaluate(a, #shared)
    in
        Source

Resources