Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

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

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

  • Learner001 Profile Picture
    Learner001 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.

  • Aditya Profile Picture
    Aditya 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
    Learner001 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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans