Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Publish & Channel Management
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! 
Categories:
  • miguelangelcv Profile Picture
    2 on at
    Copilot Studio not giving response after publishing from knowledge source as sql server
    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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,440 Most Valuable Professional

Leaderboard

Featured topics