<?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 How to create and debug an include file in QlikSense? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-create-and-debug-an-include-file-in-QlikSense/m-p/1206574#M23033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;I have created a subroutine with my section access code. I call the subroutine when I need it and it&lt;SPAN style="font-size: 13.3333px;"&gt; works fine in the qliksense editor. Now, I want to save this subroutine in an external .qvs-file and include it in my script. This way I can re-use the same subroutine in other apps. I do this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="ruby" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14758230870373350 jive_text_macro" jivemacro_uid="_14758230870373350" modifiedtitle="true"&gt;
&lt;P&gt;//Include Section Access file&lt;/P&gt;
&lt;P&gt;$(Include=MySectionAccesCode.qvs);&lt;/P&gt;
&lt;P&gt;$(Must_Include=lib://QDFSharedSUB\&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;MySectionAccesCode.qvs&lt;/SPAN&gt;);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I get an error when doing this and I cant even debug this. The error message is "&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 15px; font-weight: bold;"&gt;Data has not been loaded. Please correct the error and try loading again.&lt;/SPAN&gt;" No clues at all from this error message what could be wrong. When I try to debug this it just runs through without any problems. Seems to skip the variables or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried with .txt files as well. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Oct 2016 06:59:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-07T06:59:25Z</dc:date>
    <item>
      <title>How to create and debug an include file in QlikSense?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-and-debug-an-include-file-in-QlikSense/m-p/1206574#M23033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;I have created a subroutine with my section access code. I call the subroutine when I need it and it&lt;SPAN style="font-size: 13.3333px;"&gt; works fine in the qliksense editor. Now, I want to save this subroutine in an external .qvs-file and include it in my script. This way I can re-use the same subroutine in other apps. I do this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="ruby" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14758230870373350 jive_text_macro" jivemacro_uid="_14758230870373350" modifiedtitle="true"&gt;
&lt;P&gt;//Include Section Access file&lt;/P&gt;
&lt;P&gt;$(Include=MySectionAccesCode.qvs);&lt;/P&gt;
&lt;P&gt;$(Must_Include=lib://QDFSharedSUB\&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;MySectionAccesCode.qvs&lt;/SPAN&gt;);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I get an error when doing this and I cant even debug this. The error message is "&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 15px; font-weight: bold;"&gt;Data has not been loaded. Please correct the error and try loading again.&lt;/SPAN&gt;" No clues at all from this error message what could be wrong. When I try to debug this it just runs through without any problems. Seems to skip the variables or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I tried with .txt files as well. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Cris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 06:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-and-debug-an-include-file-in-QlikSense/m-p/1206574#M23033</guid>
      <dc:creator />
      <dc:date>2016-10-07T06:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create and debug an include file in QlikSense?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-create-and-debug-an-include-file-in-QlikSense/m-p/1206575#M23034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never mind. I just realized that Im not reading correctly. The code should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="dp-rb" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="color: black; font-size: 9pt !important; font-style: inherit; background-color: inherit; font-weight: inherit;"&gt;//Include Section Access file &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;$(Must_Include=lib://QDFSharedSUB\MySectionAccesCode.qvs);&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 11:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-create-and-debug-an-include-file-in-QlikSense/m-p/1206575#M23034</guid>
      <dc:creator />
      <dc:date>2016-10-07T11:17:30Z</dc:date>
    </item>
  </channel>
</rss>

