Skip to main content

Notifications

Copilot Studio - Topic Creation & Management
Answered

Sign in topic doesn't work

(0) ShareShare
ReportReport
Posted on by 39

Hello !

I successfully set up working deployment of Copilot Studio copilot with Manual authentication. I got 'Login' option, was redirected to webpage where I received code, pasted code to bot and it worked. I even added the app to MS Teams(with .zip) and it worked:

 

MarkShark_1-1712607253450.png

 

Suddenly I receive this message:

---------------------------------------------------------------------------------------------------------------------------------------

Sorry, something went wrong. Error code: SystemError. Conversation ID: 642bc33e-a49c-468c-981d-30854e7c4021. Time (UTC): 4/8/2024 8:05:28 PM.

 

MarkShark_2-1712607297847.png

 

I suppose something is wrong with Authenticate node in Sign in Topic.

 

Any suggestions ?

  • Suggested answer
    johnnnn Profile Picture
    johnnnn 6 on at
    Sign in topic doesn't work

    Hey @MarkShark, I've managed to fix the issue. It's a little frustrating given that the Copilot Studio message itself doesn't provide much valuable information besides "Something went wrong".

    But after some poking around, I was able to see more details about the error by downloading a snapshot of the conversation. The error lies in the "Sign In" action:

    "AADSTS700016: Application with identifier '<client id>' was not found in the directory 'Bot Framework'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant."
     
    And after some googling, I resolved the error by changing the the 'Supported account types' from Accounts in this organizational directory only (Single Tenant) to Accounts in any organizational directory (Multitenant) for the app registration of the chatbot. 

    Hope this helps!
  • MarkShark Profile Picture
    MarkShark 39 on at
    Sign in topic doesn't work
    Honestly johnnn, it somehow sometime worked but I don't know why. Which is exactly the same experience that I have offten playing with Copilot Studio last months :-)
  • johnnnn Profile Picture
    johnnnn 6 on at
    Sign in topic doesn't work
    Hi MarkShark, were you able to find a solution to this? I'm having the same problem where I set up auth manually, input the correct Client ID and Client Secret from App Registrations on Azure and everything worked. Now all of a sudden, I'm getting:

    "Hello! To be able to help you, I'll need you to sign in."

    "Sorry, something went wrong. Error code: SystemError."

    If you can help me out, that'd be great, thanks!
    John
  • adilei Profile Picture
    adilei on at
    Re: Sign in topic doesn't work

    And I already agreed this should be fixed 🙂

  • MarkShark Profile Picture
    MarkShark 39 on at
    Re: Sign in topic doesn't work

    OK, but is written "For AAD application's client ID, enter the Application (client) ID from your app registration." but on the image Resource URI is marked instead of AAD application's client ID.

  • adilei Profile Picture
    adilei on at
    Re: Sign in topic doesn't work

    So it's Client ID that needs to be highlighted in the first image and not Resource URI? Got it - let's see if we can fix it. 

     

    Otherwise, I would not use the App Registration that is created by default. That app registration has a different purpose.

  • MarkShark Profile Picture
    MarkShark 39 on at
    Re: Sign in topic doesn't work

    Image in red mark is wrong, it's the same like image in green mark. Text is about Application Client ID, image shows Resources URI.

    MarkShark_0-1712662096954.png

     

  • adilei Profile Picture
    adilei on at
    Re: Sign in topic doesn't work

    Why is it wrong?

  • MarkShark Profile Picture
    MarkShark 39 on at
    Re: Sign in topic doesn't work

    @adilei thank you very much for your help. Your general answer is a way to go but I really miss comprehensive user guide it's kind of tricky combining different parts. I imagine that very common use case will be: 1. Create a bot, 2. Connect it to Teams, 3. Give it Sharepoint resource(s). To set correct permissions you really have to crawl around the documentation.

    In my case, I didn't have to do manual app registration in Entra ID - it's been already created when you create Copilot. This for example, I didn't see written anywhere. When I used this automatically created app registration (named "ChatBot Test(Power Virtual Agent)") and configured it according to the documentation it worked 😁 !

     

    Little reminder - the official documentation has wrong image here: https://learn.microsoft.com/en-us/microsoft-copilot-studio/configure-sso-teams#add-sso-to-your-bots-microsoft-teams-channel

  • adilei Profile Picture
    adilei on at
    Re: Sign in topic doesn't work

    Is there any logic in your conversation start or greeting topics that may fail?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard

Featured topics