RSS

Category Archives: Sharepoint

SharePoint 2013 – “Working on it” Slow pages

Many of my customers were escalating a common issue as they always “every day morning SharePoint 2013” will be slow at first time, but after that the performance of SharePoint 2013 pages are good. Their system engineers have done some googled and added the Curl URL and other techniques to resolve the issue. One point of time, this issue was escalated to me and I explained them what is happening when sharepoint 2013 shows “working on it”. First I asked them to enable Javascript debugging/error popups.The /_layouts/15/start.aspx page was stuck on “working on it” forever, with a javascript error:

Almost every page in SharePoint threw this error. A bit of JavaScript debugging revealed that SharePoint is trying to use window.localStorage object, which was the root cause for this error. In order to resolve this issue, we need to disable the local storage feature. Go to internet options –> advanced, scroll down to “Enable DOM Storage” and uncheck it’s checkbox.

This might not suitable for all the cases. But I would recommend you to enable the javascript debugging/error popups to find what is the root cause for your situation before you apply any remediation that are recommended in the internet.

 
1 Comment

Posted by on April 6, 2015 in Sharepoint

 

Office 2007 & 2010 documents in the SHAREPOINT 2007 Search Results

SITUATION:

One of our SharePoint 2007 user were compliant that the search results are not showing the documents. There was some inconsistent in the search results as it was not showing the documents for the keyword we provided although that keyword exists in the document.

CAUSE:

I started to investigate the issue by looking at the crawl log. The crawl log was looks promising as it shows successfully crawled on all the documents in that document library. But search results does not show the correct results.
Initially, I thought this could be related to the “EnableOptimisticTitleOverride” as most of the documents title were same. So, I made the proper entries in RegEdit and restarted the full crawl. Still no luck!
This confirmed that there were issues with the documents title. So, I changed the XSLT of “Search Core Results” webpart to see the raw XML search results.

<xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform&#8221; >
<xsl:output method=”xml” version=”1.0″ encoding=”UTF-8″ indent=”yes” />
<xsl:template match=”/”>
<xmp><xsl:copy-of select=”*”/></xmp>
</xsl:template>
</xsl:stylesheet>

I could not find the correct results for the given keyword in the raw XML output from Search Component. Hence, I have confirmed that there were no problem with displaying the search results.I had a question in my mind that does the crawler really indexed the documents in that particular document library. Although the crawl log shows it was successfully crawled/indexed the documents, but I still would like to know the crawl job successfully indexed the documents.

So, I have started writing a tool (MOSSSearch) to check & see whether the crawled database contains the correct results at least. I made sure this tool should accept the input parameters from the administrators, build the SQL and query against the database.
Using this tool, I have concluded that crawled database does not contains the correct documents for the query keyword.

Then, I remember that we had setup this SharePoint 2007 environment back in 2009 and that time users were using Windows XP and Office 2007. We were installed Office 2007 FilterPack for indexing Office 2007 documents. But late in 2013, all our desktops have been migrated to Windows 7 with office 2010. Now, everyone is using the office 2010 documents and uploading them to the SharePoint 2007. But we had Office 2007 filterPack in that environment. Although SharePoint 2007 crawl log shows that Office 2010 documents were crawled/indexed successfully, but reality situation is SharePoint 2007 Crawler could not index the Office 2010 documents using Office 2007 filterPack.

RESOLUTION:

I have installed the Office 2010 filterPack (http://www.microsoft.com/en-us/download/details.aspx?id=17062) with SP2 (http://support.microsoft.com/kb/2687447) and then restarted the OSearch (net stop osearch & net start osearch). The Search Results were showing the correct results which contains office 2007 & office 2010 documents.

 
Leave a comment

Posted by on July 30, 2014 in Sharepoint

 

Script Browser add-in for PowerShell ISE

Microsoft has released a Script Browser add-in for PowerShell ISE to reuse script samples on the Internet, the following steps seem quite familiar to IT Pros: wandering through different script galleries, forums and blogs, switching back and forth between webpages and scripting environment, and countless download, copy and paste operations.

You can download the Script Browser add-in from here:http://www.microsoft.com/en-us/download/details.aspx?id=42525

 
Leave a comment

Posted by on May 13, 2014 in Sharepoint

 

SharePoint: You can not upload files that are larger than 28 MB on a Windows Server 2008

One of my colleague was trying to troubleshoot the issue on uploading a large document into the newly built web application/farm. After I digg into the issue and found out that they have installed & configured the SharePoint 2007 on Windows 2008 R2.

So, we have to add the requestFiltering and maxAllowedContentLength elements in the web.config file to allow the user to upload the documents that are larger than 28MB. For more information, please refer the below Microsoft KB article.

http://support.microsoft.com/kb/944981

 
Leave a comment

Posted by on May 29, 2013 in Sharepoint

 

Slow I/O in SQL Server

Most of the users does not know the Slow I/O could cause the SharePoint performances. The poor disk performance can cause the major impact on the SharePoint performance. One of the troubleshooting method would be use a Performance Monitor with counter measures to get a good picture of health of the disk I/O subsystem and any latency SQL Server is experiencing from its poor performance.

Microsoft had released a tool called “SQLIO Disk Subsystem Benchmark Tool” which can also be used to determine the I/O capacity of a given configuration. Also, you can use a tool such as IOMeter or sqlio.exe–both of which are freely downloadable–to benchmark the I/O performance of a disk.

You can download it from here: http://www.microsoft.com/downloads/details.aspx?familyid=9A8B005B-84E4-4F24-8D65-CB53442D9E19&displaylang=en

For more information: http://support.microsoft.com/kb/231619

Microsoft Engineer had posted a blog entry on Troubleshooting the Slow I/O in SQL Server. You can check his blog entry here: http://blogs.msdn.com/b/askjay/archive/2011/07/08/troubleshooting-slow-disk-i-o-in-sql-server.aspx

 
Leave a comment

Posted by on September 12, 2012 in Sharepoint

 

Cleanup document versioning in SharePoint 2007

Customers always would like to keep store their all document versions but they don’t know how much space would take to keep storing the versions on the document.Document versions are always a bottleneck for the SharePoint administrators interms of sizing the quota limit.

Mike Mukalian had written an excellent powershell script to delete all the versions of document/files in the document library. For more information, please take a look at his blog entry.

http://www.mukalian.com/blog/post/2011/04/10/PowerShell-Script-to-Delete-All-Versions-in-a-Document-Library.aspx

Also, SP administrators would always like to automate this operation on a periodical schedule. In order to do that,  1. Create a scheduled task to run the script nightly/your own schedule and configure Powershell permissions on the server (run Set-ExecutionPolicy RemoteSigned from a Powershell prompt).

 

 
Leave a comment

Posted by on August 13, 2012 in PowerShell, Sharepoint

 

WebClient service hang in the Stopping State

One of my customer had reported that she could not open the SharePoint document library folder from the shortcut. Actually, she created a shortcut for the document library explorer view. Some reasons she could not open the document library explorer view from the shortcut but she can able to access the site and able to open the explorer view from the URL.

After I digg into her machine and found out that WebClient Service was hang in the stopping state. I could not even stop/start the service using net command. Finally, I had to kill the process associated with the webclient service to stop the service and restart it afterwards.

Here is the command, I have used to kill the process associated with the webclient service.

taskkill /fi “imagename eq svchost.exe” /fi “Services eq WebClient” /F

Once I killed the process, I have restarted the service using net command.

Net start webclient

The issue has been resolved after I killed the process associated with WebClient and restarted the WebClient Service.

 

SYMPTOMS: 

User not able to access the SharePoint Explorer View or Shortcut created on top of SharePoint Explorer View.

CAUSE:

WebClient Service might be stopped or hang in the stopping state

RESOLUTION:

1. Kill the process associated with the WebClient Service

taskkill /fi “imagename eq svchost.exe” /fi “Services eq WebClient” /F

2. Restart the WebClient

Net start webclient

 

Hope this helps.

 
2 Comments

Posted by on August 8, 2012 in Office Integration, Sharepoint