Invalid absolute path error when parameterising Excel path on SharePoint site in Power Query

bugfoot

I have a valid, working, absolute path to an Excel file on a SharePoint site (e.g. "https://.../Filename.xlsx"), denoted by "FilePath".

I try to import some information from "FilePath" via Power Query. Using

let
    Source = Excel.Workbook(Web.Contents("FilePath"), null, true),

works fine. However, if I try to parameterise "FilePath" by placing it in the first row of an Excel table named Source_Files in column Source file found in the same Excel file where my Power Query resides (which I imported to PowerQuery), I always get

DataFormat.Error: The supplied file path must be a valid absolute path.
Details:
    FilePath 

error, whether I try parameterising this way:

let
    Source = Excel.Workbook(File.Contents(Source_Files[Source file]{0}), null, true),

or this way:

let    
    FilePath = File.Contents(Source_Files[Source file]{0}),
    Source = Excel.Workbook(Web.Contents(FilePath), null, true),

How can I parameterise an Excel file on a SharePoint site in Power Query?

Mike Honey

I think the syntax to replace "FilePath" would be:

Text.From(Excel.CurrentWorkbook(){[Name="Source_Files"]}[Content]{0}[Source file])

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Display an error message popup when file path on JFileChooser is invalid

From Dev

Invalid syntax in path when changing directory

From Dev

Laravel composer absolute path error in VB

From Dev

Invalid OData path and Invalid action error

From Dev

Why do I get an invalid path when I try and construct a JPQL join query?

From Dev

Relative URL to Absolute Path

From Dev

Create new absolute path from absolute path + relative or absolute path

From Dev

Htaccess absolute path

From Dev

Unity error when creating project - Project path is invalid

From Dev

How to find absolute path in Scons site_tools

From Dev

Invalid absolute path error when parameterising Excel path on SharePoint site in Power Query

From Dev

Eclipse error: JRE is selected, but the path is invalid

From Dev

Is my error due to an absolute path issue?

From Dev

Invalid Database Path Error while Inserting Data

From Dev

Combine an absolute path with a relative path

From Dev

Laravel composer absolute path error in VB

From Dev

Invalid OData path and Invalid action error

From Dev

Why do I get an invalid path when I try and construct a JPQL join query?

From Dev

Ckeditor Rails Sprocket Absolute Asset Path Error

From Dev

From absolute path to relative path

From Dev

Create new absolute path from absolute path + relative or absolute path

From Dev

Cause of "The specified path is invalid" error when using ScheduledToastNotification

From Dev

Wine Not Working ! Error : Invalid directory prefix32 in WINEPREFIX: not an absolute path

From Dev

Export to Excel for absolute path

From Dev

invalid location passed in, must give absolute path?

From Dev

Absolute path error when building wheel

From Dev

Path error when edit/commit file on Gitlab site

From Dev

Cant post to Azure storage? Invalid Path error

From Dev

Absolute path to file throws error?

Related Related

  1. 1

    Display an error message popup when file path on JFileChooser is invalid

  2. 2

    Invalid syntax in path when changing directory

  3. 3

    Laravel composer absolute path error in VB

  4. 4

    Invalid OData path and Invalid action error

  5. 5

    Why do I get an invalid path when I try and construct a JPQL join query?

  6. 6

    Relative URL to Absolute Path

  7. 7

    Create new absolute path from absolute path + relative or absolute path

  8. 8

    Htaccess absolute path

  9. 9

    Unity error when creating project - Project path is invalid

  10. 10

    How to find absolute path in Scons site_tools

  11. 11

    Invalid absolute path error when parameterising Excel path on SharePoint site in Power Query

  12. 12

    Eclipse error: JRE is selected, but the path is invalid

  13. 13

    Is my error due to an absolute path issue?

  14. 14

    Invalid Database Path Error while Inserting Data

  15. 15

    Combine an absolute path with a relative path

  16. 16

    Laravel composer absolute path error in VB

  17. 17

    Invalid OData path and Invalid action error

  18. 18

    Why do I get an invalid path when I try and construct a JPQL join query?

  19. 19

    Ckeditor Rails Sprocket Absolute Asset Path Error

  20. 20

    From absolute path to relative path

  21. 21

    Create new absolute path from absolute path + relative or absolute path

  22. 22

    Cause of "The specified path is invalid" error when using ScheduledToastNotification

  23. 23

    Wine Not Working ! Error : Invalid directory prefix32 in WINEPREFIX: not an absolute path

  24. 24

    Export to Excel for absolute path

  25. 25

    invalid location passed in, must give absolute path?

  26. 26

    Absolute path error when building wheel

  27. 27

    Path error when edit/commit file on Gitlab site

  28. 28

    Cant post to Azure storage? Invalid Path error

  29. 29

    Absolute path to file throws error?

HotTag

Archive