DefaultFaultRules with a condition - Is the Apigee documentation mistaken?

According to Apigee documentation, DefaultFaultRules can have a condition. Not the steps inside, but the DefaultFaultRule itself.

However this code will always be executed, regardless of the condition never being true:

  <DefaultFaultRule name="error-common">
    <Step>
      <Name>Common-Errors</Name>
    </Step>
    <Step>
      <Name>ExecutionTime</Name>
    </Step>
    <AlwaysEnforce>true</AlwaysEnforce>
    <Condition>1 = 2</Condition>
  </DefaultFaultRule>

According to the previous documentation, the condition should be evaluated, because it doesn’t say anywhere that AlwaysEnforce is incompatible with a condition, it just says that DefaultFaultRule can have a condition just like normal FaultRules. So what is the problem here? Is AlwaysEnforce making the Condition irrelevant? Or is it simply impossible to use a Condition with a DefaultFaultRules?

Hi @JAAO,

We have seen your question and are leaving this open to encourage our community members to share their own knowledge and experiences with DefaultFaultRule configurations.

Hi @JAAO , you are correct! Direct children Conditions do not apply to DefaultFaultRules (with or without AlwaysEnforce), and they never have. We’ll update this in our docs.