Error: Variable is being set to incorrect type. Assigned: Closed List Option Set, Expected: Closed List Option Set
I have hit a roadblock when attempting to assign a global variable with a local variable value inside one of my topics. Searching the web has produced users with similar issues but no working resolution path so far.
Scenario:
The topic uses the States entity to extract what state the user is referring to in a dialog prompt. A conditional statement then filters based on the state selected.
Branch 1
If State = ABC display choices from 'CustomEntityClosedListABC' save user choice as 'LocalVariableABC' Confirm selection with user, save 'GlobalVariable' as 'LocalVariableABC' This path is working as intended with no errors
Branch 2
If State = XYZ display choices from 'CustomEntityClosedListXYZ' save user choice as 'LocalVariableXYZ' Confirm selection with user, save 'GlobalVariable' as 'LocalVariableXYZ' This path produced the error (screenshot below)
I have tried a few options such as recreated the entities, creating new variables, setting variable types prior to the conditional path, cutting out the local variable and saving the choice direct to the global, etc. If I try to use the GlobalVariable anywhere else besides the first path of a conditional I receive this error.
Solution Needed: A way to filter by state to direct bot to use state specific customentity list and then save that choice both in a topic variable and again in a global variable for a future topic