
Announcements
Can someone help me on this ?
Unable to process template language expressions in action 'ComposeCountRowsMinusOne' inputs at line '0' and column '0': 'The template language function 'xpath' expects its first parameter to be an XML object. The provided value is of type 'String'. Please see https://aka.ms/logicexpressions#xpath for usage details.'.
my input is
int(sub(xpath(outputs('ComposeHTML'), 'count(//tr)'), 1))
Hi @Baselalshami,
The error suggest that the content you are using for the xpath function is a string and not valid xml. Have you tried converting the string to xml first with an xml function?
Try testing something like the below and see if that makes a difference?
int(sub(xpath(xml(outputs('ComposeHTML')), 'count(//tr)'), 1))