Problem

There is a race condition when there is both an ATP completion action and an XUT completion action to export the invoice from CargoWise. The XUT will actually be an XML file for a pending allocation, not a payables transaction.

Pending Allocation XUT (bad):

PA IPA SEQD2301Q0047A01-3.xml

Payables Transaction XUT (good):

AP INV SEQD2301Q0047A01-5.xml

Solution

You can delay the firing of the XUT event as described in this update note:

Schedule Delayed Event Completion Trigger Action.pdf

To configure, you’ll need to add a DLY completion action below the ATP action with a delay of 1 minute then add another trigger for DLY that runs the XUT completion action.

Step 1: Add the delay

Automatic Invoice Posting Add.png

Step 2: Add the XUT when the DLY is fired

Automatic Invoice Posting Delayed to Export.png