Various improvements have been made to network performance in SharePoint 2013.
One of the key improvements is known as Minimal Download Strategy. From Introduction to Minimal Download Strategy in SharePoint 2013: "Minimal Download Strategy is a new feature in SharePoint 2013 that improves client rendering performance and fluidity when navigating from page to page by download only the changes between two compatible pages. Fewer bytes will be downloaded and the page will appear more quickly."
Sites running with Minimal Download Strategy (enabled by default for SP2013 team and community sites) only load the master page and layout once. To compare, in SP2010, navigating to a sub-folder in a document library will cause the entire page to load again. In our existing SP2010 site, the core layout and master page takes up 48Kb of bandwidth on each load, plus whatever the content of the actual page is (such as a document library, which is about 25Kb per page). If you navigate to five pages within a site on SP2010, that uses around 350Kb of bandwidth. In SP2013, this would be 170Kb.
In my tests on my own connection to the SP2010 server, a 70Kb page took on average 1113ms to display, which works out at 16ms per Kb. For 20 typical page loads in SP2010, this would be 22.4 seconds of network usage. In SP2013 (in theory), this would be reduced to 8.7 seconds of valuable network usage.
(Please note that these tests are certainly not controlled and comprehensive, but give a general idea of the improvements that Minimal Download Strategy can bring.)
Other improvements to WAN performance are improved image compression, and faster response time to incoming requests (up to 50% in some tests). In other tests carried out by Microsoft (see Testing WAN connections for SharePoint 2013 architectures) on a connection between Redmond and Beijing showed a 10Mb ZIP file taking 53-140 seconds to upload to SP2010, but only taking 49-63 seconds to upload in SP2013.
Also worthy to note is the improved document library synchronisation. This did exist in SP2010 using SharePoint Workspace, but I found this to be incredibly buggy and difficult to use when working with large teams. Since SP2013 uses SkyDrive Pro (included with Office 2013), SharePoint document libraries can be completely synced onto a user's computer for offline use. This can be used for an individual's personal work documents (in which case, the files are synchronised to the user's MySite on SP2013), or for a team to collaborate on documents as a group. SkyDrive is already considered a worthy competitor to other services such as Dropbox and Google Drive for personal use, and this SP2013 integration brings that functionality to a business as well. (See also: Overview of SkyDrive Pro in SharePoint Server 2013)
To bring this all back to the end user, these improvements, plus the new look and feel (with better tactile response and more interactive page layouts) can help the SP2013 site seem almost instant and easier to use.
Friday, May 31, 2013
Thursday, May 30, 2013
How to sell SharePoint 2013 to a steering committee
A few weeks ago, I was asked to prepare a presentation on the reasons we should upgrade our SharePoint 2010 environment to SharePoint 2013. It wasn't enough to simply say "it looks pretty", but that was obviously (what I thought) a key selling point, as the presentation was to be delivered to non-technical decision makers. My presentation included a look at the improved social computing features, an improved way of deploying new custom developments (or apps), and one final slide just summarising some of the new technical features - Translation Services, Workflow Services, and "Minimal Download Strategy".
It turns out that the greatest interest from almost everyone at the table was these three technical points. The look and feel? Not of interest to most people, as we already have a heavily-customised and branded master page. Others didn't like the social element at all. But the last slide was the strongest for them, and I learnt from that to focus more on these parts.
I decided to carry out more research on these technical features to better sell the product. Sure, the end users will probably appreciate the new user interface and ease of use, but if the business owners don't see a benefit, the users will never get to use it.
The next few posts will be my semi-technical findings on:
It turns out that the greatest interest from almost everyone at the table was these three technical points. The look and feel? Not of interest to most people, as we already have a heavily-customised and branded master page. Others didn't like the social element at all. But the last slide was the strongest for them, and I learnt from that to focus more on these parts.
I decided to carry out more research on these technical features to better sell the product. Sure, the end users will probably appreciate the new user interface and ease of use, but if the business owners don't see a benefit, the users will never get to use it.
The next few posts will be my semi-technical findings on:
- Minimal Download Strategy (or, more generally, network performance improvements)
- Translation Services
Hopefully someone else researching SP2013 will find some interest in these features and help them also sell a very promising product upgrade.
Wednesday, May 29, 2013
Changing a name in SharePoint People Picker using PowerShell
The company I work for has recently acquired another business, and the migration process for getting their Active Directory users into our Active Directory has resulted in duplicate accounts for the same person. Sometimes the duplicate account is on a different domain, but often it's the same domain, resulting in confusion when there is a need to select a user from the People Picker.
One option to resolve this is to simply delete the SPUser. However, I don't like deleting things. There is always a chance this could have adverse effects somewhere else, and there's also the higher chance that the SPUser will just be recreated when something occurs in the Active Directory. So, I've opted for another solution, which is to simply change the DisplayName of that erroneous account to something obvious (such as "Do not use").
Eventually, these duplicate accounts will be deleted from the Active Directory, which makes me more confident in deleting the SPUsers too, but until then, this will have to do.
Set-SPUser -Web http://sharepoint -Identity "domain\duplicateuser" -DisplayName "Do Not Use"
One option to resolve this is to simply delete the SPUser. However, I don't like deleting things. There is always a chance this could have adverse effects somewhere else, and there's also the higher chance that the SPUser will just be recreated when something occurs in the Active Directory. So, I've opted for another solution, which is to simply change the DisplayName of that erroneous account to something obvious (such as "Do not use").
Eventually, these duplicate accounts will be deleted from the Active Directory, which makes me more confident in deleting the SPUsers too, but until then, this will have to do.
Set-SPUser -Web http://sharepoint -Identity "domain\duplicateuser" -DisplayName "Do Not Use"
Friday, April 26, 2013
Periodic "Unable to display this web part" error
For a few of my SharePoint sites, the "landing page" contains multiple data view web parts. These simply display a filtered view of a document library or list on the same site.
Occasionally, when browsing to these sites, the web parts won't display. The error is:
Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator. (Correlation ID provided)
Doesn't tell me much. I took the correlation ID and trawled through my SharePoint logs. I found this exception:
Error while executing web part: System.StackOverflowException: Operation caused a stack overflow. at Microsoft.Xslt.NativeMethod.CheckForSufficientStack() at <xsl:template match="FieldRef[@ListItemMenu]" name="FieldRef_Menu_PrintFieldWithECB" mode="PrintFieldWithECB">(XmlQueryRuntime , XPathNavigator , XPathNavigator , Double ) at <xsl:template match="FieldRef" name="FieldRef_printTableCell_EcbAllowed" mode="printTableCellEcbAllowed">(XmlQueryRuntime , XPathNavigator , XPathNavigator , String ) at <xsl:template match="Row" mode="Item">(XmlQueryRuntime , XPathNavigator , IList`1 , IList`1 , Double , Double ) at <xsl:template match="View" mode="RenderView">(XmlQueryRuntime , XPathNavigator ) at <xsl:template match="View" mode="full">(XmlQueryRuntime , XPathNavigator , String ) at <xsl:template match="View" name="View_Default_RootTemplate" mode="RootTemplate">(XmlQueryRuntime , XPathNavigator , String ) at <xsl:template match="/">(XmlQueryRuntime ) at Root(XmlQueryRuntime ) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter) at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.ExecuteTransform(XslCompiledTransform xslCompiledTransform, XsltArgumentList xmlArguments, Boolean bDeferExecuteTransform) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.PrepareAndPerformTransform(Boolean bDeferExecuteTransform)
A bit of Googling took me to a Technet post (http://social.technet.microsoft.com/Forums/en-US/sharepointgeneralprevious/thread/1a38bdff-e40a-4e50-a2e8-47cbcb31cc6b/) which suggested that this issue may be caused by a timeout issue. By default, the timeout setting is set to one second, which (in my opinion) isn't very generous. The following PowerShell command checks the current timeout setting:
$farm = Get-SPFarm
$farm.XsltTransformTimeOut
To change this to five seconds, which is more reasonable:
$farm = Get-SPFarm
$farm.XsltTransformTimeOut = 5
$farm.Update()
My hesitation with any sort of farm update is that this will cause an IIS recycle or other temporary downtime. Fortunately, this had no effect that I could see. I've not seen the Web Part error since.
Thursday, April 25, 2013
Managed metadata column is empty, even though it can be filtered
We experienced a peculiar problem with a SharePoint list today. One of the columns in the list is a managed metadata column, which allows the administrator of this site to add terms themselves.
Although the user could browse the metadata and create new terms, the document library view showed no data in this column. Viewing the document properties showed the terms correctly, so the data was being saved, but it just didn't show up in the view.
What made this even more peculiar is that you could still filter by that column, and the filter worked correctly - it just didn't show anything in the column. This didn't affect farm administrators, only end-users.
It didn't take much searching the web to find a solution (thanks http://social.technet.microsoft.com/forums/en-US/sharepointadminprevious/thread/f647f47f-a51a-49b7-8dca-4d2f67644b9c) but it seemed worthy of mention here.
It appears that when an end-user adds a term to managed metadata, a hidden list (called TaxonomyHiddenList) is updated with the new term added as a new list item. The TaxonomyHiddenList is found at http://sharepoint/Lists/TaxonomyHiddenList (where "sharepoint" is the root site collection). The permissions for this list were not inheriting from the root site collection, so only SHAREPOINT\system had access to this list.
I added NT AUTHORITY\authenticated users with Read access to the list, and the problem mentioned above instantly vanished, and the managed metadata column was populated.
Although the user could browse the metadata and create new terms, the document library view showed no data in this column. Viewing the document properties showed the terms correctly, so the data was being saved, but it just didn't show up in the view.
What made this even more peculiar is that you could still filter by that column, and the filter worked correctly - it just didn't show anything in the column. This didn't affect farm administrators, only end-users.
It didn't take much searching the web to find a solution (thanks http://social.technet.microsoft.com/forums/en-US/sharepointadminprevious/thread/f647f47f-a51a-49b7-8dca-4d2f67644b9c) but it seemed worthy of mention here.
It appears that when an end-user adds a term to managed metadata, a hidden list (called TaxonomyHiddenList) is updated with the new term added as a new list item. The TaxonomyHiddenList is found at http://sharepoint/Lists/TaxonomyHiddenList (where "sharepoint" is the root site collection). The permissions for this list were not inheriting from the root site collection, so only SHAREPOINT\system had access to this list.
I added NT AUTHORITY\authenticated users with Read access to the list, and the problem mentioned above instantly vanished, and the managed metadata column was populated.
Wednesday, April 17, 2013
View size of all document libraries using PowerShell
Quick and dirty post this time around. This PowerShell script will analyse all document libraries in a site collection and dump the results in a (very basic) comma-seperated text file called output.txt. The size will be in KB.
$sitecol = Get-SPSite -Identity http://sharepoint
foreach($site in $sitecol)
{
foreach($s in $site.AllWebs)
{
foreach($l in $s.lists)
{
if($l.BaseType -eq "DocumentLibrary") {
$listSize = 0
foreach($item in $l.items) {
$listSize += ($item.file).length
}
$filesize = [string][Math]::Round(($listSize/1KB),2)
$title = $filesize + "," + $s.Title + ":" + $l.Title
$title >> "output.txt"
}
}
$s.Dispose()
}
}
$sitecol = Get-SPSite -Identity http://sharepoint
foreach($site in $sitecol)
{
foreach($s in $site.AllWebs)
{
foreach($l in $s.lists)
{
if($l.BaseType -eq "DocumentLibrary") {
$listSize = 0
foreach($item in $l.items) {
$listSize += ($item.file).length
}
$filesize = [string][Math]::Round(($listSize/1KB),2)
$title = $filesize + "," + $s.Title + ":" + $l.Title
$title >> "output.txt"
}
}
$s.Dispose()
}
}
Wednesday, April 10, 2013
Filtering rows in SharePoint Designer not working
I had an issue with SharePoint Designer which left me quite frustrated yesterday. Today, a colleague mentioned something from his experience which fixed the problem, and made me hate SharePoint Designer even more.
I needed to create a document library view that used a query string as a parameter. Having done this multiple times, I didn't expect any issues. However, in this instance, the filter did not work. It simply showed no items (even though I could clearly see the item I wanted to filter in SharePoint proper, and even filter the column in the usual way in the web browser).
To test, I created a new document library, new view and new filter - this worked perfectly. After spending a few hours trying to figure this out yesterday, I asked my office buddy to look over my shoulder and see if I'm doing something wrong.
He mentioned that, from his experience, if you click in the column name in SharePoint Designer and assign a Filter from there, it never works. But if you click on the actual document library content (in SharePoint Designer) and click Filter, it does work.
Seemed too simple to be the issue, but sure enough, that's exactly what it was.
So, if you're trying to filter a list or library in SharePoint Designer, DON'T click on the column header to set up a Filter (even though it gives you the option to do so). Click on an item row instead.
I needed to create a document library view that used a query string as a parameter. Having done this multiple times, I didn't expect any issues. However, in this instance, the filter did not work. It simply showed no items (even though I could clearly see the item I wanted to filter in SharePoint proper, and even filter the column in the usual way in the web browser).
To test, I created a new document library, new view and new filter - this worked perfectly. After spending a few hours trying to figure this out yesterday, I asked my office buddy to look over my shoulder and see if I'm doing something wrong.
He mentioned that, from his experience, if you click in the column name in SharePoint Designer and assign a Filter from there, it never works. But if you click on the actual document library content (in SharePoint Designer) and click Filter, it does work.
Seemed too simple to be the issue, but sure enough, that's exactly what it was.
So, if you're trying to filter a list or library in SharePoint Designer, DON'T click on the column header to set up a Filter (even though it gives you the option to do so). Click on an item row instead.
Subscribe to:
Posts (Atom)