<?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 Dynamic update using macro results in 'macro parse failed' error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-update-using-macro-results-in-macro-parse-failed-error/m-p/683837#M247891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have come across a problem I cannot solve myself nor I can find any similar issues described on this forum earlier on. Thefore I kindly ask for any help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a macro to update one table with comment provided by user in the inputfield and save it to external file at the same time after a button is pressed. I need a macro because the data to be updated is different depending on user selection. The system run QV 11 (11.00.11282.0) server while user run IE 9 with QV plugin. The saving to external file works fine on user machine but everytime I add the following part of the macro the following error shows up: "Macro parse failed. Functionality was lost. Error:". Unfortunately there is no error description whatsoever. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strTextUpdate = "INSERT INTO * (HDataKont, [Kod klienta], HOpis, HStatus) VALUES ($(vDzis), $(vKlient), $(vComment), $(vStatus))"&lt;/P&gt;&lt;P&gt;msgbox(strTextUpdate)&lt;/P&gt;&lt;P&gt;set Result = ActiveDocument.DynamicUpdateCommand(strTextUpdate)&lt;/P&gt;&lt;P&gt;if Result = false then MsgBox Result.ErrorMessage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same macro works perferct on my local machine running IE11 with QV plugin and also on QV client. Of course I have allowed user to run macro (ctrl+shift+M) and even replaced user's qv settings.ini file with mine but nothing changed. I have added the msgbox to check the string and it's ok. Obviously the ActiveDocument.DynamicUpdateCommand is the source of the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone have any idea how to solve it? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Sep 2014 13:00:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-01T13:00:57Z</dc:date>
    <item>
      <title>Dynamic update using macro results in 'macro parse failed' error</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-update-using-macro-results-in-macro-parse-failed-error/m-p/683837#M247891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have come across a problem I cannot solve myself nor I can find any similar issues described on this forum earlier on. Thefore I kindly ask for any help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a macro to update one table with comment provided by user in the inputfield and save it to external file at the same time after a button is pressed. I need a macro because the data to be updated is different depending on user selection. The system run QV 11 (11.00.11282.0) server while user run IE 9 with QV plugin. The saving to external file works fine on user machine but everytime I add the following part of the macro the following error shows up: "Macro parse failed. Functionality was lost. Error:". Unfortunately there is no error description whatsoever. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;strTextUpdate = "INSERT INTO * (HDataKont, [Kod klienta], HOpis, HStatus) VALUES ($(vDzis), $(vKlient), $(vComment), $(vStatus))"&lt;/P&gt;&lt;P&gt;msgbox(strTextUpdate)&lt;/P&gt;&lt;P&gt;set Result = ActiveDocument.DynamicUpdateCommand(strTextUpdate)&lt;/P&gt;&lt;P&gt;if Result = false then MsgBox Result.ErrorMessage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same macro works perferct on my local machine running IE11 with QV plugin and also on QV client. Of course I have allowed user to run macro (ctrl+shift+M) and even replaced user's qv settings.ini file with mine but nothing changed. I have added the msgbox to check the string and it's ok. Obviously the ActiveDocument.DynamicUpdateCommand is the source of the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone have any idea how to solve it? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 13:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-update-using-macro-results-in-macro-parse-failed-error/m-p/683837#M247891</guid>
      <dc:creator />
      <dc:date>2014-09-01T13:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update using macro results in 'macro parse failed' error</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-update-using-macro-results-in-macro-parse-failed-error/m-p/683838#M247892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it without set Result in a direct statement and have a look here: &lt;A href="https://community.qlik.com/thread/131455"&gt;Error in a macro&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 15:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-update-using-macro-results-in-macro-parse-failed-error/m-p/683838#M247892</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-01T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update using macro results in 'macro parse failed' error</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-update-using-macro-results-in-macro-parse-failed-error/m-p/683839#M247893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip but unfortunately the result is still the same. I suspect there is some kind of problem with user access rights but I cannot figure out what's wrong. I gave the user Admin rights in Section Access of the qv application but it didn't help either. Obviously the DynamicUpdate command triggers macro parse failed error so there is no need to generate macro log file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 08:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-update-using-macro-results-in-macro-parse-failed-error/m-p/683839#M247893</guid>
      <dc:creator />
      <dc:date>2014-09-02T08:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update using macro results in 'macro parse failed' error</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-update-using-macro-results-in-macro-parse-failed-error/m-p/683840#M247894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was easy when you know it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;User has to be in QlikView Administrator group in Windows in order to use Dynamic Update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 13:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-update-using-macro-results-in-macro-parse-failed-error/m-p/683840#M247894</guid>
      <dc:creator />
      <dc:date>2014-09-04T13:19:20Z</dc:date>
    </item>
  </channel>
</rss>

