Posted on by
Cgangweg01727Super User 2025 Season 2
Hello Chriddle,
Finding it impossible to add post to the existing thread on this topic. The community platform just fails.
Anyway, hoping you remember ...
It turns out that the OneNote page HTML might have too much variability in it to convert to XML for xpath to be a consistent solution for finding the page title and the To Do items on the page.
Wondering your thoughts?
First case using a OneNote sample page from a user ...
It seems there is something in the OneNote page HTML that is preventing the conversion to xml for the compose action with xpath to process.
See the run error message below. I searched both the action input HTML and the OneNote page itself and cannot find "=' characters that seems to be interfering.
InvalidTemplate
Unable to process template language expressions in action 'Compose-getTitlefromPage' inputs at line '0' and column '0': 'The template language function 'xml' parameter is not valid. The provided value cannot be converted to XML: ''=' is an unexpected token. The expected token is ';'. Line 140, position 318.'. Please see https://aka.ms/logicexpressions#xml for usage details.'.
Second case ...
It seems that compose action with xpath passes over the To Do items which have any additional formatting or bullets (other html tags) associated with them on the OneNote page.
Appreciate any assistance,
Chris
ps-I'll attach the inputs in document as the platform is preventing from adding pictures and code.
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.