Wednesday, June 17, 2015

There has been a critical error while processing the form.

Issue Description

You get the below error message when you use InfoPath Forms on SharePoint 2010 and Internet Explorer 11.

Critical Error
There has been a critical error while processing the form.  
Click Start Over to load a new copy of the form. If this error persists, contact the support team for the Web site.
Click Close to exit this message.
Object doesn't support property or method 'addEventListener'



Fix

There is an incompatibility with some SharePoint 2010 features and Internet Explorer 11.
To fix this, IE needs to run on Enterprise Mode.

Open Internet Explorer -> Right Click Enable Menu bar -> Tools - > Select Enterprise Mode


Monday, June 15, 2015

BDC The name ‘Domain\User Name‘ could not be resolved via Active Directory

Issue

When you work with SharePoint 2010 and BDC Service application when you try to create an External Content Type, you might come across this error. This is because the person who had created the Content type is not present in the Active Directory. He/she may have left your organization.



Resolution

1) Browse to Central Administration

2) Choose the BDC Service application. Make sure that this person is not listed as the administrator on the service application

3) Inside the BDC service application, select Set Metadata Store Permissions


4) The user listed in the error will be listed here.

5) Select the user and remove him/her.

6) Make sure that you select the checkbox that says - 
Propagate permissions to all BDC Models, External Systems and External Content Types in the BDC Metadata Store. Doing so will overwrite existing permissions.


7) Click OK

Thursday, June 11, 2015

SharePoint Group - Site Owner (Full Control)

When a SharePoint site is created, by default 3 SharePoint groups are created

Site Owners - Full control
Site Members - Contribute
Site Visitors - Read

Below are the permissions you get when you are a Site Owner (Full Control)

List Permissions

Manage Lists - Create and delete lists, add or remove columns in a list, and add or remove public views of a list.
Override Check Out - Discard or check in a document which is checked out to another user.
Add Items - Add items to lists and add documents to document libraries.
Edit Items - Edit items in lists, edit documents in document libraries, and customize Web Part Pages in document libraries.
Delete Items - Delete items from a list and documents from a document library.
View Items - View items in lists and documents in document libraries.
Approve Items - Approve a minor version of a list item or document.
Open Items - View the source of documents with server-side file handlers.
View Versions - View past versions of a list item or document.
Delete Versions - Delete past versions of a list item or document.
Create Alerts - Create alerts.
View Application Pages - View forms, views, and application pages. Enumerate lists.

Site Permissions

Manage Permissions - Create and change permission levels on the Web site and assign permissions to users and groups.
View Web Analytics Data - View reports on Web site usage.
Create Subsites - Create subsites such as team sites, Meeting Workspace sites, and Document Workspace sites.
Manage Web Site - Grants the ability to perform all administration tasks for the Web site as well as manage content.
Add and Customize Pages - Add, change, or delete HTML pages or Web Part Pages, and edit the Web site using a Microsoft SharePoint Foundation-compatible editor.
Apply Themes and Borders - Apply a theme or borders to the entire Web site.
Apply Style Sheets - Apply a style sheet (.CSS file) to the Web site.
Create Groups - Create a group of users that can be used anywhere within the site collection.
Browse Directories - Enumerate files and folders in a Web site using SharePoint Designer and Web DAV interfaces.
View Pages - View pages in a Web site.
Enumerate Permissions - Enumerate permissions on the Web site, list, folder, document, or list item.
Browse User Information - View information about users of the Web site.
Manage Alerts - Manage alerts for all users of the Web site.
Use Remote Interfaces - Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site.
Use Client Integration Features - Use features which launch client applications. Without this permission, users will have to work on documents locally and upload their changes.
Open - Allows users to open a Web site, list, or folder in order to access items inside that container.
Edit Personal User Information - Allows a user to change his or her own user information, such as adding a picture.

Personal Permissions

Manage Personal Views - Create, change, and delete personal views of lists.
Add/Remove Personal Web Parts - Add or remove personal Web Parts on a Web Part Page.
Update Personal Web Parts - Update Web Parts to display personalized information.

SharePoint Group - Site Member (Contribute)

When a SharePoint site is created, by default 3 SharePoint groups are created

Site Owners - Full control
Site Members - Contribute
Site Visitors - Read

Below are the permissions you get when you are a Site Member (Contribute)

List Permissions

Add Items - Add items to lists and add documents to document libraries.
Edit Items - Edit items in lists, edit documents in document libraries, and customize Web Part Pages in document libraries.
Delete Items - Delete items from a list and documents from a document library.
View Items - View items in lists and documents in document libraries.
Open Items - View the source of documents with server-side file handlers.
View Versions - View past versions of a list item or document.
Delete Versions - Delete past versions of a list item or document.
Create Alerts - Create alerts.
View Application Pages - View forms, views, and application pages. Enumerate lists.

Site Permissions

Browse Directories - Enumerate files and folders in a Web site using SharePoint Designer and Web DAV interfaces.
View Pages - View pages in a Web site.
Browse User Information - View information about users of the Web site.
Use Remote Interfaces - Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site.
Use Client Integration Features - Use features which launch client applications. Without this permission, users will have to work on documents locally and upload their changes.
Open - Allows users to open a Web site, list, or folder in order to access items inside that container.
Edit Personal User Information - Allows a user to change his or her own user information, such as adding a picture.

Personal Permissions

Manage Personal Views - Create, change, and delete personal views of lists.
Add/Remove Personal Web Parts - Add or remove personal Web Parts on a Web Part Page.
Update Personal Web Parts - Update Web Parts to display personalized information.


SharePoint Group - Site Visitor (Read)

When a SharePoint site is created, by default 3 SharePoint groups are created

Site Owners - Full control
Site Members - Contribute
Site Visitors - Read

Below are the permissions you get when you are a Site Visitor (Read)

List Permissions

View Items - View items in lists and documents in document libraries.
Open Items - View the source of documents with server-side file handlers.
View Versions - View past versions of a list item or document.
Create Alerts - Create alerts.
View Application Pages - View forms, views, and application pages. Enumerate lists.

Site Permissions

View Pages - View pages in a Web site.
Browse User Information - View information about users of the Web site.
Use Remote Interfaces - Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site.
Use Client Integration Features - Use features which launch client applications. Without this permission, users will have to work on documents locally and upload their changes.

Open - Allows users to open a Web site, list, or folder in order to access items inside that container. 

Wednesday, June 10, 2015

Error on deleting folder in SharePoint 2010 - The file is currently checked out or locked for editing by another user

Issue Description

Today I ran into an issue with the deleting a folder in a SharePoint 2010 document library. The folder was empty (viewed with admin account too), but could not be deleted. On clicking the delete button I got an error message

"The file is currently checked out or locked for editing by another user."


I tried all possible ways to delete it (Explorer mode, Datasheet Mode, Power Shell), but failed to do so.

Fix
1. Browse to Document library settings -> Manage files which have no checked in version



2. On this page I found there was a file under the folder I was trying to delete and this file was checked out to a 
user. Check for the folder name under the Location column and confirm it.

3. Take ownership of the document and check in or publish a major version for the document.



4. Delete the folder now. This will work ;-)

Tuesday, June 2, 2015

How to Unlock a site collection manually

1. Browse to SharePoint Central Administration.

2. On the Central Administration page, under Application Management, click Configure quotas and locks.

3. On the Site Collection Quotas and Locks page, select the site collection where you want to place a lock

4. In the Site Lock Information section, select Not Locked.

5. Click OK.


How to Lock a site collection manually

1. Browse to SharePoint Central Administration.

2. On the Central Administration page, under Application Management, click Configure quotas and locks.

3. On the Site Collection Quotas and Locks page, select the site collection where you want to place a lock

4. In the Site Lock Information section, select Adding content prevented or No access.

5. If you lock a site collection with Adding content prevented or No access, you must type an explanation in the Additional lock information box.

6. Click OK.


Monday, June 1, 2015

SharePoint 2010 - How to check Site Collection Quota Usage

This article explains how to check the storage quota of a site collection.

Note: You must be a site collection administrator to have access to this information

1. Select Site Actions and then Site Settings

2. On the Site Settings page under the Site Actions heading, select Site Collection Web Analytics Reports

3. On the left navigation below Inventory, select Storage Usage under the Inventory heading to view current and historical information about your storage quota and usage.

Note: Files in the recycle bin are included in the site usage. You must empty the recycle bin to free up that space. 



Friday, May 1, 2015

Powershell to list Content Database details for SharePoint Site Collection

Get the Content Database details for SharePoint Site Collection

Get-SPContentDatabase -Site 'http://sharepointsitecollectionurl/'


Id               : xxx1404-b716-xxxx-ba76-9746xxxx                                                                  
Name             : xxx                                                                                                       
WebApplication   : xxx                                                                                                                
Server           :           xxx                                                                                                       CurrentSiteCount : 1