<?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: Subroutines cannot be nested too deep in .qvs files? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subroutines-cannot-be-nested-too-deep-in-qvs-files/m-p/424536#M697474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you nesting $(include)? That is, the main qvw script has:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(Include=qvs1.qvs);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and qvs1.qvs contains:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(Include=qvs2.qvs);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works ok for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you have a sub that calls a sub?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Mar 2013 00:48:08 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2013-03-09T00:48:08Z</dc:date>
    <item>
      <title>Subroutines cannot be nested too deep in .qvs files?</title>
      <link>https://community.qlik.com/t5/QlikView/Subroutines-cannot-be-nested-too-deep-in-qvs-files/m-p/424535#M697473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been encountering this strange problem with QlikView QVS script files and wonder if anyone else has encountered it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a subroutine defined:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sub works perfectly when it is directly in the load script of a QVW file.&lt;/P&gt;&lt;P&gt;It also works when it is in a QVS file, QVS1, that is directly included in the load script of a QVW file.&lt;/P&gt;&lt;P&gt;But if I put in a deeper level, QVS2, then I get a script error when I call the subroutine.&amp;nbsp; At this point, the call chain is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVW file load script &amp;gt; QVS1 &amp;gt; QVS2 &amp;gt; SUB A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is simply: Script Error:&amp;nbsp; Call Sub A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment, I have worked around this by placing the sub at level QVS1.&amp;nbsp; The call chain looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVW file load script &amp;gt; QVS1 &amp;gt; SUB A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 23:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subroutines-cannot-be-nested-too-deep-in-qvs-files/m-p/424535#M697473</guid>
      <dc:creator>kevinpintokpa</dc:creator>
      <dc:date>2013-03-08T23:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Subroutines cannot be nested too deep in .qvs files?</title>
      <link>https://community.qlik.com/t5/QlikView/Subroutines-cannot-be-nested-too-deep-in-qvs-files/m-p/424536#M697474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you nesting $(include)? That is, the main qvw script has:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(Include=qvs1.qvs);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and qvs1.qvs contains:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;$(Include=qvs2.qvs);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works ok for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you have a sub that calls a sub?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2013 00:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subroutines-cannot-be-nested-too-deep-in-qvs-files/m-p/424536#M697474</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-03-09T00:48:08Z</dc:date>
    </item>
  </channel>
</rss>

