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 / Azure SQL knowledge co...
Copilot Studio
Suggested Answer

Azure SQL knowledge connector stopped working suddenly

(0) ShareShare
ReportReport
Posted on by 23
Hi, I have been running a copilot studio agent for a couple weeks with a Knowledge connector to Azure SQL databases. Just yesterday, this connector stopped working all of a sudden with no changes being made to the database, sql server or any other changes in permissions:
 
The connector seems to work but I can't access anything from the database.
 
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    1,196 on at
    Since nothing changed on your side, the most likely causes are:
    • Expired/invalid connection token
    • Backend model/query behavior change
    • Cached schema mismatch
    Do these in order:
    1. Reconnect the SQL connection
    • Fixes ~50% of cases
    2. Test Knowledge Source
    Ask a very simple query:
    Show top 5 rows
    • If this fails → connector issue
    • If works → AI query issue
    3. Re-add Knowledge Source
    • Remove SQL connector
    • Add again
    • Publish agent
    4. Check Error Message (if any)
    Look for:
    • Timeout
    • Authentication error
    • Bad request
  • Vish WR Profile Picture
    636 on at
     
    Can you try 
    Create a NEW Azure SQL connection (don’t reuse)
    Re-add the knowledge source

     

     

       
  • Suggested answer
    Haque Profile Picture
    1,758 on at
    Hi @NA-20020143-0,
     
    Let's analyse the error message it shows:
     
    "Unable to configure knowledge source". For this error, before going any further we need to make sure connection is successful or not:
     
    Knowledge Source
    Type: Azure SQL Database
    Connection status: Successful – preview data is visible inside Copilot Studio.

     
     
    Permissions: Let's make sure user profile used to connect to Azure SQL server have admin permission on Azure and it's also the same account that created the database
     
    The second part of the error says: "We encountered an issue while setting up this knowledge source."
    Do we really know who this "We" are? is this microsoft or the team who is working with the Co-Pilot and Azure SQL? It's microsfot based on the error message. Since microsoft has encountered an issue - it's a big issue and I beleve they have already seen this issue on their dashbaord, no? If that is the case, what they say next?
     
    "Please try again" As they said to try again, it means a lot. You need to log-out from everything, re-login, refresh everything and try build the connection again. But it is not said "Please try after 10 minutes or 10 days!That's a message that ignites users to be impatient! So, in my case what I have expereinced, it takes 10-15 minutes or even 2 hours, and if bad luck triggers you have to be persistant with support ticket until the issue is resolved! So, do your best to troubleshoot any way, add knowledge source again and see if any technical error message is shown. All I am sayin about, you have to build a connection first, you don't need to care about knowledge schema, size of knowledge source, any query optimization!
     
    An then the error says: "If the problme persisits, contact your administrator." This is the vital part of the message- it abandons us in an unknonwn territory! Let's first contact the asministrator - and luckily if you are the administrator - go grab helth check - any error, any message, any RIP is there. If not - don't worry to open up a support ticket asap. 
     
    Bare minimum basics I can suggest here are:
     
    1. Please trace back what lastly got changed and modififed.
    2. Sometimes platform updates can cause temporary issues; try removing and re-adding the knowledge source
    3. Double-check that the user or service principal has the necessary read permissions on the database and tables.
    4. Ensure that the Azure SQL server firewall rules allow connections from the Power Platform service IP ranges. Confirm there are no recent network restrictions or VPN changes blocking access.
    5. Check if the credentials or authentication method (e.g., service principal) used by the connector have expired or changed.
     
     
    Last note: Please remember once we are in MS platform, these are not we who do changes, We + MS do the changes!
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
     
     
  • NA-20020143-0 Profile Picture
    23 on at
    I've created a new connection with
    1. Microsoft entra ID integrated
    2. SQL server authentication
     
    Firewall settings are unchanged
    Relevant user emails have been given db_datareader/writer/ddladmin on the database
     
    And still I cannot preview the data:
  • Suggested answer
    Haque Profile Picture
    1,758 on at
     
    Not that interesting! Can you please help me here?
     
    Check the "Ready" Indicator: Navigate to the Knowledge page in Copilot Studio. If the source does not show a green "Ready" status, check for "Bad Gateway" or "Forbidden" errors.
     
    Could you please post me a screenshot?
     
     
    If the the connection is built successfully, can we do a limitation check?

    Knowledge vs. Actions (The "RAG" Limitation)
    A common reason for "no data found" is using the Knowledge tab for structured querying:

    • Semantic Search vs. SQL Queries: The Knowledge feature in Copilot Studio is primarily designed for unstructured data (like PDFs or websites) and uses semantic search. It may struggle to "read" a database table to find specific rows unless the data is highly textual.
    • Solution: Use SQL Actions (Plugins) instead. Create a Power Automate flow or use the SQL Server connector as a "Tool" to execute specific queries. This allows Copilot to pull exact records (e.g., "Find the last 5 orders") rather than trying to "search" the database like a document. 
     
     Here is a close problem like yours that suggested use SLQ Server connector as a Tool to execute specific query.
  • Suggested answer
    Valantis Profile Picture
    3,045 on at
     
    Since new connections with both auth methods are failing and permissions and firewall are confirmed correct, basic troubleshooting is exhausted. This points to a platform-level issue on Microsoft's side rather than a configuration problem.

    Two things to do now:
    1. Check the Microsoft 365 Service Health Dashboard (admin.microsoft.com > Health > Service health) for any active or recently resolved incidents affecting Copilot Studio or Power Platform connectors. Also check the Power Platform admin center > Service health.

    2. Open a Microsoft support ticket and include the Session ID from the error: d0a45e70-37b4-11f1-9c6e-6df5f27b8e0e. This ID is how Microsoft's backend engineers trace exactly what failed on their side. Without it, support tickets for this type of error are very difficult to investigate. Include the approximate time the issue started and confirm that it worked previously with no changes made.

    Haque's point about using SQL Server as a Tool via Power Automate instead of a Knowledge source is valid for long-term architecture, but that does not explain why a working setup suddenly broke. The support ticket with the session ID is the right path forward here.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

     

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 572

#2
Haque Profile Picture

Haque 154

#3
chiaraalina Profile Picture

chiaraalina 144 Super User 2026 Season 1

Last 30 days Overall leaderboard