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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Copilot Studio not giv...
Copilot Studio
Unanswered

Copilot Studio not giving response after publishing from knowledge source as sql server

(2) ShareShare
ReportReport
Posted on by

I have built a bot in Microsoft Copilot Studio that uses an Azure SQL Database table (connected via on prem gateway) as its knowledge source. The bot is fully functional in test mode when used within the Copilot Studio interface using the default Teams authentication (Authenticate with Microsoft). However, when I publish the bot externally on a website and set up manual authentication via Azure AD, the bot fails to retrieve responses from the SQL knowledge source and instead replies with:

"I am sorry, can you try rephrasing?"

This happens despite the fact that:
✅ The bot correctly authenticates using Azure AD on the external website.
✅ The same query works in test mode inside Copilot Studio (with Microsoft authentication).
No authentication errors appear in the logs.
✅ The manual authentication settings include the necessary API permissions, including:

  • ExternalItem.Read.All
  • profile
  • openid

What I Have Tried

  • Tested the bot inside Copilot Studio using the default Microsoft authentication (Teams) → Works fine.
  • Checked authentication settings for external website → The bot is correctly authenticated and running.
  • Verified Azure AD API permissions:
    • Added ExternalItem.Read.All alongside profile and openid.
    • Ensured that the permissions are correctly consented to


      still this issue persists 

      If anyone has faced a similar issue or has insight into how authentication affects knowledge source access, please share any troubleshooting steps or solutions. Thank you in advance! 
I have the same question (0)
  • miguelangelcv Profile Picture
    2 on at
    I have exactly the same problem as you. I've tried everything, but it still can't access the Azure SQL database once published (in Copilot Studio works perfectly), despite trying all types of authentication.
     
    Any help would be greatly appreciated

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 250 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 197 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 103 Moderator

Last 30 days Overall leaderboard