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.
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"]
}
]
}
businessDocumentKey.businessDocumentKey appears correctly in the Activity tab.005336071

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.