title: Dynamics AX 2009 AIF Tables
body: <p><strong>Background</strong></p>
  
  <p>I have an issue where roughly once a month the AIFQueueManager table is populated with ~150 records which relate to messages which had been sent to AX (where they "successfully failed"; i.e. errorred due to violation of business rules, but returned an exception as expected) over 6 months ago.</p>
  
  <hr>
  
  <p><strong>Question</strong></p>
  
  <p>What tables are involved in the AIF inbound message process / what order to events occur in?  e.g. XML file is picked up and recorded in the AifDocumentLog, data's extracted and added to the AifQueueManager and AifGatewayQueue tables, records from here are then inserted in the AifMessageLog, etc.</p>
  
  <p>Thanks in advance.</p>