Default Fault Rule not working

I have used default fault handler which is not getting executed even after setting<AlwaysEnforce> to "true". Please let me know what can be the possible reason for this ..

Code sample:

<DefaultFaultRule name="fault-rule">
  <Step><Name>RaiseFaultDefault</Name></Step>
  <AlwaysEnforce>true</AlwaysEnforce>
</DefaultFaultRule>


<FaultRules>
  <FaultRule name="Spike">
    <Condition>(fault.name = "SpikeArrestViolation")</Condition>
    <Step>
      <Name>SpikeViolated</Name>
    </Step>
    </FaultRule>
</FaultRules>
1 2 841
2 REPLIES 2

DefaultFaultRule will not execute if you are raising a fault from within FaultRules. So if SpikeViolated is raising a fault, DefaultFaultRule will not execute.

The preferred approach is to set variables that will be used by RaiseDefaultFault and let that be the only policy that raises faults.

Not applicable

@GargiTalukdar,

Please check the raise fault policy which is raising the fault, the parameter/attribute continueOnerror should be set to "false".

If it is "true", the fault will not be captured and hence you policy for fault handling/default fault will not get executed.