Azure / semantic-kernel-bot-in-a-box

Extensible Semantic Kernel Bot Solution Accelerator
MIT License
55 stars 12 forks source link

Error: Value cannot be null. (Parameter 'input') #2

Closed rnpramasamy closed 1 year ago

rnpramasamy commented 1 year ago

I updated SearchPlugin to use my Cognitive Search Index. When I ran and tested this bot, I was getting "Value cannot be null. (Parameter 'input')" error.

at System.Text.RegularExpressions.ThrowHelper.ThrowArgumentNullException(ExceptionArgument arg) at System.Text.RegularExpressions.Regex.Match(String input) at Microsoft.SemanticKernel.Planners.StepwisePlanner.ParseResult(String input) at Microsoft.SemanticKernel.Planners.StepwisePlanner.<>cDisplayClass2_0.<gGetNextStepAsync|0>d.MoveNext() at Microsoft.SemanticKernel.Planners.StepwisePlanner.d2.MoveNext() at Microsoft.SemanticKernel.NativeFunction.<>c.<b__35_4>d.MoveNext() at Microsoft.SemanticKernel.NativeFunction.d18.MoveNext() at Microsoft.SemanticKernel.InstrumentedSKFunction.d21.MoveNext() at Microsoft.SemanticKernel.InstrumentedSKFunction.d10.MoveNext() at Microsoft.SemanticKernel.Planning.Plan.d47.MoveNext() at Microsoft.SemanticKernel.Kernel.d21.MoveNext() at Microsoft.BotBuilderSamples.SKBot.d17.MoveNext() in E:\GitHub\semantic-kernel-bot-in-a-box\src\Bots\SKBot.cs:line 123 at Microsoft.BotBuilderSamples.StateManagementBot.d5.MoveNext() in E:\GitHub\semantic-kernel-bot-in-a-box\src\Bots\StateManagementBot.cs:line 51 at Microsoft.Bot.Builder.ActivityHandler.d0.MoveNext() at Microsoft.BotBuilderSamples.StateManagementBot.d3.MoveNext() in E:\GitHub\semantic-kernel-bot-in-a-box\src\Bots\StateManagementBot.cs:line 28 at Microsoft.Bot.Builder.MiddlewareSet.d3.MoveNext() at Microsoft.Bot.Builder.BotAdapter.d23.MoveNext()

My updated code: image

Please help me to fix this issue.

MarcoABCardoso commented 1 year ago

Hello @rnpramasamy, thank you for your interest in the project.

I see you implemented your own search document model SharePointDoc. Is that using the preview SharePoint Indexer? https://learn.microsoft.com/en-us/azure/search/search-howto-index-sharepoint-online

Also, have you been able to run the bot with the DEBUG flag enabled? Any insights into the planners thought process should be helpful in debugging the issue.

MarcoABCardoso commented 1 year ago

Closing this issue due to inactivity - please feel free to reopen if needed!