Showing posts with label Troubleshoot issues with Microsoft SharePoint Foundation. Show all posts
Showing posts with label Troubleshoot issues with Microsoft SharePoint Foundation. Show all posts

04 April, 2014

The site template requires that the Feature be installed in the farm


I was facing one issue while creating a new site from site template in our customer environment. This site was created in our local environment and I saved it as a template.

Below is the screenshot for the error what customer are facing.

After investigating with this feature id, I found that, there is a hidden feature named “WACustomReports” at site collection label, that need to be deactivated before saving the site as template.

Error Message: The site template requires that the Feature be installed in the farm or site collection. Troubleshoot issues with Microsoft SharePoint Foundation.

Resolution is very simple:
Please activate this feature "Web Analytics Customize Reports functionality" on the root site where you are trying to create the site based on this template. Here is the exact name - WACustomReports

OR Here is the command to activate that feature (Any feature which is missing): Enable-SPFEATURE WACustomReports –URL http://sitecollectionURL

But here is the END USER reply that I received from the end user:
“In our environment, we don’t have any access. We are only sharing the templates with instructions. Client is having only Site Collection Admin rights, not central admin rights. That’s why I deactivated this HIDDEN feature from our dev environment. Took a backup and will share with customer today.”

So bottom line: No direct access to do these things which has suggested above.

So what’s the next action plan?

Here is the resolution for this-

- Save the wsp to your desktop

- Renamed it to the .CAB file

- Extract the contents

- You will see four folders underneath ( adminListInstances, adminModules, adminPropertyBags and adminWebTemplate)

- Go for adminWebTemplate

- Go inside the "admin" folder

- You will see "ONET.XML"

- Edit with notepad

- Control F and search for WACustomReports (please refer the following screenshot) to get more clarity
- remove the lines which are for the above feature

- Save the notepad.

- Repackage the files again and save as .WSP

How to repackage it? Here are the steps:
1.   Rename WSP file to CAB and extract all the files
2.   Modify the necessary files
3.   Rebuild the correct directory structure for the solution
4.   Copy the files into that directory structure (in the right place)
5.   Create a DDF file indicating name and location of all files to be in WSP file
6.   Run MakeCab using created DDF file to create cab, and then rename cab to WSP

Reference of MakeCab:

If you have any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you.

If you find a different solution, please report it as a comment to this post. Be sure to double-verify it: undo your solution and verify that the problem comes back, then redo it and verify that the problem goes away.

24 May, 2012

Cannot complete this action SharePoint 2010

One of colleague who is working in a different organization called me yesterday for SharePoint help. He told me that he was working on semantic restores and accidently restored the library pages i.e. displayform.aspx, editform.aspx, newform.aspx etc… Due to this action, he was not able to open the document library and was getting the following error message:
Cannot complete this action
Please try again.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: e0998560-69eb-4e08-96fe-3411577ebd63
Date: 5/24/2012
There are so many ways by which we can troubleshoot this issue:
1.   Are we able to open the document library by means of SP site?
-open the SharePoint site
-view all site content
-Under document libraries section
-you will see that affected document library
-click on it and check the results
As per my knowledge, it has to reflect the same error message.
2.   Try to map your SharePoint site by means of shared drive concept
-How to create this shared drive?
·         Click Start, right-click Computer, and then click Map network drive...
·         In the Map Network Drive dialog box, click Connect to a Web site that you can use to store your documents and pictures.
·         In the Add Network Location wizard, click next.
·         Click Choose a Custom Network Location, and then click next.
·         In the Internet or Network Address box, paste in the site address you had copied to the Clipboard, and then click next.
·         Enter a name for the network location.

-Once the shared drive created then you can copy all the documents which are present in you library that is not working. So it means that there will be no DATA LOSS J that’s the main thing, correct?
3.   Custom lists and libraries section on your SharePoint site
-Open the SharePoint 2010 site collection on which you are working
-site actions
-site settings
-Under site administration
-custom list and libraries
-select the library in which we are facing the problem
-once you click on it then it will redirected to library settings page
-by which of this page, we can create a new view
-try to create a new view and your problem will be fixed.
The number of options which are explained above will definitely helps you to prevent data loss as well as do a effective troubleshooting that will fix the issue J
After all of this also, if the issue remains then I am always there to help youJ
Please let me know in case of any queries/questions. I would be more than happy to help you as well as resolves your issues J
Thank you.