Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro Parse failed. Functionality was lost error when creating a cyclic group in a Macro

Hi,

I am receiving an error 'Macro parse failed.  Functionality was lost' when a macro is executed to create a cyclic group.  This is only happening when using the Access Point.  The desktop client works fine.  Below is the Macro code.  Does anybody know why this may be happening?

sub mSetDatesCyclicGroup

   SET x = ActiveDocument.Variables("vDateConditon")

   SET y = ActiveDocument.Variables("vMonthEndDisplay")

   If x.GetContent.String = "1" Then

        If y.GetContent.String = "0" THEN

            ActiveDocument.RemoveGroup "Dates"

            set gr=ActiveDocument.CreateGroup("Dates")

            gr.AddField "MonthEnd"

            gr.AddField "WeekEnding"

            gr.AddField "Date"

            set gp = ActiveDocument.GetGroup("Dates").GetProperties

            gp.IsCyclic = true

            ActiveDocument.GetGroup("Dates").SetProperties gp

            ActiveDocument.GetApplication.Refresh

               y.SetContent "1",true

        End If

   Else

        If y.GetContent.String = "1" THEN

            ActiveDocument.RemoveGroup "Dates"

            set gr=ActiveDocument.CreateGroup("Dates")

            gr.AddField "MonthEnd"

            set gp = ActiveDocument.GetGroup("Dates").GetProperties

            gp.IsCyclic = true

            ActiveDocument.GetGroup("Dates").SetProperties gp

            ActiveDocument.GetApplication.Refresh

               y.SetContent "0",true

        End If

   end if

end sub

Thanks

Nilesh

13 Replies
Not applicable
Author

Hi Saurabh,

I am not sure and did not look into this any further after it was identified as a bug.

Nilesh

Not applicable
Author

Hi Saurabh,

I am not sure and did not look into this any further after it was identified as a bug.

Nilesh

Not applicable
Author

Hi Saurabh,

I am not sure and did not look into this any further after it was identified as a bug.

Nilesh

Anonymous
Not applicable
Author

The only solution I found to my problem was as suggested by Joshua Campbell

Press CTRL + SHIFT +M.

Thanks