locked
ImportSolutionRequest for Default-Solution fails RRS feed

  • Question

  • Hi,

    I implemented a Solutionhelper, which automates
    export/import a solution. I exported the default-solution for backup purposes
    (works fine). Now I want to import this solution on the CRM again. However, the
    import fails with following error: EndpointNotFoundException (Error 404). I
    also tried to import a custom-solution with success.

    For me it looks like if there are some constraints for
    default-solution-import.

    Do you guys have any suggestions and maybe a
    resolution for this problem.

    Many thanks and best regards

    Klemens


    FileInfo importFile = new FileInfo(this.inPut);
    if (importFile.Exists)
    {
      ImportSolutionRequest impSolReq = new ImportSolutionRequest()
      {
        CustomizationFile = File.ReadAllBytes(importFile.FullName),
        PublishWorkflows = true,
                    };
      this.service.Execute(impSolReq);
      this.PublishAll();
    }//if


    Friday, March 18, 2016 8:33 AM

All replies

  • After a few more tests, I created an empty organization and exported the default-solution. The strange thing is, that the import of this solution works!!

    Therefore, I suspect that there is something wrong with max file size. The original default-solution is about 21MB and the import fails. If you remove some resources, the import will succeed.

    If you do the import via web-ui the import with until 32MB solutions is no problem. I guess I have to set any Max-Size properties in the organizationServiceProxy??

    Does anybody know how to configure the file size on the client-side-Proxy?

    Friday, March 18, 2016 9:33 AM
  • Does anybody has an idea how to fix this?
    Wednesday, March 23, 2016 7:38 AM