When trying to Import an unmanaged or managed solution, you may experience the following error:
Resolution
Error while Importing a solution in CRM 2011 – The solution file is invalid. The compressed file must contain the following files at its root: solution.xml, customizations.xml, and [Content_Types].xml
Issue
The issue can be either one of a few, could be that the file is corrupt, the file has been tampered with, but the most probable cause is that the file has been zipped/compressed incorrectly.
You should check that there are 3 .xml files in the root of the solutions .zip file, which should include:
- solutions.xml
- customizations.xml
- [Content_Types].xml
The obvious thing would be to try exporting the solution again and try importing this, however if this is not an option, please do the follow:
1. Extract the solution .zip and navigate to the folder until you can see the 3 .xml files, along with the other contents of the solution.
2. Select all files and folders, then right click and use the Send to > Compressed Folder option as displayed below:
Now try importing the newly created .zip solutions file, and you should be fine.
Can you please tell me where these 3 xml files are located?
ReplyDeleteHi SKRCRM, these files will reside within the CRM Solution file itself. This is the .zip file you have exported from your development/source CRM environment.
ReplyDeleteThank you so much for your response! I apologize for my very limited knowledge on this process - this is a very good learning experience for me. Do you mean I should be able to find the 3 files in the solution that I downloaded to accomplish a task? I downloaded the XrmToolBox-master.zip from CodePlex. I get the error when I try to import this solution. I have unzipped the zip but can't find those 3 files anywhere. I could grab them from another solution but it seems they're solution specific. Can I grab the files from another solution or do I have to have the ones specifically for the CodePlex solution? Thank you!
ReplyDelete