1
votes

I need to execute some logic in a Composer bot that is not possible to do in Adaptive Expressions, so I went ahead and followed this instructions to create a custom function that I'm suppossed to be able to call from an Adaptive Expression in composer.

https://docs.microsoft.com/en-us/azure/bot-service/language-generation/bot-builder-howto-use-lg-custom-functions?view=azure-bot-service-4.0&tabs=cs#add-a-custom-function-to-adaptive-expressions

Then I added the function name into the settings like it's indicated here:

https://docs.microsoft.com/en-us/composer/how-to-validate#custom-functions

Running from composer or from the cli I get the same error: Application startup exception System.Data.SyntaxErrorException: {NAME_OF_FUNCTION_HERE} does not have an evaluator, it's not a built-in function or a custom function.

1

1 Answers

0
votes

Classic, found the solution on the first 5 minutes of Monday.

Solution: you must do

Expression.Functions.Add(...

before loading the rootDialog.

Since loading the rootDialog was extracted into a different method I didn't realize I was actually adding the custom function after that.