In my marketplace asset ZText, I have a switch on string blueprint node which is quite large. It covers each letter in the alphabet, case-sensitive, as well as some special characters.
It has worked since 4.13 and up to 4.16. But on 4.17.0, I cannot compile the blueprint as I get the message “Switch on string contains duplicate cases”. I cannot see any duplicate cases, however.
I’ve created a gist with the text-version of the affected blueprint node in both 4.16 and 4.17 if it is of any help. Apart from the error message being different and the line “bHasCompilerMessage=True” being added, there doesn’t seem to be any other significant differences however.
This is still broken for me on 4.17.1
Create New Project , Third Person, Create new BP ( Actor ) , in construction script add Switch on string Node , get the error
to fix - manually remove all lowercase letters from SwitchOnString. this means you will be restricted to caps, but this will let the blueprint compile.
apparently, Case Sensitive checkmark does not completely work as required - I assume because Unreal capitalizes all values, so string “A” and string “a” are both shown as “A” on the node, and thus considered duplicate.