0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Bot Framework SDK】'turn' does not match memory scopes というエラーになる

Posted at

対象バージョン:
Bot Framework SDK v4.13.0以降 (v4.13.3でも再現)

現象:
特定の機能を使うとエラーが起きる。
エラーメッセージ↓

System.ArgumentOutOfRangeException: 'turn' does not match memory scopes:[] (Parameter 'key')
   at Microsoft.Bot.Builder.Dialogs.Memory.DialogStateManager.set_Item(String key, Object value)
   at Microsoft.Bot.Builder.Dialogs.ObjectPath.SetObjectSegment(Object obj, Object segment, Object value, Boolean json)
   at Microsoft.Bot.Builder.Dialogs.ObjectPath.SetPathValue(Object obj, String path, Object value, Boolean json)
   at Microsoft.Bot.Builder.Dialogs.Memory.DialogStateManager.SetValue(String path, Object value)
:

エラーが起きた時に使った機能は以下2パターン

  • AdaptiveDialogを使う
  • QnAMakerDialogでマルチターンもしくはアクティブラーニングを使う

DialogStateまわりの不具合っぽい。

解決策:
SDKのバージョンを v4.12.2 に下げると解消する。

GitHubにissueが作られているので、いずれ修正されると思われる。
https://github.com/microsoft/BotBuilder-Samples/issues/3194

参考:
c# - How to close the Qnamker dialog while using multiturn qna kb and LUIS with the help of orchestrator - Stack Overflow

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?