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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Plugin Error : The size necessary to buffer the XML content exceeded the buffer quota.

(0) ShareShare
ReportReport
Posted on by 40

Hi Everyone,

I am writing a plugin to update all the child records once parent field is updated.

I have written the plugin on post operation and the message is updated. I have also mentioned the filtering attribute to trigger the plugin only when you change that field.

When i debug the code I could see all the operations are performing well but once it reached to service.Update, then it throws the error which says " The size necessary to buffer the XML content exceeded the buffer quota"

I tried to check if there are another plugins in the list that are profiled but there are no plugins profiled.

Also there are no other plugins on update of the record.

But I could see whenever I update the field, there are 12 plugin trace log records that gets created.

Any help would be highly appreciated.Thank you

I have the same question (0)
  • Learner001 Profile Picture
    40 on at
    RE: Plugin Error : The size necessary to buffer the XML content exceeded the buffer quota.

    I actually got to know why I was getting this error.

    Because I was triggering the plugin on update of a field and I was updating the same field in the plugin so it was triggering the plugin again and was going cyclic due to which buffer size exceeded the quota.

    How can I prevent the plugin to go cyclic? Can someone help me with this?

    Thank you.

  • Aditya Profile Picture
    260 on at
    RE: Plugin Error : The size necessary to buffer the XML content exceeded the buffer quota.

    Have you put a check of Depth in your plugin code?

    If not then put one line code just after checking the target etc.

    if(context.depth >1)

    return;

    Please mark the answer as verified if it is useful to you

  • Learner001 Profile Picture
    40 on at
    RE: Plugin Error : The size necessary to buffer the XML content exceeded the buffer quota.

    I have done it already, and now the cyclic thing has been prevented. Just clicked once I posted this.

    But still I get an error when it reaches service.update and it says InvalidPluginExecutionException.

    Not able to understand what exactly is the issue now.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 337

#2
Sohaib Cheema Profile Picture

Sohaib Cheema 95 User Group Leader

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 82

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans