Skip to main content
Nintex Community Menu Bar

XPath concat in Query XML Action

  • March 3, 2016
  • 2 replies
  • 54 views

Forum|alt.badge.img+2

Hello,

Im trying to concat two attributes but unfortunately i receive always this error message

The execution returned an unexpected error.

Expression must evaluate to a node-set

<RepeaterData>

<Version />

<Items>

<Item>

<Name type="System.String">Gullo</Name>

<Nationalitaet type="System.String">Italy</Nationalitaet>

<Vorname type="System.String">Domenico</Vorname>

<Typ type="System.String">Ehemann</Typ>

<Geburtsdatum type="System.DateTime"></Geburtsdatum>

<Groesse type="System.String"></Groesse>

<Heimatort type="System.String">Italy</Heimatort>

</Item>

</Items>

</RepeaterData>

My XPath is

concat(/RepeaterData/Items/Item/Vorname, ' ', /RepeaterData/Items/Item/Name)

If i run only /RepeaterData/Items/Item/Vorname it will give me back the FirstName, but the concat doesn't work.

Can somebody tell me whats wrong here?

thanks and regards

domenico

2 replies

Forum|alt.badge.img+2
  • Nintex Employee
  • March 14, 2016

Hello,

I can confirm that concatenate is not supported within the 'Query XML Action'.

I would recommend outputting the values you wish to concatenate into variables. You can then combine them via the 'Build String' action.

Regards


Tom Clark


TomaszPoszytek
Forum|alt.badge.img+17

Thomas Clark‌ can you as well confirm that other XPath functions like count, sum, avg, etc... are also unsupported? I'm trying to use "count" function and in log I can find an error: "XPath query is invalid. Expression must evaluate to a node-set..".

I'm trying to execute "Query XML" action in Nintex for O365 .

Regards, Tomasz