Custom actions merge schema failed error
See original GitHub issueDescribe the bug
When following this document to create custom action of a bot created by Bot Composer (with template “Core Bot with Language”), in the step of merging schema, update-schema.ps1
(run with admin perm) returns errors.
Error
PS C:\Git\my-bot\myBot\myBot\schemas> .\update-schema.ps1 Running schema merge. Finding component files Error conflicting definitions of CancelDialog.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\CancelDialog\CancelDialog.dialog Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\CancelDialog\CancelDialog.dialog Error conflicting definitions of HelpDialog.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\HelpDialog\HelpDialog.dialog Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\HelpDialog\HelpDialog.dialog Error conflicting definitions of WelcomeDialog.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.Welcome\WelcomeDialog\WelcomeDialog.dialog Microsoft.Bot.Components.Welcome: C:\Users\vivihung.nuget\packages\microsoft.bot.components.welcome\1.1.2\exported\WelcomeDialog\WelcomeDialog.dialog Error conflicting definitions of CancelDialog.en-us.lu.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\CancelDialog\recognizers\CancelDialog.en-us.lu.dialog Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\CancelDialog\recognizers\CancelDialog.en-us.lu.dialog Error conflicting definitions of CancelDialog.lu.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\CancelDialog\recognizers\CancelDialog.lu.dialog Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\CancelDialog\recognizers\CancelDialog.lu.dialog Error conflicting definitions of CancelDialog.lu.qna.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\CancelDialog\recognizers\CancelDialog.lu.qna.dialog Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\CancelDialog\recognizers\CancelDialog.lu.qna.dialog Error conflicting definitions of HelpDialog.en-us.lu.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\HelpDialog\recognizers\HelpDialog.en-us.lu.dialog Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\HelpDialog\recognizers\HelpDialog.en-us.lu.dialog Error conflicting definitions of HelpDialog.lu.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\HelpDialog\recognizers\HelpDialog.lu.dialog Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\HelpDialog\recognizers\HelpDialog.lu.dialog Error conflicting definitions of HelpDialog.lu.qna.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\HelpDialog\recognizers\HelpDialog.lu.qna.dialog Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\HelpDialog\recognizers\HelpDialog.lu.qna.dialog Error conflicting definitions of WelcomeDialog.en-us.lu.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.Welcome\WelcomeDialog\recognizers\WelcomeDialog.en-us.lu.dialog Microsoft.Bot.Components.Welcome: C:\Users\vivihung.nuget\packages\microsoft.bot.components.welcome\1.1.2\exported\WelcomeDialog\recognizers\WelcomeDialog.en-us.lu.dialog Error conflicting definitions of WelcomeDialog.lu.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.Welcome\WelcomeDialog\recognizers\WelcomeDialog.lu.dialog Microsoft.Bot.Components.Welcome: C:\Users\vivihung.nuget\packages\microsoft.bot.components.welcome\1.1.2\exported\WelcomeDialog\recognizers\WelcomeDialog.lu.dialog Error conflicting definitions of WelcomeDialog.lu.qna.dialog : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.Welcome\WelcomeDialog\recognizers\WelcomeDialog.lu.qna.dialog Microsoft.Bot.Components.Welcome: C:\Users\vivihung.nuget\packages\microsoft.bot.components.welcome\1.1.2\exported\WelcomeDialog\recognizers\WelcomeDialog.lu.qna.dialog Error conflicting definitions of CancelDialog.en-us.lg : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\CancelDialog\language-generation\en-us\CancelDialog.en-us.lg Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\CancelDialog\language-generation\en-us\CancelDialog.en-us.lg Error conflicting definitions of HelpDialog.en-us.lg : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\HelpDialog\language-generation\en-us\HelpDialog.en-us.lg Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\HelpDialog\language-generation\en-us\HelpDialog.en-us.lg Error conflicting definitions of WelcomeDialog.en-us.lg : C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.Welcome\WelcomeDialog\language-generation\en-us\WelcomeDialog.en-us.lg Microsoft.Bot.Components.Welcome: C:\Users\vivihung.nuget\packages\microsoft.bot.components.welcome\1.1.2\exported\WelcomeDialog\language-generation\en-us\WelcomeDialog.en-us.lg Error multiple definitions of CancelDialog.en-us.lu in C:\Git\my-bot\myBot\myBot\generated\interruption\CancelDialog.en-us.lu C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\CancelDialog\language-understanding\en-us\CancelDialog.en-us.lu Error conflicting definitions of CancelDialog.en-us.lu : C:\Git\my-bot\myBot\myBot\generated\interruption\CancelDialog.en-us.lu Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\CancelDialog\language-understanding\en-us\CancelDialog.en-us.lu Error multiple definitions of HelpDialog.en-us.lu in C:\Git\my-bot\myBot\myBot\generated\interruption\HelpDialog.en-us.lu C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\HelpDialog\language-understanding\en-us\HelpDialog.en-us.lu Error conflicting definitions of HelpDialog.en-us.lu : C:\Git\my-bot\myBot\myBot\generated\interruption\HelpDialog.en-us.lu Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\HelpDialog\language-understanding\en-us\HelpDialog.en-us.lu Error multiple definitions of myBot.en-us.lu in C:\Git\my-bot\myBot\myBot\generated\interruption\myBot.en-us.lu C:\Git\my-bot\myBot\myBot\language-understanding\en-us\myBot.en-us.lu Error multiple definitions of WelcomeDialog.en-us.lu in C:\Git\my-bot\myBot\myBot\generated\interruption\WelcomeDialog.en-us.lu C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.Welcome\WelcomeDialog\language-understanding\en-us\WelcomeDialog.en-us.lu Error conflicting definitions of WelcomeDialog.en-us.lu : C:\Git\my-bot\myBot\myBot\generated\interruption\WelcomeDialog.en-us.lu Microsoft.Bot.Components.Welcome: C:\Users\vivihung.nuget\packages\microsoft.bot.components.welcome\1.1.2\exported\WelcomeDialog\language-understanding\en-us\WelcomeDialog.en-us.lu Error multiple definitions of CancelDialog.en-us.qna in C:\Git\my-bot\myBot\myBot\generated\interruption\CancelDialog.en-us.qna C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\CancelDialog\knowledge-base\en-us\CancelDialog.en-us.qna Error conflicting definitions of CancelDialog.en-us.qna : C:\Git\my-bot\myBot\myBot\generated\interruption\CancelDialog.en-us.qna Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\CancelDialog\knowledge-base\en-us\CancelDialog.en-us.qna Error multiple definitions of HelpDialog.en-us.qna in C:\Git\my-bot\myBot\myBot\generated\interruption\HelpDialog.en-us.qna C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.HelpAndCancel\HelpDialog\knowledge-base\en-us\HelpDialog.en-us.qna Error conflicting definitions of HelpDialog.en-us.qna : C:\Git\my-bot\myBot\myBot\generated\interruption\HelpDialog.en-us.qna Microsoft.Bot.Components.HelpAndCancel: C:\Users\vivihung.nuget\packages\microsoft.bot.components.helpandcancel\1.1.2\exported\HelpDialog\knowledge-base\en-us\HelpDialog.en-us.qna Error multiple definitions of WelcomeDialog.en-us.qna in C:\Git\my-bot\myBot\myBot\generated\interruption\WelcomeDialog.en-us.qna C:\Git\my-bot\myBot\myBot\dialogs\imported\Microsoft.Bot.Components.Welcome\WelcomeDialog\knowledge-base\en-us\WelcomeDialog.en-us.qna Error conflicting definitions of WelcomeDialog.en-us.qna : C:\Git\my-bot\myBot\myBot\generated\interruption\WelcomeDialog.en-us.qna Microsoft.Bot.Components.Welcome: C:\Users\vivihung.nuget\packages\microsoft.bot.components.welcome\1.1.2\exported\WelcomeDialog\knowledge-base\en-us\WelcomeDialog.en-us.qna Parsing component .schema files Merging component schemas Error must have a merged .schema to merge .uischema files *** Could not merge components *** Schema merge failed. Restoring previous versions.
Version
Bot Composer: 2.0.0 SDK runtime packages: 4.12.0 PowerShell 7
OS
- macOS
- Windows
- Ubuntu
To Reproduce
Steps to reproduce the behavior:
- In Bot Composer Desktop app, create a bot with “Core Bot with Language” template
- Open the bot folder in Visual Studio (2019)
- Follow this doc to create a custom action
- See error
Expected behavior
Expect there’s no errors (since I follow documentation for every step). Even there are unexpected errors, there should be documentation guide a bot dev how to resolve it. From the error messages I received, I don’t understand what’s wrong.
Additional context
Found a similar issue posted in stackoverflow, but the answer doesn’t fix it.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:6 (1 by maintainers)
Top GitHub Comments
@srinaath I can reproduce this myself without even having a
generated
folder. I just created a brand new bot usingCore Bot with Language
then run the update-schema.ps1 script. This happens with or without creating a new .schema file. This does not reproduce with theEmpty Bot
template.The following changes I found to be useful in my case: Line 11, change “!**/generated” to “!../generated” and add “!../dialogs/imported”