Luis build failed: An application with the same name("name") already exist

Simone Pattarello 5 Reputation points
2023-02-10T11:24:11.94+00:00

I have a problem with the Bot Composer version 2.1.2.

As I wrote in the title, when I try to build my bot, I have this error: "Luis build failed: An application with the same name("name") already exist" (where "name" is invented). My bot has multiple languages, so when I build the bot from composer, in the LUIS portal I have an app that is created for all the languages (Example: if the bot have italian, english and spanish languages , in the LUIS portal I'll find 3 app for each languages and dialogs). I can fix this error deleting the various app that i find in the LUIS portal and then re-build the bot from the composer (it's not an optimal solution), but, if in a second moment I make changes on the composer and build the bot, the error occur again. This error is random, once it gives me error for one application, if I do a second build the error it gives me is for another application (once I have this: "Luis build failed: An application with the same name("name") already exist", next time I have this: "Luis build failed: An application with the same name("other_name") already exist"). Has anyone already encountered this problem?

Below you can find a screeshot of the error

ErrorBot

Community Center Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Simone Pattarello 5 Reputation points
    2023-02-28T16:15:12.03+00:00

    @YutongTie-MSFT
    I found a bug in Bot Composer, precisely, when the Composer makes this API call:Screenshot (30)

    the problem here is that in this API call the max number of app that the API return is 100 but if you have more than that, the Composer try to create the ones that missing and then return the error "An application with the same name("name") already exist" because in the LUIS portal that app exists.
    The image below represent a search doing with notepad++ of how many app the response JSON of the API call returns. As we can see, the count is 100.

    Screenshot (31)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.