Pages

Thursday, January 29, 2009

SharePoint Auditing

SharePoint out of the box auditing features is giving us very good functionalities for keeping track of opening or downloading documents, deleting or restoring items, editing users and permissions and many more, by default its turn off on top site collection level. 

Configuring Settings for Auditing

The following screenshot shows that how we can configure audit settings from main top level site collection-> site settings-> configure audit settings. 



 
 configure-audit-settings

 

 

Viewing Reports for Auditing

 
The following screenshot shows the various auditing reports available to administrators, who can view them through top-level site settings.   

view-auditing-reports
 
When we clicked on any of the above reports, it will generate XML excel document which we can save to local disk or open for viewing purpose. 

 



Limitation for audit reports:

1. the generated XML excel document report don’t have user friendly data, like in “Event Data” column, it will display user id, group id instead of friendly user name and group name, it showing site collection GUID instead of Site Collection name and many more.

2. For viewing of auditing reports, user needs site collection administrator’s rights and user can see reports from going to top level site collection. 


 



3. If we have large server farm with plenty of SharePoint sites under one site collection level, then at some point, we can have performance issue due to tracking all users’ requests for audit purpose. 

We can write custom code into visual studio and generate audit log reports as per our requirements.


I have also searched on the internet for tool and web part to display and capture audit trail reports from SharePoint.

Here is link for useful AvePoint tool for SharePoint auditing

http://www.sharepointreviews.com/component/content/article/69-sharepoint-auditing/210-DocAve-Auditor-for-SharePoint-by-AvePoint.html 

Below are some good useful links which talks about how to configure auditing, viewing reports and how to write custom code for generating user friendly reports.
 

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spauditentry.aspx SPAuditEntry Class which will use for writing custom event data into audit report.

http://msdn.microsoft.com/en-us/library/bb397403.aspx Item Level Auditing in SharePoint 


http://www.developer.com/net/net/article.php/3755726  Source code for custom audit log reports 
 


 

http://office.microsoft.com/en-us/sharepointserver/HA101000051033.aspx how to view audit log reports

http://msdn.microsoft.com/en-us/magazine/cc794261.aspx custom auditing 

Monday, January 26, 2009

Working with SharePoint meeting workspace site

From last 3 weeks, I have been working in SharePoint meeting workspace site, so thought to share with you some of the experience and what’s actual inside into meeting workspace site.


 Our main purpose was to create calendar event into SharePoint and store meetings documents and agenda for respective meeting into central location repository, so anybody can go into meeting workspace with proper permissions rights and browse through the documents uploaded and approved by meeting organizer, meeting workspace is working in same manner like outlook calendar, we can create recurring event, single day event and add attendees, agenda for the meeting and upload documents.


In traditional outlook meeting, organizer has to send documents, agenda to attendees by e-mail, so they were no central repository for all work items and documents.


 


We had met our requirements by out of the box functionality provided by SharePoint Meeting workspace site template. We can also do custom coding into meeting workspace as per our needs.


 


Below are some useful links which I had followed while starting working on meeting workspace. It’s very beginner’s level information.


 


http://office.microsoft.com/en-us/outlook/HP030921661033.aspx Overview about meeting workspace site


 


http://office.microsoft.com/en-us/sharepointtechnology/HA100656201033.aspx Creating meeting workspace site


 


http://community.bamboosolutions.com/blogs/sharepoint_blank/archive/2008/10/31/create-a-sharepoint-meeting-workspace.aspx How to create and start with meeting workspace site


 


http://office.microsoft.com/en-us/outlook/HA012304711033.aspx#2 Create, Link and Update meeting workspace site.


 


http://communityclips.officelabs.com/video.aspx?videoid=601655a8-2111-4406-821d-690f2fce6b35 creates recurring meeting workspace and connects to Outlook


 




I had also faced some of the challenges while working into meeting workspace

1. we can’t link to an existing meeting workspace that contains recurring events, like when we create any new calendar event into SharePoint, we can specify that current event will be recurring or not, after that we can create new meeting workspace subsite for storing all documents, agenda items and attendees, we have the option to link current site with existing meeting workspace site in which there was no recurring event, but we cant link to existing recurring meeting workspace site. So conclusion of the story, we need to create separate meeting recurring workspace site if we want our recurring dates and agenda different from existing one.

 


2. Meeting workspace site has some limitation with office 2003, we can also create new meeting workspace site from outlook calendar by creating new calendar event, select invites, here we have two options, either we can link to existing meeting workspace or create new workspace site, but in both the case, the meeting organizer needs to have full control to the Meeting Workspace from SharePoint site, with the full control rights, they can achieve the functionality from outlook 2003.

Thursday, November 20, 2008

Value does not fall within the expected range error while check-in of document

I was getting error while check-in of document from document library into SharePoint interface. Actually I have created Meta data fields and attached to document, I was able to check-in document from office application like word, but if I check-out and check-in same document from document library interface then I was getting error "Value does not fall within the expected range".

I tried looked into event log, but didn't find any good information then I found below error from SharePoint Logs.

Error into log file:

Application error when access /_layouts/Checkin.aspx, Error=Value does not fall within the expected range.   at
Microsoft.SharePoint.SPFieldCollection.GetFieldByInternalName(String strName, Boolean bThrowException)     at
Microsoft.SharePoint.SPFieldCollection.GetFieldByInternalName(String strName)     at Microsoft.SharePoint.SPListItem.get_MissingRequiredFields()     at
Microsoft.SharePoint.ApplicationPages.Checkin.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

Solution:

By looking at the error, I thought that issue was only because of meta fields column name and as we know internal name and display name is different for each column, I also found on the internet regarding same error saying that its because of  misspell name attribute into schema.xml file.

Then by looking and comparing each field I have found out that, by mistaken I added one extra equal(=) to end of my field name, by correcting my column name, my problem gets resolved and was able to successfully check-in document from SharePoint interface also.

SharePoint Logs – Tracing service lost trace events

Some time, my SharePoint logging didn’t work properly for some reason, if I looked into my SharePoint Logs directory then in every generated log file, I have found below lines.

Date and time        wsstracing.exe        (0x07E4) 0x1634         ULS Logging  Unified Logging Service uls1        Monitorable              Tracing Service lost trace events.           Current value 8.

Solution:

I need to restart my logging service, SharePoint uses "Windows SharePoint Services Tracing" service for writing logs into ULS logs, so I went to services and restarted my "Windows SharePoint Services Tracing" services, once I did that, a new logs was created into SharePoint logs file. I also found out that might be this errors showed due to upgrade of service pack 1.

Tuesday, November 18, 2008

Crawling of PDF document from SharePoint search

I had issue while crawling of our SharePoint sites, I was getting error for the outlook message file in which there were embedded PDF document.

Errors which I was getting into crawl log:
1. The filtering process could not be initialized. Verify that the file extension is a known type and is correct
2. Error HRESULT E_FAIL has been returned from a call to a COM component.

I have found on the internet that I have to install extra filter into server which will search and crawl for PDF files, there are 2 free filters available. One is from Adobe Ifilter 6.0 and one from Foxit Filter.

I tried to play with both filter but I was getting error into PDF and message file, I know, I was missing in some little configuration and installation of something.

At the last, I have found one very good and important link, as per that link, Adobe has not created any separate iFilter for PDF file types after Adobe Reader 7 version.

So they suggested us to installed Adobe Reader 8 or reader 9 version into our server, because after reader 7, Adobe package iFilter functionality into same software as plugs-in.

So after doing configuration from below links, I got the success, now I am able to crawl message file and PDF documents from the SharePoint sites.

MAIN IMPORTANT LINK:

http://nhmn.com/blogs/pointedman/PointedPost/08-05-21/How_to_Correctly_Configure_pdf_i-Filter_for_SharePoint_2007.aspx?ReturnURL=%2fblogs%2fpointedman%2fPointedPost%2f08-05-02%2fSharePoint_SSPScopeDeploy_for_MOSS_launched.aspx&BlogTagID=7249c096-182f-4abb-9420-ea7a21659377

Good Reference Links.

http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611&promoid=DNRLI (all about Adobe PDF IFilter v6.0) 

http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows (Different products from Adobe)

http://blog.tylerholmes.com/2008/04/walkthrough-installing-adobe-v6-pdf.html ( How to install Adobe filter)

http://downloads.fuxinsoftware.com.cn/pub/foxit/manual/enu/FoxitPDFIFilter10forMOSS_manual.pdf (Manual for Foxit Filter)