I have a Repeated Section in Nintex Forms for Office 365 and for now I just want to extract the number of repeated items in that section just as follows;
REPEATED SECTION TEXT ONCE FORM IS STORED:
<?xml version="1.0" encoding="utf-8"?>
<ItemTitle_x0020_ type="System.String">this is title 1</ItemTitle_x0020_>
<ItemTitle_x0020_ type="System.String">this is title 2</ItemTitle_x0020_>
Workflow Action Query XML only does this: count(//RepeaterData/Items/Item) (screenshot)
And when ran the Workflow log shows me an error "The request cannot be processed due to internal error" but nothing else.
any idea ?
screenshot of the error:
Solved! Go to Solution.
Update: after talking to Support it came clear that even a simple XML was erroring so we decided not to waste more time with that action and use Dictionary actions instead which work much better to get he XML node as dictionary collections.
Not sure if there is therefore a bug in the XML action but use Dictionary was the answer for me.
I will post more details when time allows.
I've tested and I have the same error.
I think that this is not supported.
The following XPath works : //Items[count(Item)>1] but when count() is placed at the beginning of the XPath query it throws an error. Maybe because it tries to return text from xml...
thank you for testing Caroline Jung , would be interesting to see how it behaves on premises, because I suspect the action is slightly different behaviour on Office 365.
How did you fix the problem? Vadim has a UDA but I can't use that because it uses control from the form as a input. Can you please post your solution? Thanks in advance.
You have to save nodes you want to count into Collection and then count items in collection. Advanced xPath methods are not supported in regular expression actions, in Nintex unfortunately.