<?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 Macro parse failed. Functionality was lost. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-parse-failed-Functionality-was-lost/m-p/749270#M267353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am testing QlikView 11 SR8 in my customer site.&lt;/P&gt;&lt;P&gt;The environments are Visual Studio 2010 SP1 and .Net 4.0 on the Windows 7.&lt;/P&gt;&lt;P&gt;My customer developed a document(qvw) which create&amp;nbsp; Objects from XML by macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub setDetailChart()&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;filename = "\Variable\M10_AreaTrendChart.xml"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;sub createChart(filename)&lt;/P&gt;&lt;P&gt;&amp;nbsp; xmlfile = getValue("vs_CommonPath") + filename&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;ActiveDocument.ActiveSheet.CreateObjectFromXmlPropertiesFile&lt;/STRONG&gt; xmlfile&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the document is called from C# using "qvp://ip adress/document.qvw".&lt;/P&gt;&lt;P&gt;The problem is occurred when the macro is executed after the document sheet is activated &lt;/P&gt;&lt;P&gt; The statement, &lt;SPAN style="font-size: 13.1428575515747px;"&gt;ActiveDocument.ActiveSheet.CreateObjectFromXmlPropertiesFile, make an error as follow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Macro parse failed. Functionality was lost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setDetailChart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.1428575515747px;"&gt;setDetailChart --&amp;gt; subroutine calls the subroutine, &lt;SPAN style="font-size: 13.1428575515747px;"&gt;createChart.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error : no error number or messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, in local computer, if the document is called using "D:\QVW\document.qvw" not "qvp://", it works fine.&lt;/P&gt;&lt;P&gt;I don't know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WanKi,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2015 15:50:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-07T15:50:46Z</dc:date>
    <item>
      <title>Macro parse failed. Functionality was lost.</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-parse-failed-Functionality-was-lost/m-p/749270#M267353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am testing QlikView 11 SR8 in my customer site.&lt;/P&gt;&lt;P&gt;The environments are Visual Studio 2010 SP1 and .Net 4.0 on the Windows 7.&lt;/P&gt;&lt;P&gt;My customer developed a document(qvw) which create&amp;nbsp; Objects from XML by macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub setDetailChart()&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;filename = "\Variable\M10_AreaTrendChart.xml"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;sub createChart(filename)&lt;/P&gt;&lt;P&gt;&amp;nbsp; xmlfile = getValue("vs_CommonPath") + filename&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;ActiveDocument.ActiveSheet.CreateObjectFromXmlPropertiesFile&lt;/STRONG&gt; xmlfile&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the document is called from C# using "qvp://ip adress/document.qvw".&lt;/P&gt;&lt;P&gt;The problem is occurred when the macro is executed after the document sheet is activated &lt;/P&gt;&lt;P&gt; The statement, &lt;SPAN style="font-size: 13.1428575515747px;"&gt;ActiveDocument.ActiveSheet.CreateObjectFromXmlPropertiesFile, make an error as follow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Macro parse failed. Functionality was lost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setDetailChart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.1428575515747px;"&gt;setDetailChart --&amp;gt; subroutine calls the subroutine, &lt;SPAN style="font-size: 13.1428575515747px;"&gt;createChart.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error : no error number or messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, in local computer, if the document is called using "D:\QVW\document.qvw" not "qvp://", it works fine.&lt;/P&gt;&lt;P&gt;I don't know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WanKi,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 15:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-parse-failed-Functionality-was-lost/m-p/749270#M267353</guid>
      <dc:creator />
      <dc:date>2015-01-07T15:50:46Z</dc:date>
    </item>
  </channel>
</rss>

