Qlik Community

Ask a Question

Integration, Extension & APIs

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

Announcements
Our May 2021 end-to-end product release from Data Integration to Data Analytics is out! READ DETAILS
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
yko
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

yko
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.