Using AX 2012 R3 CU9
I'm setting up my AIF inbound / Oubound ports for EDI and would like to have a more detailed response when a service is complete. Let me explain more....
I have a Inbound AIF port created, using the SalesSalesOrderService.Create Service operation. I selected the check box for "Response address" which uses a File system adapter to write an XML file when the processes complete (success or failure). I have it send to a URL, which works great for every inbound Sales Order document that it processes.
However, when there is an error, it writes back an XML file which has the "TEXT" on the error that occurred, giving the reason why the Sales Order could not be created. See the example below (I'm not looking to troubleshoot THIS specific error, it's just an example):
![]()
Looks like it takes the error text message from the "SYSEXCEPTIONS" table, or from looking at the Exceptions under system Admin -> Periodic -> Services and Application Integration Framework ->Exceptions form. However, if I happen to have 100's or 1000's of incoming PO's on a daily basis, it would be beneficial to see the PO number and / or customer number displayed on this Response XML file. This would aid me in troubleshooting situations, like addresses or part numbers not available for THAT specific Order.
From research I've conducted already, seems like I would have to create a customized XSL file, and upload it into the "Transform all responses: Outbound Transforms" button on the Processing options fast tab (if I'm incorrect, someone tell me please). But from there, I'm not well educated on what particular headers and elements I should use to create this form. I'm looking to place the...
- PO number
- Account Number
- (Maybe more information for troubleshooting)
... as well as keeping the message of the error as seen above.
Can someone point me in the right direction, on how to properly create the file, and what elements I would have to place inside of the XSL file to get the PO and Account number of the document in question?