When a Dynamics AX 2012 connector uses a Find or Read operation for more than 15 customers (Customer Service) the Activity Log\C.Sys.ErrorDescription variable shows the following error:
Error 1251: Dynamics AX call error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
System.ServiceModel.CommunicationException: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. ---> System.ServiceModel.QuotaExceededException: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element
When working with a Dynamics AX 2012 connector on machines running .NET Framework 3.5 or 4.0, the maxBufferSize and maxReceivedMessageSize parameters appear in the client.config file under the <binding name> tag. To prevent this error from occurring, the maxBufferSize and maxReceivedMessageSize properties should set to higher values.
When working with a Dynamics AX 2012 connector on machines running .NET Framework 4.5, the client.config file does not have these parameters, so you need to set them manually.
Note: Changes to the client.config file's parameters take effect immediately The Magic xpi project does not need to be restarted for it to use the new value.
|