<?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: Must_include in subroutine failing validation before subroutine is called in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Must-include-in-subroutine-failing-validation-before-subroutine/m-p/1206222#M880656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus I have done as you suggested. I will remember not to write subroutines containing Must_Include&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 02:30:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-12T02:30:51Z</dc:date>
    <item>
      <title>Must_include in subroutine failing validation before subroutine is called</title>
      <link>https://community.qlik.com/t5/QlikView/Must-include-in-subroutine-failing-validation-before-subroutine/m-p/1206220#M880652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first tab in my reload script has a subroutine containing a must_include. The next tab contains&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;calls to the subroutine passing the name of the file to include.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This has been&amp;nbsp; working with no problems in a V11 environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I copied to a V12 environment and reload I get an error message &lt;/P&gt;&lt;P&gt;$MUST_INCLUDE failed.&lt;/P&gt;&lt;P&gt;followed by a pathname which does not include a filename.&lt;/P&gt;&lt;P&gt;If I answer ok to the message the reload continues and completes successfully&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I step it through in debug it shows&lt;/P&gt;&lt;P&gt;SUB name of first subroutine which does not contain a must_include&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;SUB name of the second subroutine which does contain a must_include&lt;/P&gt;&lt;P&gt;the error message $(MUST_INCLUDE failed &lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code in the second tab is then executed correctly including the call to the subroutine containing must_include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears the must_include in the subroutine is being validated before the subroutine is called so the filename is not set and therefore invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the must_include to an include it runs with no error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a V12 issue or is there some setting for validation I should know about&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Must-include-in-subroutine-failing-validation-before-subroutine/m-p/1206220#M880652</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Must_include in subroutine failing validation before subroutine is called</title>
      <link>https://community.qlik.com/t5/QlikView/Must-include-in-subroutine-failing-validation-before-subroutine/m-p/1206221#M880654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Must_Include is something special. I had experienced a case that the must_include was executed even after an exit script statement and therefore I think it will be bypassed from the interpreter and always executed. If there is no other solution I would change the statement to normal include-statement maybe embedded within a small if-loop which checked per filesize() if the file exists and if not exit the script or produce an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 05:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Must-include-in-subroutine-failing-validation-before-subroutine/m-p/1206221#M880654</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-07T05:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Must_include in subroutine failing validation before subroutine is called</title>
      <link>https://community.qlik.com/t5/QlikView/Must-include-in-subroutine-failing-validation-before-subroutine/m-p/1206222#M880656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus I have done as you suggested. I will remember not to write subroutines containing Must_Include&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 02:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Must-include-in-subroutine-failing-validation-before-subroutine/m-p/1206222#M880656</guid>
      <dc:creator />
      <dc:date>2016-10-12T02:30:51Z</dc:date>
    </item>
  </channel>
</rss>

