Is your blueprint/variable defined in code? Looking at the screenshot it seems that the variable you’re trying to set is set to constant. As for setting variables in an animation notify, does this still occur for you in 4.6?
Variable is declared in blueprints, and it’s set to editable (checked both)
Can’t test in 4.6 because we are releasing the game with 4.5.1 (can’t update to 4.6 right now) - if you have 4.6 downloaded/installed this is quick to reproduce.
I was able to reproduce the compile error on my machine and found that this bug is fixed on our internal branch. This fix will be included in a future release of the engine. As a workaround you could try casting from the animation notify to a function inside the character blueprint and use the function to set the variable as needed.