botsbot-framework-composer

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


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?

Here an example of the error I occur


Solution

  • RESOLVED

    I found a bug in Bot Composer, precisely, when the Composer makes this API call: 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 first screenshot is the API calls for all the app The second screenshot 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. The first screenshot is the API calls for all the app. The second screenshot 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 1

    Screenshot 2