2

We have an export of a subsite (using Export-SPWeb) which we need to import to another site in different farm. The site contains some features which are not present in destination farm. So we end up getting errors like:

Could not find Feature < FEATURE NAME >

We don't have access on the source server so we cannot disable features on it before exporting.

Is there a way to disable the features while importing?

  • How did you export your site? Did you use Export-SPWeb? – Bunzab Oct 13 '16 at 9:13
  • @Bunzab: Yes, we used Export-SPWeb – Naveen Oct 13 '16 at 9:14
1

If you didn't use compression you can edit the Requirements.xml file and remove the unwanted features.

If you did use compression you will need to change the extension of your cmp file to cab and extract the Requirements.xml and make the same change. Unfortunately this is not an easy process if you have not rebuilt cab files before.

If you struggle with the cab you could just extract its contents to a folder, edit the xml and then when you import just point to the folder path and drop the -NoFileCompression parameter.

  • Is there a way to do it via powershell command parameter rather than messing around with the backup file? – Naveen Oct 13 '16 at 12:25
  • No. You would need to write your own Import cmdlet. – Bunzab Oct 13 '16 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.