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

Mule | Null required operation parameter now throws MULE:INVALID_INPUT_PARAM (was MULE:UNKNOWN)

公開日: Sep 1, 2026
説明

Symptoms

After upgrading (including an automatic patch update) you may see:

  • A flow that previously succeeded — or failed with MULE:UNKNOWN — now fails with:
    Required parameter 'X' was assigned with value '#[...]' which resolved to null.
    Required parameters need to be assigned with non null values
    Error type: MULE:INVALID_INPUT_PARAM
  • Error handlers that matched MULE:UNKNOWN (or a broader downstream error such as VALIDATION:NULL thrown by a later processor) no longer catch the failure, because the error type and the point of failure have changed.
  • MUnit tests that asserted the old behavior — a specific downstream error branch, a mocked operation being reached, or a verified processor call count — now fail after the upgrade, even though the application code is unchanged.

Cause

A required parameter of a Mule SDK–based operation received a null value. The SDK validates required parameters before executing the operation, and that validation error is now mapped to MULE:INVALID_INPUT_PARAM.

Common ways a required parameter becomes null:

  • A DataWeave expression that returns null (e.g. reading a field that does not exist on the payload, or an empty/wrong-shaped list so payload[0].attributes.name is null).
  • A variable or property that was never set.
  • Test mock data whose shape does not match what the flow expects.

Affected Versions

The behavior change is present in the following patch releases and all later patches on each line:

Runtime lineFirst affected patchUnaffected (earlier)
4.6.x4.6.31≤ 4.6.30
4.9.x4.9.18≤ 4.9.17
4.11.x4.11.5≤ 4.11.4
4.13.x (mainline)4.13.0—

If you are on a patch older than the "first affected" value on your line, you will still see the old MULE:UNKNOWN behavior.

解決策

The correct fix is in the application, not the runtime — ensure required parameters are never null:

  1. Fix the data / expression so the required parameter always resolves to a real value. Validate or default the value before the operation, e.g.:
    #[vars.filename default '']        // only if an empty value is acceptable
    or add an explicit guard/validation earlier in the flow and route the null case deliberately.
  2. Update error handling to expect MULE:INVALID_INPUT_PARAM where a null required parameter is a legitimate runtime condition you want to catch.
  3. Update MUnit tests / mock data so mocked payloads have the correct shape (the operation receives a non-null required parameter), then re-assert the intended behavior. For example, a mocked ftp:list should return an array shaped like a real result:
    [ { attributes: { name: "MY_FILE.csv" } } ]
    so payload[0].attributes.name is non-null.
ナレッジ記事番号

005393592

 
読み込み中
Salesforce Help | Article