Hi,
I have had a Eureka moment on this one! Although, I am unable to test the solution at the moment, I think I have a plausible explanation for what has gone wrong with the code.
The key observations to solving the problem are the following:
1. When ISFACT is used to execute the SA action...