Loading
Slack製品の問い合わせ先はSalesforce Helpへ統合・変更されます続きを読む

XML Threat Protection policy rejects XML requests with "Child count has been exceeded. Maximum allowed is: 999"

公開日: Sep 8, 2026
説明

XML requests to a Mule application were failing with the following error logged by the XML Threat Protection policy worker:

  Child count has been exceeded. Maximum allowed is: 999

Affected endpoints returned a 400 Bad Request response and data did not reach the target application. The issue occurred in the PROD environment only — the same XML payload succeeded in PREPROD — indicating a configuration difference in the XML Threat Protection policy between environments.

Note: The thread name in the log may reference a different policy (for example, client-id-enforcement or spike-control). Always check the class name to confirm the source: com.mulesoft.extension.policies.threat.XMLThreatProtectionOperations indicates the XML Threat Protection policy is responsible.

CAUSE
The XML Threat Protection policy in the PROD environment was configured with a Max Child Count of 999. The inbound XML payloads contained more than 999 child elements, so the policy rejected the requests as designed. The same payload working in PREPROD confirmed a configuration difference between PREPROD and PROD.

解決策

1. In Anypoint Platform, open API Manager in the affected environment (for example, PROD) and select the API instance with the XML Threat Protection policy applied. Click Edit on the XML Threat Protection policy and increase Max Child Count from 999 to a value that covers the largest expected XML payload — for example, 5000 or another appropriate higher value. Click Apply. No application restart is required; the change takes effect immediately.

2. If the same payload works in PREPROD, first check the PREPROD XML Threat Protection Max Child Count setting and set the PROD policy to match it. If PREPROD has no XML Threat Protection policy applied, set PROD to -1 to disable the child count check if permitted by security requirements, or set a sufficiently high value with buffer. Click Apply. No application restart is required.

Tip: To determine the correct value, inspect the maximum number of sibling XML elements within a single parent node in your largest expected request payload and add a 20% buffer.

その他のリソース

- XML Threat Protection Policy:
  https://docs.mulesoft.com/gateway/1.14/policies-included-xml-threat-protection
- Applying Policies in API Manager:
  https://docs.mulesoft.com/api-manager/latest/policies-overview

ナレッジ記事番号

005459326

 
読み込み中
Salesforce Help | Article