Loading

Anypoint Partner Manager — businessDocumentKey Not Appearing in Activity Tab for EDI Transactions (944/945)

Date de publication: Oct 16, 2026
Description

The businessDocumentKey per https://docs.mulesoft.com/partner-manager/latest/create-reference-map configured in a Reference Map does not populate in the Activity tab for EDI transactions 944 and 945, defaulting to the document ID instead. This is caused by using an intermediate DataWeave variable rather than referencing the payload path directly.

In Anypoint Partner Manager the Reference Map businessDocumentKey ("T0") was not being populated in the Activity tab for inbound EDI transactions 944 (Warehouse Stock Transfer Receipt Advice) and 945 (Warehouse Shipping Order). The key defaulted to the document ID instead of the expected value. No errors were logged during document processing. The same reference mapping pattern worked correctly for other transaction types such as 850 (Purchase Order).

The non-working DWL script was assigning the payload value to a variable, then referencing that variable for businessDocumentKey. When the DWL was tested in isolation in the DataWeave Playground, it returned the correct value — isolating the root cause to how Partner Manager handles indirect variable-to-key assignment at runtime.

Résolution

The fix is to reference the payload path directly in businessDocumentKey, rather than through an intermediate variable. When the customer reverted their DWL changes to use a direct path, the business key appeared correctly in the Activity tab.

Working DWL example:

%dw 2.0
output application/json
var edi944 = payload.TransactionSets.v004010."944"[0]
---
{
  businessDocumentKey: edi944.Heading."020_W17".W1703 default "UNKNOWN",
  customAttributes: [
    {
      alias: "warehouseReceiptNumber",
      values: [edi944.Heading."020_W17".W1703 default "UNKNOWN"]
    },
    {
      alias: "depositorOrderNumber",
      values: [edi944.Heading."020_W17".W1704 default "UNKNOWN"]
    }
  ]
}
Steps to resolve:
  1. Navigate to Anypoint Partner Manager > Configuration > Reference Maps.
  2. Open the reference mapping for the affected transactions (944 / 945).
  3. Review the DataWeave script for any intermediate variable assignments used for businessDocumentKey.
  4. Replace any variable references with the direct payload path expression.
  5. Save and re-process a test transaction to confirm the businessDocumentKey appears correctly in the Activity tab.
Numéro d’article de la base de connaissances

005336071

 
Chargement
Salesforce Help | Article