Posts

Showing posts from April, 2016

SharePoint ULS log viewer tool comparison and verdict

Image
There has been some confusion on which SharePoint ULS log viewer to use when troubleshooting SharePoint issues. In May 2010, I blogged about the SharePoint 2010 ULS Log viewer published by Microsoft ( http://www.jeremytaylor.net/2010/05/03/sharepoint-2010-uls-log-viewer ). SharePoint 2013 Alert : In August 2014, I blogged about a re-released ULS Viewer for SharePoint 2013 enhanced by Microsoft. Read more about it here:  http://www.jeremytaylor.net/2014/08/27/uls-log-viewer-sharepoint-2013/ In this post, I have discussed all the ULS log viewer tools here with screenshots and my final verdict.. Lets list all the SharePoint ULS Log Viewers here first: SharePoint ULS Viewer by Dan Winter, Microsoft –  http://archive.msdn.microsoft.com/ULSViewer  (link no longer works!) SharePoint ULS Viewer by Stefan Gordon –  http://ulsviewer.codeplex.com SharePoint LogViewer by Overroot Inc –  http://sharepointlogviewer.codeplex.com SharePoint Log Reader by Tom Vervoort –  http://sharepo

ULS log viewer for SharePoint 2013

Image
Good news for all the on-premises SharePoint Infrastructure Admins and Developers. An improved ULS Log viewer for SharePoint 2013 has been released a few days ago. I was concerned for a couple of years that there wasn’t any movement on updating my number 1 favourite SharePoint tool. However, I did see a video where Bill Baer there was a hint of how bad the tool was and they’d do something about the tool.. so here it is – a new ULS Log Viewer…… Download it here: http://www.microsoft.com/en-us/download/details.aspx?id=44020 Some new features: 1. Monitor multiple servers simultaneously 2. Locate specific log entries via command line 3. Highlight and personalise the output if a filter match occurs Some fixes I have noticed: 1. More stability when working with the filters 2. Multiple fixes such as filtering on pause state Source:  http://blogs.technet.com/b/wbaer/archive/2014/08/22/uls-viewing-like-a-boss-uls-viewer-is-now-available.aspx Can we use it for SharePoin

Clear SharePoint cache

It may be necessary to clear the SharePoint cache, depending on the circumstance and symptoms such as unexpected results with timer jobs may occur. Clearing the SharePoint cache can be summaried by the following 4 steps: 1. Stop the Timer service on all servers in the farm 2. Backup the Cache.ini file on all servers in the farm 3. Delete XML files on all servers in the farm 4. Start the Timer service on all servers in the farm The steps in detail: 1. Stop the Timer service on all servers in the farm 1. To stop the timer service via PowerShell: Stop-Service SPTimerV4 2. To stop the timer service via the Services console. To do this, follow these steps: a. Click Start, point to Administrative Tools, and then click Services. b. Right-click SharePoint 2010 Timer, and then click Stop. 2. Backup the Cache.ini file on all servers in the farm 1. On the computer that is running Microsoft SharePoint Server 2010 and on which the Central Administration site is hosted, cli

Power Shell Send email with data in HTML Table format

# Create a DataTable $table = New - Object system . Data . DataTable "TestTable" $col1 = New - Object system . Data . DataColumn Name ,([ string ]) $col2 = New - Object system . Data . DataColumn Dept ,([ string ]) $table . columns . add ( $col1 ) $table . columns . add ( $col2 ) # Add content to the DataTable $row = $table . NewRow () $row . Name = "John" $row . Dept = "Physics" $table . Rows . Add ( $row ) $row = $table . NewRow () $row . Name = "Susan" $row . Dept = "English" $table . Rows . Add ( $row ) # Create an HTML version of the DataTable $html = "<table><tr><td>Name</td><td>Dept</td></tr>" foreach ( $row in $table . Rows ) { $html += "<tr><td>" + $row [ 0 ] + "</td><td>" + $row [ 1 ] + "</td></tr>" } $html += "</table>" # Send the em

Difference between ListItem.Update() and ListItem.SystemUpdate()

In this post I will explain differences between SystemUpdate and Update. It’s pretty much clear that we can upate list data programatically from SharePoint object model. Also, there are other ways of updating list data from client side with sharepoint exposed client api(client object model, ecma script or list webservices). We will see further what is difference Update vs SystemUpdate 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 using (SPSite siteObj = new SPSite( "http://mySiteCollection/mySite" ))           {              using (SPWeb webObj = siteObj.OpenWeb())              {                 SPList empListObj = web.GetList( "/lists/EmpList/" );             SPListItem empItem = empListObj.Items.Add();              empItem[ "Title" ] = "Emp1" ;          empItem[ "Department" ] = "Finance" ;          empItem.Update();          //empItem.SystemUpdate();          //empItem.Sy