Hi,
I am using the Query List action to run some custom CAML.It works well except now when I try to add one more condition. When I try to close and save the window, it hangs for a bit, then gives the "Stop running this script? A script is running slowly.....yes/no" -message and when I finally click Yes (clicking no just brings it up again and again) it gives me a script error:
Line: 6633
Char: 13
Error: Object doesn't support this property or method
Code: 0
URL: http://server/_layouts/NintexWorkflow/DialogCommon.js?11201
The CAML is below and the added lines that cause the issue are bolded. The modified query runs fine in the Stramit Caml Viewer when I replace the field references with values.
The reason for the change is so that I can disable lines from the configuration list without removing them and potentially breaking already running workflows.
Any idea what's causing the Query List action to hang when trying to save it?
EDIT: My Nintex version is 11201.
<Query>
<Lists>
<List ID="{3D0D5A4B-4444-45DF-A61A-0D58C9825489}" />
</Lists>
<ViewFields>
<FieldRef Name="ID" />
</ViewFields>
<Where>
<And>
<Eq>
<FieldRef Name="IncludeInWorkflow" />
<Value Type="Boolean">1</Value>
</Eq>
<And>
<And>
<And>
<And>
<Eq>
<FieldRef Name="Function" />
<Value Type="Lookup">{ItemProperty:Function}</Value>
</Eq>
<Eq>
<FieldRef Name="Typology" />
<Value Type="Lookup">{ItemProperty:Typology}</Value>
</Eq>
</And>
<Or>
<And>
<Eq>
<FieldRef Name="Business_x0020_Unit" />
<Value Type="Lookup">{ItemProperty:Business_x0020_Unit}</Value>
</Eq>
<Eq>
<FieldRef Name="Location" />
<Value Type="Lookup">{ItemProperty:Location}</Value>
</Eq>
</And>
<Eq>
<FieldRef Name="Any_x0020_Business_x0020_Unit" />
<Value Type="Boolean">1</Value>
</Eq>
</Or>
</And>
<Leq>
<FieldRef Name="Approval_x0020_Limit" />
<Value Type="Number">{WorkflowVariable:TotalAmountText}</Value>
</Leq>
</And>
<Eq>
<FieldRef Name="Subfunction" />
<Value Type="Lookup">{ItemProperty:Subfunction}</Value>
</Eq>
</And>
</And>
</Where>
<OrderBy>
<FieldRef Name="Order0" Ascending="true" />
</OrderBy>
</Query>