Error in catch exception


i have a problem in catching an exception. I have a Main workflow that invoke other xaml file. In the Main workflow i put the Try Catch block to manage the “selectornotfound” exception.

The situation is similar to this

TryCatch doc

Trying to simulate the error i saw that the block didn’t function.
I tried to put the trycatch block not in the main but in the xaml that i invoked and this way it works

Can someone help me?


Attached you can find an example that show that it works. Please let me know if is clear for you. (3.7 KB)