Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.


Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Problem with running macro from server

Hello  All,

I'll be happy to get some help on a problem with running macro from server.

We are using macro to create textboxes including some data from model,

Macro is running without problems on computer, but when I’m trying to open model from the server  - Error message is appearing (prtscn attached as a file).

I think that following macro script is causing the problem – last  row of  Obj.GetProperties

Function CreateMachine()
       Set Sheet = ActiveDocument.GetSheetById("Document\SH-MachLocation")
       Set Machine = Sheet.CreateTextObject
       Machine.SetLayer 5
       MachineId = Machine.GetObjectId
       Set Obj = ActiveDocument.GetSheetObject(MachineId)
       Set ObjProp = Obj.GetProperties

Error mess. Is:

Macro parse failed. Functionality was lost.


Error: Object required: ‘Obj’

It seems that Obj can’t be found/created

Any idea what could be the problem?

Thank you in advance


1 Reply
Not applicable

Problem with running macro from server

It's Ok

Apparently in Server Object ID is 'Server\ID' and not 'Document\ID' as it is on desktop.

That's why Obj.ID wasn't found