03 May, 2013

Content databases contain orphaned items

Problem Description:
The SharePoint Health Analyzer detected an error.  Content databases contain orphaned items.

In some situations, a content database that is used by Microsoft SharePoint Foundation may become corrupted. The corrupted database may contain orphaned items. For example, a document may not have a parent document library or a list may not have a parent Microsoft SharePoint Foundation Web site.  Consequently, you may be unable to create new items with the same URL as the orphaned items, and space in the content database will be consumed unnecessarily.

Error Message:
Content databases contain orphaned items

Resolution:
Perfect article provided by Microsoft on this which helps me to resolve this issue:
http://technet.microsoft.com/en-in/library/ff805076(v=office.14).aspx

Product Applies To:
SharePoint Server 2010.
SharePoint Foundation 2010.

Redirect a SharePoint site by using the Content Editor Web Part - SP2010

Today one user came up with the requirements that he wanted to redirect his current site to different site collection. This seems to a normal requirement for everybody and can arise at any time.

I have resolved that issue with the use of metatag and thought to share with all of you as how I resolved it.

Please refer the following the following line of code that you need to use it for the redirection purpose.

<meta http-equiv="refresh" content="2;URL=http://sharepoint2007/sites/contentmodification">




Where you need to use it?
-Open the site where you need to set up the redirection
-site actions
-edit page
-add the content editor WebPart
-Give the reference of this file.

You must be wondering what is meant by reference?
-Created any document library or use the existing one
-Copy the redirection script/line in a notepad
-Upload this notepad in a document library
-click on the notepad direct and copy the link from the browser.
-Go back to the site where you have added the content editor WebPart
-Enter the link inside the WebPart which will take the reference of that notepad.

That’s it. You are done with redirection.

If you have any queries/questions based on the same then please let me know, Thank you.

30 April, 2013

A positional parameter cannot be found that accepts argument SharePoint 2010

Problem Description:
Let me tell you that you will face this error while executing PowerShell commands. I have experienced the same while executing ‘add solution’ command.

Error Message:
A positional parameter cannot be found that accepts argument

You might laugh when I will tell you the resolutions in reference to the above as it’s so simple.

Resolution:
-Check the literal path that you have provided, most probably that’s the only reason when this command throws an exception.

Make sure that you providing the path in double quotation marks. That’s it.

Please amend the changes and you will successfully execute the command that you are working on.

In case of any queries/questions then please let me know, Thank you.

SharePoint 2013 Distributed Cache service.


This post is meant to give SharePoint Administrators an deeper look into the Distributed Cache along with some links to other resources on the internet.

Background
SharePoint 2013 uses the AppFabric (Caching) by Microsoft. Read here for a background on AppFabric. AppFabric Caching stores serialized managed objects in a ‘cache cluster’. The cache cluster consists of one or more machines (Cache Hosts) that pool their available physical memory. This pooled memory is presented and used by SharePoint as a single source of caching memory.


To read completed article click here.

29 April, 2013

Cannot browse to All People in SharePoint 2010

We used to normally visit All people in Sharepoint 2007 to Delete the user from the Site collection :)

Where is it in Sharepoint 2010 ?

The “All People” view is the best way to list out all the users having access to the SharePoint site.

When a admin navigates to the “People and Groups” section in a SharePoint 2007 site,

he sees a link called “All People” in the left hand navigation.

Clicking on this link brings up a view of all the users across all the groups in the site.

But this “All People” view is hidden in SharePoint 2010 and the link is also missing in the “People and Groups” section.


However one can still navigate to this view in a SharePoint 2010 by following the below mentioned steps :
 
  • Navigate to the “People and Groups” section.
  • Click on any of the groups.
  • Locate the “MembershipGroupId” query string parameter from Url in the address bar
  • Replace the value in the “MembershipGroupId” query string parameter with 0.
  • Reload the page and it will populate the “All People” View.

Site menus are hidden behind content editor web part


Issue: Site menus are hidden behind content editor web part.

Background: User added .swf file into content editor web part using iframe.

Code: Client had used the following code in the CEWP.

 
Troubleshooting: We tried with different parameters like, visibility, position, z-index but none of them working but no success.
 
Resolution: You have to add the wmode attribute.


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.

Applies to: SharePoint Foundation / Server 2010.

 

Task Microsoft Exchange Server reported error (0x8004010F)


Error Message: Task 'Microsoft Exchange Server' reported error (0x8004010F): 'The operation failed. An object could not be found.'
Error Code: 0X8004010F

Problem Description: While doing a Send / Receive on an Outlook user was getting the error message that operation failed and unable to resolve recipients.

After researching error message I got to know about the issue, that Offline Address Book was not found while using outlook.

When I checked host location of the user mailbox, found that the user is on Exchange 2010 server.

Found that the OAB was not configured for that DATABASE.

Offline Address Book assignment is very important in order to work send / receive and resolve the objects offline.

Resolution:
Exchange Server 2010
-In Exchange Management Console, expand Organization Configuration, and then clickMailbox.
-In the Database Management window, right-click Properties on the mailbox store.
-Click the Client Settings tab, click Browse, and then click the appropriate offline address book.
-Click on Apply and OK.

Exchange Server 2007
-In Exchange Management Console, expand Server Configuration, and then clickMailbox.
-In the Database Management window, right-click Properties on the mailbox store.
-Click the Client Settings tab, click Browse, and then click the appropriate offline address book.
-Click OK two times.

Thank you.