07 June, 2012

Backup Restore in SharePoint 2010

Hello Guys, today I am going to share one of my interesting topics in SharePoint 2010. This is an important one that you have to be ‘aware of’ as it belongs to recovery model. Yes, you are absolutely right; I am talking about Backup-Restore methods in SharePoint 2010.
Microsoft SharePoint 2010 has comes up with so many enhancements and backup restore is one of them. I will try my best here to cover the backup-restore based on GUI (Graphical User Interface), STSADM and Powershell so that you will be proficient enough to work on these mentioned methods independently.
Backup Operations
Backup operations are associated with:
·         Site collection
·         Subsite
·         List and Document Libraries
How to take the backup of the site collection:
By using Central Administration
·         Open the central administration
·         Backup and Restore
·         Granular Backup
·         Perform a site collection backup
·         Select the appropriate web application and site collection from the dropdown
·         Provide the filename
·         Start backup
·         You will be redirected to _admin/sitebackuporexportstatus.aspx
·         It shows the status ‘Operation initializing’
·         It will take some time to complete the backup depending on the size of the site collection
·         As soon as the backup completed then the status will change to ‘Operation Succeeded’
·         That’s it and you are done... check the file location and you will see the backup file that you have specified in the above mentioned steps.
By using STSADM command
For site collection backup:
    stsadm.exe -o backup -URL <URL> -filename <filename> [-overwrite]
By using Powershell command
Backup-SPSite -Identity http://SharePointBackuptesting/sites/AMOL2010 -Path <Filename>
How to take the backup of the subsite
By using Central Administration
§  Open the central administration
§  Backup and restore
§  Granular backup
§  Export a site or list
§  Select the appropriate web application, site collection and subsite
§  Provide the filename
§  Select Export Security (If you want to include permissions)
§  Export Versions (by default ‘All Versions’ selected)
§  Start backup
§  You will be redirected to _admin/sitebackuporexportstatus.aspx
§  It will take some time to complete the backup depending on the size of the site collection
§  As soon as the backup completed then the status will change to ‘Operation Succeeded’
§  That’s it and you are done... check the file location and you will see the backup file that you have specified in the above mentioned steps.
By using STSADM command
stsadm.exe -o export -URL <URL to be exported> -filename <export file name>
By using Powershell command
Export-SPWeb -Identity <URL of the subsite> -Path <filename> -IncludeUserSecurity
How to take the backup of the List/Document Library
By using Central Administration
·         Open the central administration
·         Backup and restore
·         Granular backup
·         Export a site or list
·         Select the appropriate web application, site collection and List/Document Library.
·         Provide the filename
·         Select Export Security (If you want to include permissions)
·         Export Versions (by default ‘All Versions’ selected)
·         Start backup
·         You will be redirected to _admin/sitebackuporexportstatus.aspx
·         It will take some time to complete the backup depending on the size of the site collection
·         As soon as the backup completed then the status will change to ‘Operation Succeeded’
·         That’s it and you are done... check the file location and you will see the backup file that you have specified in the above mentioned steps.
By using Powershell command
Export-SPWeb –Identity <Site URL> -Path <Filename> -ItemURL “Lists/Tasks” –includeusersecurity
If you face 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.
Note: Complete Restore Operations will be posted in the next article... so stay tuned…very soon I will provide you the restore information that will be the concluding part of this recovery operations.

Examples:
Backup of the List:

PS C:\> Export-SPWeb -Identity http://itweb.contoso.com/sites/SP2010_Backup/dspace -Path C:\SP2010_Backups\documentbkps.cmp -ItemUrl "Lists/Calendar"

Additional notes:


Filename: SP2010_Backups\documentbkps.cmp

Item URL means the name of the list that you wanna backup (here the name of the list is 'Calendar')

Note: if your list name contain spaces then you need to use double quotes, otherwise the Windows PowerShell command will return errors.

Backup of the document library:
PS C:\> Export-SPWeb -Identity http://itweb.contoso.com/sites/SP2010_Backup/dspace -Path C:\SP2010_Backups\testlibbkp2s.cmp -ItemUrl test -Force

Additional notes:


Filename: SP2010_Backups\testlibbkp2s.cmp

Item URL means the name of the library that you wanna backup (here the name of the library is 'test')

For restore operations, please refer http://sharepointknowledgebase.blogspot.in/2012/06/sharepoint-2010-backuprestore-with.html 

06 June, 2012

Per-Location View option is missing in SharePoint 2010

In this article, I will describe the issue that I faced while working on Per-Location View options and troubleshooting steps that I have taken to resolve.
Brief details:
You can configure which views are available for specific locations in the site hierarchy. The locations in a site hierarchy for which you can configure the availability of views are:
·         Lists
·         Libraries
·         Folders for lists and libraries.

How to reproduce the issue?
I have created a site by using blank template. Blank site template does not have any default list/libraries created and we can design it as per our project requirements. So afterwards I have created a custom list and tried to configure the per location view settings but here is the mystery begins...As I am not able to see that option under list settings.

How to resolve this issue?
·         Open the sharepoint site in which you are facing the issue
·         Site actions
·         Site settings-site actions (don’t be confused with this repeated word)
·         Manage site features
·         Activate this feature Metadata Navigation and Filtering
·         Go back to the list settings now and check the results JJ

You can see that option is there now and I can see your smiling face J

Important guidelines about this ‘Location per View’ option

1)   You cannot use personal views for per-location views
2)   To configure per-location view settings you must have at least the permissions obtained by being added to the default Designer security group for the site that the list or library is in.

If you have any queries/questions regarding the mentioned information then please let me know. Thank you.

InfoPath does not support customizing the form used for this list.


Is it possible to customize document library forms using InfoPath?
Tricky question right? If you face this error message then several questions will be raised as:
InfoPath does not support customizing the form used for this list.
Is this restricted to this document library only?
Is this a default behavior?
Is it applicable to forms library only? And so on….
But let me tell you-this is a by design and error message won’t be there in the next version. Here is the detail on that:
You need to look for the command for the detail explanation:
We don't support customizing document library forms in InfoPath. This error should not appear in the final released product.
Laura Harrington (InfoPath Team)
This is restricted to document libraries only and works fine with the SharePoint Lists/custom lists.
If you open any list and refer the same settings then you will get the option to make it enable or not by selecting Yes/No option.
If you have any queries/questions regarding the mentioned information then please let me know, Thank you.

Inline editing in sharepoint 2010

The keyword itself explains the brief meaning about functionality.
Inline Editing: Choose whether an edit button on each row should be provided. This button allows users to edit the current row in the current view, without navigating to the form. Inline editing is only available on views that have their Style set to Default.


If you are missing this option in your document library/in custom lists then please refer the following steps and your issue will be resolved:
·         Open the document library in which you wants to enable that option
·         Settings
·         Document library settings
·         Scroll towards the bottom and you will see the views section
·         Click on All Documents view
·         Scroll towards the bottom and you will see a option named as Inline Editing
·         Mark the check box that says-Allow Inline Editing
·         Click OK and that’s it-you are done
·         Go back to your document library and check the results
If you have any queries/questions regarding the above mentioned information then please let me know, Thank you.

05 June, 2012

Rating System in SharePoint 2010

Before I start writing on this article, I would like to highlight the name of the person who is the coordinator of this solution. He has created this solution way back in SharePoint 2007 version and now it’s upgraded to SharePoint 2010 also.
Now obviously you are thinking as what exactly I am talking about? - The name of the person is StephaneEyskens. You can take the complete reference from the following link: http://sptoolbasket2010.codeplex.com/
Let’s come back to the main point now: SharePoint 2010 has comes up with many new features as well as functionalities and Document Rating is one of them.
Displaying content based on ratings can help content readers find quality content easily. If you are a content manager or author, ratings can help you easily see which topics are considered to be more popular by the readers.
How to Enable Rating System for your Document Library?
·         Open the document library
·         Settings
·         Document Library settings
·         General settings section
·         Rating system
·         Check this option ‘Allow this item to be rated in this list’ to Yes
·         Click OK
As soon as you click ok then you can see the addition of one more column in your document library named as ‘Ratings (0-5)’
What are the other changes happened in your document library?
·         Open the document library
·         Settings
·         Document Library settings
·         Check the Columns section
·         You will see the addition of one more new column:
§  Number of Ratings
Important things to notice about this Rating functionality:
·         If you rate the document twice, thrice… then it will always overwrite the previous rating and shows the current one only.
·         The ratings control is then available on pages based on the layout. Using a page layout ensures that similar pages share some consistent elements and design.
·         If the ratings feature is enabled for your organization, a Rating Settings option will appear in the site settings for a list or library
Which Job plays an important role behind this Rating system functionality?
·         Open the central administration
·         Monitoring
·         Review Job Definitions
·         Check for this Job: User profile service application-Social Rating synchronization job
Note: The above mentioned job runs on hourly basis so if you are in hurry and wants the average of those rating system as soon as possible then click on the above job and select ‘Run Now’-that’s it.. Mission Accomplished J
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 J J
Thank you.

Exception from HRESULT: 0x80040E07

If I do any customizations/change the look and feel of the template then I usually take the proper backup and archived the structure for future purpose. This time, I took the backup (save site as template method) of Knowledgebase template (one of best template from Fantastic 40) and Uploaded the ‘Knowledge base Template’ .STP to different site collection and I can view the same under ‘Custom Tab’

Tried creating a subsite by using the uploaded template and got the below mentioned error message:
Exception from HRESULT: 0x80040E07
Troubleshoot issues with Windows SharePoint Services.


I can see that site underneath view all site content

When I browsed the system pages then they are still working fine:

But when I browsed this: https://SharePoint2007Administrationsite/sites/amoltest/AdminKB/_layouts/changesitemasterpage.aspx

Then I can see it does not belongs to the approved master page (see the screenshot)

Changed the option back to “Inherit site master page from parent of this site” and site opens successfully without any error messages


Happy SharePoint J

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 J J

Thank you

Document ID in sharepoint 2010

I really want to appreciate Microsoft Product Team for creating this Document ID functionality. We all know about the URL links broken problem in SharePoint 2007 when we move any document from one place to another. But this problem has been resolved now in this newer version i.e. SharePoint 2010. With the implementation of this functionality, every document will be associated with unique ID that will be consistent throughout the site collection. I will mention some common FAQ’s towards the end of this article that I have experience by means of pure testing.
How exactly it works? How to implement this on your site collection?
First important thing is you need to activate this feature by means of site collection
How to activate this feature by means of GUI (Graphical User Interface)?
·         Open the sharepoint site
·         Site actions
·         Site settings
·         Site collection administration
·         Site collection features
·         Activate this feature ‘Document ID Service
Note: If you are not able to see the site collection administration section then make sure you are part of site collection administrators group.
How to activate this feature by means of Powershell command?
·         Open the Powershell command window
·         Execute the following command:
Enable-SPFeature –id docid –url <site collection link>
Next important step:
1)   Open the SharePoint site
2)   Site actions
3)   Site settings
4)   Site collection administration
5)   Document ID settings
6)   Make sure that this options should be checked-Assign Document IDs
Common FAQ:
-I already have document library which consist of some uploaded document but still I am not able to see the document ID’s?
-Why it is not working? If I have already activated the feature then it has to assign the document ID’s but it’s not happening
Is there any problem in terms of activation?
Here is the answer for the above questions:
After some debugging in central administration, I found out something interesting that resolves my issue JJ Happy SharePoint once againJ
·         Central administration
·         Monitoring
·         Timer Jobs
·         Review Job Definitions
·         Check the list of timer jobs carefully and you will find this:
§  Document ID Assignment job
§  Document ID Enable/Disable Job
·         Click on each job and select ‘Run Now’
·         That’s it-now you check the document library status and I can check the smile on your face J
Note: Make sure you need to enable that column by means of edit list view
How to enable this column? Very simple, follow these steps:
1.   Open the document library
2.   Settings
3.   Document Library settings
4.   Scroll towards the bottom of the page
5.   Under view-click on ‘All Documents’
6.   Select the Document ID column and Click Okay
Common FAQ’s:
1.   Does the document ID changes if I move a document from one library to another? –NO, the ID will be same across the whole site collection.
2.   Does the document ID changes If I move the document from one site collection to another site collection?-Yes, document ID will lose the preserveID functionality as soon as the document moves to site another site collection.
3.   Is this functionality applicable to custom list also? NO-applicable to only document libraries
If you have any queries/questions then please let me know. I would be more than happy to help you as well as resolves your issues J
Thank you.