Hi,
I have admitted defeat, I can't see the issue...
Followed this great video to use xpath, select, compose for sum and count.
https://www.youtube.com/watch?v=z5MxbwURV68
Now instead of IDs I need to use something else. I'm looking at a ticket system.
TicketID
Assigned To
etc
I used 'Assigned To' names instead of TicketID
My select fails every time...
xpath(outputs('Compose_XML'),'(//values/[Assigned_x005F_x0020_To/DisplayName=',item(),']/ItemInternalId)')
Could it be due to one of my Assign To names being null?
Where could I best handle that null with a coalesce?
InvalidTemplate
The execution of template action 'Select_XPATH_Name' failed: The evaluation of 'query' action 'where' expression '{ "Name": "@item()", "Count": "@xpath(outputs('Compose_XML'),concat('count(//values[Assigned_x005F_x0020_To/DisplayName=',item(),']/ID)'))", "Sum": "" }' failed: 'The template language function 'xpath' parameters are invalid: the 'xpath' parameter must be a supported, well formed XPath expression. Please see https://aka.ms/logicexpressions#xpath for usage details.'.