<?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 Re: Conditional Load based on ServerName in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Load-based-on-ServerName/m-p/1371759#M419168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be interpreting your path as a relative path.&amp;nbsp; The error msg is showing the computed absolute path. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using "\\" in the front of you path should be interpreted as an absolute path.&amp;nbsp; To debug this you need to look at the actual variable substitution in the Document Log for this LOAD statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 18:07:37 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2017-06-22T18:07:37Z</dc:date>
    <item>
      <title>Conditional Load based on ServerName</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-based-on-ServerName/m-p/1371755#M419164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to do a conditional load in Qlikview.&amp;nbsp; For example IF(ServerName = QA) do this load with direct path.&amp;nbsp; If not do this load with relative paths?&amp;nbsp; If so, would you post an example?&amp;nbsp; I can't seem to get relative paths to work if it's not selected and the direct path won't work if relative path is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 20:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-based-on-ServerName/m-p/1371755#M419164</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2017-06-14T20:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Load based on ServerName</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-based-on-ServerName/m-p/1371756#M419165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally the solution is like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET v&lt;SPAN style="font-size: 13.3333px;"&gt;DataPath &lt;/SPAN&gt;= If(ComputerName() = 'QA', 'D:\QlikView\QVD', '..\QVDs');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM [$(&lt;SPAN style="font-size: 13.3333px;"&gt;v&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DataPath&lt;/SPAN&gt;)\facts.qvd] (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 23:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-based-on-ServerName/m-p/1371756#M419165</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-06-14T23:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Load based on ServerName</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-based-on-ServerName/m-p/1371757#M419166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 14:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-based-on-ServerName/m-p/1371757#M419166</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2017-06-15T14:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Load based on ServerName</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-based-on-ServerName/m-p/1371758#M419167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob to add to this question.&amp;nbsp; If i'm looking to load from different environments in the same load.&amp;nbsp; I.E. a reconciliation app, I have to use the direct path.&amp;nbsp; However it seems using \\servername\qlikview into the correct directory doesn't work.&amp;nbsp; Is there a specific syntax i'm missing?&amp;nbsp; here is what i'm currently using: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;?????????.?????.corpadqa.net\E:\QlikView\RBA\1.Common\1.2.QVD\1.2.1.Stage1\file.qvd]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;I've tried without the drive letter tried adding \\ before the server, and several others.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Edit:&amp;nbsp; I've identified the problem and it's adding a prefix to my direct path shown below in &lt;SPAN style="color: #ff0000;"&gt;red&lt;/SPAN&gt;, where is this prefix stored and how do I change it?&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Cannot open file '&lt;SPAN style="color: #ff0000;"&gt;Q:\1.Common\1.1.Applications\1.1.1.Stage1\&lt;/SPAN&gt;????????.??????.corpadqa.net\E:\QlikView\RBA\1.Common\1.2.QVD\1.2.1.Stage1\1.2.1.Common_PatientFact_ADDate.qvd' The specified path is invalid.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 18:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-based-on-ServerName/m-p/1371758#M419167</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2017-06-19T18:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Load based on ServerName</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Load-based-on-ServerName/m-p/1371759#M419168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be interpreting your path as a relative path.&amp;nbsp; The error msg is showing the computed absolute path. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using "\\" in the front of you path should be interpreted as an absolute path.&amp;nbsp; To debug this you need to look at the actual variable substitution in the Document Log for this LOAD statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 18:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Load-based-on-ServerName/m-p/1371759#M419168</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-06-22T18:07:37Z</dc:date>
    </item>
  </channel>
</rss>

