Forum Discussion

jaryszek's avatar
jaryszek
Super User
1 year ago
Solved

Power Query Folding breaking query

Hi Guys, I have notied that when i am using path like this within Folder.Files:    let path = Text.Combine("D:\BundleSetsRepositories\cost-mgmt-data1") in path everything is working but when ...
  • jaryszek's avatar
    jaryszek
    1 year ago

    thanks,

    i tried your proposition: 

    let
    getSource = () =>
    Folder.Files(Text.Combine({Text.Replace(paramLocalRepositoryPath, "/", "\\"), paramRepository}, "\\")),
    
    Source = if Environment = "Local" then getSource() else #table({}, {})
    in
    Source

     

    It still hanging power bi while publishing. It is like it skipping if else statement and triggering dynamic path no matter of it. 

    I created support case.
    Best,
    Jacek