Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
QlikWorld, June 24-25, 2020. Free virtual event for Data Integration and Data Analytics gurus. Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
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
Highlighted
Employee
Employee

Re: .net sdk GetVariableList suspendedLayoutException

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;
}

 

Highlighted
Contributor III
Contributor III

Re: .net sdk GetVariableList suspendedLayoutException

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

Highlighted
Employee
Employee

Re: .net sdk GetVariableList suspendedLayoutException

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.