Microsoft Dynamics Ax 2012 Inbound port using File system Adapter Error: Duplicate message. Message has already been processed

Yesterday we get the following error during import of XML File containing message ids.

“Event Description: Object Server 01: An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.ServiceModel.FaultException`1[Microsoft.Dynamics.Ax.Services.AifFault]: Duplicate message. Message has already been processed. (Fault Detail is equal to Microsoft.Dynamics.Ax.Services.AifFault).”

Reason:

XML File contain the message ID’s that were already imported to system.

Solution:

By updating the Message ID’s that were already imported to the system and run the import process it work fine.

Following is the example work around that has been done to fix the issue:

Change the message id value at the end of id. From Message ID.

{5603D03A-4380-404D-9F27-738BE0FEA14F}

To message ID:

{5603D03A-4380-404D-9F27-738BE0FEA18F}