<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Permissions problem for dynamically named web data source in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Permissions-problem-for-dynamically-named-web-data-source/m-p/1061225#M14065</link>
    <description>&lt;P&gt;I have a PBI report that accesses delimited text files from a web server. Every day a new text file is added to the directory and the file name contains string representing the date. I have created a function to access these files. I have to first construct the name(s) of the file(s) I want. So if I want to get a file generated yesterday, I will calculate the proper date string based on DateTime.LocalNow() and adjust for -1 day. I then use Web.Contents() with my properly constructed file name. This works when I am running the query from Power BI Desktop for Report Server. However when I save the report to the Report Server, and try to set up automatic refresh it fails. The dyanamic data source is not "seen" as a source for which I can enter credentials. Apparently the server expects to have crendentials set for every individual file, but the file names are not constructed until run time. Due to the hand-edited functions and queries, these sources are "invisible" at the time of entering credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to enter credentials for the web folder that the files are in, and have it apply those permissions to any file in the folder. I can't see a way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does the refresh work from PBI Desktop but not from the report running on the report server? And does anyone have a suggestion of how to solve this problem? Thanks for any clues you can provide!&lt;/P&gt;</description>
    <pubDate>Fri, 01 May 2020 15:11:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-01T15:11:47Z</dc:date>
    <item>
      <title>Permissions problem for dynamically named web data source</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Permissions-problem-for-dynamically-named-web-data-source/m-p/1061225#M14065</link>
      <description>&lt;P&gt;I have a PBI report that accesses delimited text files from a web server. Every day a new text file is added to the directory and the file name contains string representing the date. I have created a function to access these files. I have to first construct the name(s) of the file(s) I want. So if I want to get a file generated yesterday, I will calculate the proper date string based on DateTime.LocalNow() and adjust for -1 day. I then use Web.Contents() with my properly constructed file name. This works when I am running the query from Power BI Desktop for Report Server. However when I save the report to the Report Server, and try to set up automatic refresh it fails. The dyanamic data source is not "seen" as a source for which I can enter credentials. Apparently the server expects to have crendentials set for every individual file, but the file names are not constructed until run time. Due to the hand-edited functions and queries, these sources are "invisible" at the time of entering credentials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to enter credentials for the web folder that the files are in, and have it apply those permissions to any file in the folder. I can't see a way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does the refresh work from PBI Desktop but not from the report running on the report server? And does anyone have a suggestion of how to solve this problem? Thanks for any clues you can provide!&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 15:11:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Permissions-problem-for-dynamically-named-web-data-source/m-p/1061225#M14065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-01T15:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions problem for dynamically named web data source</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Permissions-problem-for-dynamically-named-web-data-source/m-p/1077878#M14123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can probably resolve the issue with the scheduled refresh by the method on&amp;nbsp;this blog:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power-bi/" target="_self"&gt;https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power-bi/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's official trouble shotting document could also provide some hints:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/report-server/scheduled-refresh-troubleshoot" target="_self"&gt;https://docs.microsoft.com/en-us/power-bi/report-server/scheduled-refresh-troubleshoot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/report-server/scheduled-refresh" target="_self"&gt;https://docs.microsoft.com/en-us/power-bi/report-server/scheduled-refresh&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 03:00:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Permissions-problem-for-dynamically-named-web-data-source/m-p/1077878#M14123</guid>
      <dc:creator>v-diye-msft</dc:creator>
      <dc:date>2020-05-07T03:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions problem for dynamically named web data source</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Permissions-problem-for-dynamically-named-web-data-source/m-p/1090382#M14216</link>
      <description>&lt;P&gt;Hey copious "thanks" to &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="143212" data-lia-user-login="v-diye-msft" class="lia-mention lia-mention-user"&gt;v-diye-msft&lt;/a&gt;&amp;nbsp;&lt;SPAN class="lia-link-navigation child-thread lia-link-disabled"&gt;v-diye-msft&lt;/SPAN&gt;! The post from &lt;A href="https://blog.crossjoin.co.uk/2016/08/16/using-the-relativepath-and-query-options-with-web-contents-in-power-query-and-power-bi-m-code/" target="_self"&gt;Chris Webb's blog on the RelativePath argument to Web.Contents&lt;/A&gt;, held the key. Once I started using that, I was able to provide credentials to the 'base' URL and no longer got errors. Now my report will auto refresh using Report Server.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 21:00:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Permissions-problem-for-dynamically-named-web-data-source/m-p/1090382#M14216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-14T21:00:07Z</dc:date>
    </item>
  </channel>
</rss>

