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 / Copilot Studio flow wo...
Copilot Studio
Suggested Answer

Copilot Studio flow works in Test but fails in chat with OCR connection prompt

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a Copilot Studio topic that uploads:


  • 1 required PDF

  • 1 optional PDF

  •  

The topic calls a Power Automate flow using When an agent calls the flow.

The flow works in Copilot Studio Test, but fails when run through the actual agent chat.

In the agent chat, the user gets Connect to continue prompts for:


  • SharePoint

  • Word Online

  • Microsoft Copilot Studio

  • AI Builder

The flow then fails at the AI Builder OCR step:

OCR_Extract_Text

Error:

The base 64 binary content is missing for input single

I have already checked/tried:


  • same PDF works in Test

  • topic file upload works

  • topic passes file as contentBytes + name

  • tried OCR input from both trigger content and SharePoint Get file content

  • tried adding delay before OCR

  • connection references exist

  •  

What makes this confusing is:


  • it works in Test

  • it fails only in the published agent chat

  • the user first gets a Connect to continue / Allow access prompt for some connectors

  • then, when the flow reaches the AI Builder OCR step, a second Allow access prompt appears specifically for AI Builder

  • that second prompt appears at the same time the OCR action is already trying to run, so there is no real chance to approve it before the action fail.

  •  

Because of that, the current suspicion is that this is not a PDF problem or a pure flow logic problem, but a runtime connection/authentication issue when the agent calls the flow. More specifically, the AI Builder connection does not seem to be fully established before the OCR step executes, which causes OCR to receive missing/null content and fail.

Main questions:


  1. Is this a known issue or limitation with Copilot Studio agent chat + When an agent calls the flow?

  2. How should the connections be configured so users do not get repeated Connect to continue / Allow access prompts during the same run?

  3. Is there a way to ensure the AI Builder connection is authorized before the OCR action starts?

  4. Should this be set up with owner/service connections instead of user runtime consent?


  5.  

If anyone has seen this before, I would appreciate guidance.

 


 
I have the same question (0)
  • Suggested answer
    RaghavMishra Profile Picture
    185 on at

    Hi! You've done excellent diagnostics. The issue you're describing is a well-known connection configuration pattern — here's the explanation and fix.

    Why it works in Test but fails in the published agent chat

    In the Copilot Studio Test pane, flows run under your maker credentials, so all connector connections are pre-authenticated. In the published agent chat, flows run in the context of the end user — and unless connections are configured as "owner" connections, end users are prompted to authenticate each connector at runtime. This is the root cause of the "Connect to continue" prompt appearing mid-flow.

    The fix: Configure connections as service/owner connections

    Per Use agent flows with your agent – Microsoft Learn, Power Automate flows called from Copilot Studio agents support connection references that can be set to use the flow owner's connection rather than requiring end-user authentication.

    Steps

    1. In Power Automate, open the flow in Edit mode.
    2. Check the connections used (SharePoint, Word Online, AI Builder, Copilot Studio).
    3. Ensure each connection is authenticated with a service/maker account that has the necessary permissions.
    4. In the flow's Settings, verify there is no "run-only" user connection that would prompt the end user at runtime.
    5. For AI Builder specifically: make sure the AI Builder connection is fully authenticated before publishing.

    Additional check

    Consider migrating the flow to an Agent Flow using the "When an agent calls the flow" trigger — these are optimised to avoid user-facing connection prompts. Per Microsoft Learn, agent flows provide a seamless maker experience and avoid runtime auth prompts.

    References

    Found this helpful? Please mark ✅ "Does this answer your question?" so others searching for the same issue can find it quickly. A 👍 on "Was this reply helpful?" or a ♥ Like is also much appreciated!

    Raghav MishraLinkedIn | PowerAI Labs

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 249

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 180 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 153

Last 30 days Overall leaderboard