web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archive)
Suggested answer

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

(0) ShareShare
ReportReport
Posted on by 405

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": {}
}

  • Suggested answer
    Guowei_Xu Profile Picture
    405 on at
    RE: The size necessary to buffer the XML content exceeded the buffer quota.

     Swathi D 

    Yes, This issue has been resolved.

    Root cause

    Triggering of another sync workflow when creating or updating a record in D365. which was an unexpected action.

    Solution

    I added a bypass criterion to the workflow for this scenario.

    Suggestion

    Please double-check if any backend plugins or workflows were unexpectedly triggered.

    I hope this information is helpful.

    Have a good day.

  • Swathi D Profile Picture
    15 on at
    RE: The size necessary to buffer the XML content exceeded the buffer quota.

    Hi, Is it resolved. What is the solution? Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard > 🔒Ι Microsoft Dynamics CRM (Archived)

Featured topics

Product updates

Dynamics 365 release plans