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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)
Active Discussion

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

(0) ShareShare
ReportReport
Posted on by

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

  • Radu Chiribelea Profile Picture
    6,667 on at

    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

  • Community Member Profile Picture
    on at

    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.

  • Community Member Profile Picture
    on at

    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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans