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 CRM (Archived)

[BUG?] [SDK] When a PublishAllXmlRequest is executed It's not possible to Import Solution using SDK

(0) ShareShare
ReportReport
Posted on by 6,016

PublishAllXmlRequest publishRequest = new PublishAllXmlRequest();

PublishAllXmlResponse publishResponse = (PublishAllXmlResponse)Service.IOrganizationService.Execute(publishRequest);

When this Message is used to Publish all content, if I try import a solution using:

ImportSolutionRequest ISR = new ImportSolutionRequest();
ISR.CustomizationFile = File.ReadAllBytes(file);

ImportSolutionResponse result = (ImportSolutionResponse)Service.IOrganizationService.Execute(ISR);

This always return a System.ServiceModel.QuotaExceededException saying that "The size necessary to buffer the XML content exceeded the buffer quota."

I tried to wait 5 - 10 - 20 min and resend the execute of this message, but always the same exception appear. And in dynamics CRM it's possible to import the solution normally.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    6,016 on at
    RE: [BUG?] [SDK] When a PublishAllXmlRequest is executed It's not possible to Import Solution using SDK

    Hi Vitor,

    Can you elaborate on how you fixed this issue? Which assemblies were you missing?

    I am having same error but slightly different scenario.

    see my post, thanks.

    https://community.dynamics.com/crm/f/117/t/349327

  • Community Member Profile Picture
    6,016 on at
    RE: [BUG?] [SDK] When a PublishAllXmlRequest is executed It's not possible to Import Solution using SDK

    I did a mistake, this QuotaExceededException is a problem on the missing dependencies, I don't know why this not show the System.ServiceModel.FaultException that show the missing dependencies. But the cause is not the publish.

  • Radu Chiribelea Profile Picture
    6,667 on at
    RE: [BUG?] [SDK] When a PublishAllXmlRequest is executed It's not possible to Import Solution using SDK

    Hello,

    Maybe i did not understood your issue properly. Are you trying to import the solution after you get the PublishAllXmlResponse (after Publish All was finished) or before (while publishing all customizations)?

    Regards,

    Radu

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Featured topics

Product updates

Dynamics 365 release plans