Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

The size necessary to buffer the XML content exceeded the buffer quota.

$
0
0

Hi Folks,

I have an Azure Function to bulk create Records to D365 online.

Sometimes, throw below errors.

Any suggestions are appreciated. 

{
"Outcome": 1,
"FinalException": {
"ClassName": "System.ServiceModel.QuotaExceededException",
"Message": "The size necessary to buffer the XML content exceeded the buffer quota.",
"Data": {},
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)\r\n at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)\r\n at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)\r\n at Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient`1.ExecuteAction[TResult](Func`1 action)\r\n at Contoso.Integration.Common.CRM.OrganizationServiceWrapper.<>c__DisplayClass11_0`1.<WriteExecutionDependency>b__0()\r\n at Contoso.Integration.Common.CRM.OrganizationServiceWrapper.WriteExecutionDependency(String operationName, String operationData, Action action)\r\n at Contoso.Integration.Common.CRM.OrganizationServiceWrapper.WriteExecutionDependency[T](String target, String data, Func`1 func)\r\n at Contoso.Integration.Common.CRM.OrganizationServiceWrapper.Execute(OrganizationRequest request)\r\n at Contoso.Integration.ECommerce.Business.ECommerceReturnExtension.<Sync>d__17.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Contoso.Integration.Common.Process.EventDataSyncProcessor`2.ExecuteProcess()\r\n at Polly.Policy.<>c__DisplayClass120_0.<ExecuteAndCapture>b__0(Context ctx, CancellationToken ct)\r\n at Polly.Policy.<>c__DisplayClass138_0.<Implementation>b__0(Context ctx, CancellationToken token)\r\n at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)\r\n at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)\r\n at Polly.Policy.Implementation(Action`2 action, Context context, CancellationToken cancellationToken)\r\n at Polly.Policy.Execute(Action`2 action, Context context, CancellationToken cancellationToken)\r\n at Polly.Policy.ExecuteAndCapture(Action`2 action, Context context, CancellationToken cancellationToken)",
"RemoteStackTraceString": "\r\nServer stack trace: \r\n at System.Runtime.BufferedOutputStream.WriteCore(Byte[] buffer, Int32 offset, Int32 size)\r\n at System.Xml.XmlBinaryNodeWriter.FlushBuffer()\r\n at System.Xml.XmlBinaryNodeWriter.UnsafeWriteText(Char* chars, Int32 charCount)\r\n at System.Xml.XmlBinaryNodeWriter.WriteText(Char[] chars, Int32 offset, Int32 count)\r\n at System.Xml.XmlBaseWriter.WriteChars(Char[] chars, Int32 offset, Int32 count)\r\n at System.Xml.XmlBinaryWriter.WriteTextNode(XmlDictionaryReader reader, Boolean attribute)\r\n at System.Xml.XmlDictionaryWriter.WriteNode(XmlDictionaryReader reader, Boolean defattr)\r\n at System.ServiceModel.Channels.ReceivedFault.CreateFault11(XmlDictionaryReader reader, Int32 maxBufferSize)\r\n at System.ServiceModel.Channels.MessageFault.CreateFault(Message message, Int32 maxBufferSize)\r\n at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)\r\n at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)\r\n at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)\r\n\r\nException rethrown at [0]: \r\n",
"RemoteStackIndex": 1,
"ExceptionMethod": "8\nHandleReturnMessage\nmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Runtime.Remoting.Proxies.RealProxy\nVoid HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)",
"HResult": -2146233087,
"Source": "mscorlib",
"WatsonBuckets": null
},
"ExceptionType": 0,
"Context": {}
}


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>