Sometimes when you try to process big XML messages using File adapter you can get error:

The request failed with the following error: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.microsoft.com/dynamics/2011/01/services:serviceName. The InnerException message was 'Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph quota. '. Please see InnerException for more details.

The issue happens because we are hitting the configured WCF settings. To change the settings we need to:

1. Unfortunately with Dynamics AX 2012 RTM version there is no way to set up WCF settings (like timeouts, MaxIremsInObjectGraph, etc.) To achieve it we need to install application hotfix delivered with KB 2708687 (the fix is also included in Cumulative Update 3 available here:MicrosoftDynamics AX 2012 Cumulative Update 3 (KB2709934) ). Please contact Microsoft Dynamics Ax Support if you want only separate hotfix and it is still not available on PartnerSource. After installing hotfix on "Inbound ports" form for File Adapter you should find new button "Configure AOS" which will allows you to open WCF editor.