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):
Payables Transaction XUT (good):
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

Step 2: Add the XUT when the DLY is fired
