question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom actions merge schema failed error

See original GitHub issue

Describe 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:

  1. In Bot Composer Desktop app, create a bot with “Core Bot with Language” template
  2. Open the bot folder in Visual Studio (2019)
  3. Follow this doc to create a custom action
  4. 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:open
  • Created 2 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
dmvtechcommented, Aug 5, 2021

@srinaath I can reproduce this myself without even having a generated folder. I just created a brand new bot using Core 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 the Empty Bot template.

2reactions
collinsbenjwcommented, Aug 25, 2021

The following changes I found to be useful in my case: Line 11, change “!**/generated” to “!../generated” and add “!../dialogs/imported”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Merge schemas of custom dialog - Error conflicting definitions
I fixed it by changing the script. I noticed the script was trying to ignore the folder imported and generated but the error...
Read more >
Failure to create a custom action - Bot Service - Microsoft Q&A
I got as far as being able to add the custom action within Bot Framework Composer and had no errors. However, upon clicking...
Read more >
Incompatible schema in some files - Databricks
Problem The Spark job fails with an exception like the following while reading Parquet files: Error in SQL statement: SparkException: Job ...
Read more >
CustomAction element | WiX Toolset
SuppressModularization (YesNoTypeUnion) : Use to suppress modularization of this custom action name in merge modules. This should only be necessary for table- ...
Read more >
Merge conflicts - GitLab Docs
txt are present. Methods of resolving conflicts. GitLab shows conflicts available for resolution in the user interface, and you can also resolve conflicts ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found