Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

deleted variable keeps coming up

Hi experts,

I am deleting a variable, save the qvw, and run it from the publisher. As soon as the task runs completely the variable is again created in the qvw. What could be the source? Varibale is not being updated by any spreadsheet. I am wondering where I should look for the source that keeps creating deleted variable.

Thanks!

31 Replies
Anonymous
Not applicable
Author

Yes, I am opening from client. This issue is strange! This document was developed by someone else, I am making some changes. I have found work around but still the issue haunts me. There are some macros but i dont think any macro is related to this issue.

I have listed all macros below-

sub OMT

  ActiveDocument.Sheets("OMT").Activate

end sub

sub OMR

  ActiveDocument.Sheets("OMR").Activate

end sub

sub Master

  ActiveDocument.Sheets("Master").Activate

end sub

sub Main

  ActiveDocument.Sheets("Main").Activate

end sub

sub Summary

  ActiveDocument.Sheets("Summary").Activate

end sub

sub TPM

  ActiveDocument.Sheets("TPM").Activate

end sub

Anonymous
Not applicable
Author

I see the variables emerging again in source folder.

Anonymous
Not applicable
Author

How about if you copy the qvw to another folder, delete the variable and then reload it ?

If no joy then try to delete the variable at the end of the script by setting it to null() :

     LET vYourVariable=null();

swarup_malli
Specialist
Specialist

You might be referencing an external file which have variables defined in them.

comment out the $Include statement

Anonymous
Not applicable
Author

These things are checked.

swuehl
MVP
MVP

What's the name of your variable? And where is this variable used / how do you determine that it is recreated?

swarup_malli
Specialist
Specialist

My bad I should have read the above replies.Try exporting the script to an external file.Then use that script in a newly created qvw .This might shed some light on what might be happening

swuehl
MVP
MVP

And have you checked that there is no hidden script?

Anonymous
Not applicable
Author

Yes

swuehl
MVP
MVP

We can assume this issue is only present when you are using the publisher, so not present when reloading the same QVW in the desktop client? Can you elaborate how the publisher job looks like? Anything special?