<?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 Bug in Distribution Service? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bug-in-Distribution-Service/m-p/614217#M1265116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a very simple document that works fine in qlikview desktop. It refreshes in 2 seconds but when refreshed in distribution service it never ends keeping the qvb.exe process at 100% cpu until ended by hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the problem to be the use of a variable in the formula of other variable. The exact code that hangs is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set yr_amnt&amp;nbsp;&amp;nbsp;&amp;nbsp; = if (year(SAL_DATE) = year($1) AND BEFORE_AFTER = 0, SAL_AMOUNT);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;set mo_amnt&amp;nbsp;&amp;nbsp;&amp;nbsp; = if (month(SAL_DATE) = month($1) and day(SAL_DATE) &amp;lt;= day($1), $(yr_amnt($1)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that mo_amnt uses yr_amnt in the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I changed the second variable to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set mo_amnt&amp;nbsp;&amp;nbsp;&amp;nbsp; = if (month(SAL_DATE) = month($1) and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; day(SAL_DATE)&amp;nbsp; &amp;lt;= day($1)&amp;nbsp;&amp;nbsp; and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(SAL_DATE)&amp;nbsp; = year($1)&amp;nbsp; and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BEFORE_AFTER&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0, SAL_AMOUNT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionally equivalent, but is not using the first variable. This time the job finished in 2 seconds.&lt;/P&gt;&lt;P&gt;It looks like qlikview districution service runs in a infinite loop when evaluating variables inside other variables.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have anyone else experienced the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>Bug in Distribution Service?</title>
      <link>https://community.qlik.com/t5/QlikView/Bug-in-Distribution-Service/m-p/614217#M1265116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a very simple document that works fine in qlikview desktop. It refreshes in 2 seconds but when refreshed in distribution service it never ends keeping the qvb.exe process at 100% cpu until ended by hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the problem to be the use of a variable in the formula of other variable. The exact code that hangs is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set yr_amnt&amp;nbsp;&amp;nbsp;&amp;nbsp; = if (year(SAL_DATE) = year($1) AND BEFORE_AFTER = 0, SAL_AMOUNT);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;set mo_amnt&amp;nbsp;&amp;nbsp;&amp;nbsp; = if (month(SAL_DATE) = month($1) and day(SAL_DATE) &amp;lt;= day($1), $(yr_amnt($1)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that mo_amnt uses yr_amnt in the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I changed the second variable to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set mo_amnt&amp;nbsp;&amp;nbsp;&amp;nbsp; = if (month(SAL_DATE) = month($1) and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; day(SAL_DATE)&amp;nbsp; &amp;lt;= day($1)&amp;nbsp;&amp;nbsp; and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(SAL_DATE)&amp;nbsp; = year($1)&amp;nbsp; and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BEFORE_AFTER&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0, SAL_AMOUNT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionally equivalent, but is not using the first variable. This time the job finished in 2 seconds.&lt;/P&gt;&lt;P&gt;It looks like qlikview districution service runs in a infinite loop when evaluating variables inside other variables.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have anyone else experienced the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bug-in-Distribution-Service/m-p/614217#M1265116</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
  </channel>
</rss>

