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 / When create/change any...
Copilot Studio
Answered

When create/change any topics, error returns "An item with the same key has already been added"

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, has anyone had this scenario before?

 

When trying to create or modify any topic, I always get below error. But after refreshing my page, I can see the changes affect on UI. However, the new topic added can never been triggered with exact and unique utterance added to it.

 

I don't see any "error" warning with any topic. But I observe I have one duplicate system topic, not sure if possible created by that.

 

Error details:

{
"ErrorCode": 10000,
"ErrorMessage": "An item with the same key has already been added.",
"DiagnosticsMessage": null,
"ErrorInfo": null
}

I have the same question (0)
  • thua Profile Picture
    Microsoft Employee on at

    Missed to attach my picture of System Topics.. Didn't know how the other "End of Conversation" was created. But it can't be deleted

    Annotation 2020-08-04 140230.jpg

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @thua ,

     

    Maybe your issue was related to the duplicated topics and you can't fixed easily it. (You can try to export to solutions, change the solution zip and import the zip modified inside a new environment, but I don't think will work normally)

    I think better you open a ticket into the Microsoft support, them can help you debugging and understanding the real issue with your Bot ID.

     

    Or you can recreate your chatbot.

  • Teresa-Motiv Profile Picture
    Microsoft Employee on at

    I just ran into this too. There's an extra End of Conversation topic (I don't know where it came from, and it looks strange), and I'm getting error messages when I try to save other topics and when I try to download a snapshot. Interestingly, when I test after saving a change, the test window shows the old topic content and the tracking canvas shows the new content.

    Adding my list of system topics:

     

    Teresa-Motiv_0-1598298330634.png

     

  • Verified answer
    thua Profile Picture
    Microsoft Employee on at

    I have resolved that issue. Hope my solution would work for you.

     

    The cause of this issue of duplicate system topics is  - There are some user topics referring to the system topic in another PVA instance in the same environment. (This could easily happen if you call rest api to create topic.) You can verify that by checking the topic id with browser dev tools.

     

    The way I used to solve the issue is - 

    1. Go to Power Apps solution from PowerVA

    2. Create a solution for current PowerVA instance

    3. Get to the solution layers of any topic component and then click the circled topic name to direct you to the Dynamics CRM component of this topic. Taking "End of Conversation" topic for example in the below image:

     
     

    Annotation 2020-08-24 133633.jpg

    4. Then view all chatbot components in Dynamics CRM and fix/remove the wrong reference to the components not belong to this chatbot. Then it'll update to you PowerVA instance.

     

     

     

     

     

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!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 279

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
Arild Aarnes Profile Picture

Arild Aarnes 64 Super User 2026 Season 1

Last 30 days Overall leaderboard