web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / OneNote (Business) con...
Copilot Studio
Unanswered

OneNote (Business) connector bug - Get page content

(0) ShareShare
ReportReport
Posted on by
The Get page content tool is supposed to retrieve the HTML page content of a notebook page, but the agent is trying to deserialize it as a json object. 

I get the error:
 
connectorPowerFxErrorEvaluating PowerFx expression resulted in error while invoking the connector : PVA.GetPageContent failed: JsonReaderException '<' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
 
I have the same question (0)
  • Nivedipa-MSFT Profile Picture
    Microsoft Employee on at
    Hello  ,

    The issue here is a content-type mismatch—the problem isn't with the tool itself. PVA.GetPageContent returns HTML (the first byte is <, indicating <html> or <div>), while the tool binding expects JSON. As a result, the deserializer fails immediately.

    Possible solutions:

    1. Update the tool's output schema to string (text/html) and handle the result as Text in Power Fx.
    2. Use a Power Automate flow to call GetPageContent, then return the body with Respond to a PowerApp or flow as a Text output (e.g., PageHtml), and call this flow from the agent. This avoids the JSON binding issue.
    3. For structured data, parse the HTML within the flow and return valid JSON to the agent—avoid parsing HTML in Power Fx.
      Set(Topic.PageHtml, Text(GetPageContent.Run(pageId)))

    Check the agent's run history to confirm the raw response starts with <, verifying it's HTML before updating the binding.

    If you found the information above helpful, I would appreciate it if you could share your feedback.

    Your feedback is important to us. Please rate us:

    🤩 Excellent 🙂 Good 😐 Average 🙁 Needs Improvement 😠 Poor

Under review

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 846

#2
Vish WR Profile Picture

Vish WR 302

#3
Haque Profile Picture

Haque 258

Last 30 days Overall leaderboard