Skip to main content

Notifications

Copilot Studio - Topic Creation & Management
Answered

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

(0) ShareShare
ReportReport
Posted on by

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
}

  • Verified answer
    thua Profile Picture
    thua on at
    Re: When create/change any topics, error returns "An item with the same key has already been added"

    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.

     

     

     

     

     

  • Teresa-Motiv Profile Picture
    Teresa-Motiv on at
    Re: When create/change any topics, error returns "An item with the same key has already been added"

    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

     

  • renatoromao Profile Picture
    renatoromao 6,819 on at
    Re: When create/change any topics, error returns "An item with the same key has already been added"

    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.

  • thua Profile Picture
    thua on at
    Re: When create/change any topics, error returns "An item with the same key has already been added"

    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

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,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics