Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
DiegoLotti
Contributor III
Contributor III

.net sdk GetVariableList suspendedLayoutException

 

Hello,

I'm trying to use the .net sdk to list the variables of a particular App.

I have no problem in connecting and getting the app reference, but when I use the GetVariableList() I get a Qlik.Engine.SuspendedLayoutException.

How can I disable or fix SuspendedLayout? 

I need variableName, variable expression and description.

This is my very simple code, what's wrong?

image.png

3 Replies
Øystein_Kolsrud
Employee
Employee

Is that really all the code? As far as I know, the only way to trigger that exception in combination with this method:

https://help.qlik.com/en-US/sense-developer/November2019/APIs/Net+SDK/html/M_Qlik_Engine_PropertyCon...

Either directly or through a use clause like this:

using(myObj.SuspendedLayout)
{
    myObj.Properties.Prop = x;
}

 

DiegoLotti
Contributor III
Contributor III
Author

That's quite interesting. I did some variable inspection in visual studio debugger, trying to find the right properties and I some way I turned on suspendedLayout.

But for sure I did not call suspendLayout method in code.

The app itself stopped working and I got a "Qlik internal engine error" if I tried to oper the script editor.

I fixed it by duplicating the app and now the code works perfectly.

Thank you

Øystein_Kolsrud
Employee
Employee

Glad you were able to make progress! Though you should not get "Internal engine error" thrown at you. Must be some corner case the engine is not handling well.