25 July, 2009

An error has occured in Approval

I think, Workflow is the easiest part of SharePoint for anybody to use and especially the out-of-box workflows. Yesterday, One of the user in my project reported an error regarding workflow. The scenario was he set an approval workflow for himself and when he tried to approve it then he got an error message as follows:




When we set up an workflow for the document library and list, We usually follow these process :

-Go to Settings->Workflow Settings->Add Workflow
-Choose the Approval workflow from the list, make it start on item creation go to the second workflow page.
-Select the approvers asper your requirement and check "Update the approval status (use this workflow to control content approval)"
-Finish and the workflow has been set !!

And now the mystery begins and you will get an error as mentioned above. and now You will ask,why? So the keyword is "Approval" !!

This is an approval workflow which should among getting the approvals update the approval status of the document so, if you missed one tiny little step like setting the approval for the document library this simple task will fail at the end.

Resolution:-
-Just go to the document Library Settings
-Versioning Settings Page
-Set "Require content approval for submitted items to?" to yes and everything should be fine.

I hope the above information will helps you to overcome the above mentioned error message!!
Thanks!!!


18 July, 2009

How to find the template name of sharepoint site?

It is really very difficult to find out the name of the template after the site has been created but not now.. After lots of searching & googling, I found out one great post belongs to Mr.SP Raj who written this code and it is very successfull as i have tried this and i am able to find the names of the templates used by the site.

Please Follow this link and your issue will be Resolved:
http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/721bec39-2d32-4bbc-9094-a021a0d06dcb

List of MOSS 2007 Template ID Information
0 - GLOBAL (SetupPath=global) - "Global template"
1 - STS - "windows SharePoint Services Site", "Team Site", "Blank Site", "Document Workspace"
2 - MPS - "Basic Meeting Workspace", "Blank Meeting Workspace", "Decision Meeting Workspace", "Social Meeting Workspace", "Multipage Meeting Workspace"
3 - CENTRALADMIN - "Central Admin Site"
4 - WIKI - "Wiki Site"
7 - BDR - "Document Center"
9 - BLOG - "Blog"
20 - SPS (OBSOLETE) - "SharePoint Portal Server Site"
21 - SPSPERS - "SharePoint Portal Server Personal Space"
22 - SPSMSITE - "Personalization Site"
30 - SPSTOC (OBSOLETE) - "Contents area Template"
31 - SPSTOPIC (OBSOLETE) - "Topic area template"
32 - SPSNEWS (OBSOLETE) - "News area template"
33 - SPSNHOME (SubWebOnly) - "News Home template"
34 - SPSSITES - "Site Directory area template"
36 - SPSCOMMU (OBSOLETE) - "Community area template"
38 - SPSREPORTCENTER - "Report Center Site"
39 - CMSPUBLISHING (SetupPath=SiteTemplates\PUBLISHING) - "Publishing and Team Collaboration Site"
40 - OSRV (SetupPath=SiteTemplates\OSRV) - "Shared Services Administration Site"
47 - SPSPORTAL - "Corporate Intranet Site"
50 - SRCHCEN - "Search Center"
51 - PROFILES - "Profiles"
52 - BLANKINTERNETCONTAINER - "Internet Presence Web Site"
53 - BLANKINTERNET - "Publishing Site", "Press Releases Site", "Publishing Site"
54 - SPSMSITEHOST - "My Site Host"
90 - SRCHCENTERLITE (SetupPath=SiteTemplates\SRCHCENTERLITE) - "Search Center Lite"
6221 - PWA (SetupPath=SiteTemplates\PWA) - "Project Web Access Site"
6215 - PWS (SetupPath=SiteTemplates\PWS) - "Project Workspace"
14483 - OFFILE - "Records Repository", "Records Repository"

I Hope the above information will helps u to find the template name but if you face any problem then please let me know... Thanks!!!

13 July, 2009

Error message when you try to edit an Office document in a document library: "'Edit Document' requires a Windows SharePoint Services-compatible applic

When you try to edit a Microsoft Office document that is stored in a document library of a Microsoft Windows SharePoint Services Web site, you may receive one of the following error messages, depending on the version of Office that you are running.

2007 Microsoft Office suites:
'Edit Document' requires a Windows SharePoint Services-compatible application and Microsoft Internet Explorer 6.0 or greater.

Microsoft Office 2003 and earlier versions of Office :
'Edit Document' requires a Windows SharePoint Services-compatible application and Microsoft Internet Explorer 5.0 or greater.

you experience these symptoms if you click a Microsoft Word document in the document library, and then click Edit in Microsoft Office Word. Additionally, when you click New Document in the document library, you may receive the following error message:

The document could not be created. The required application may not be installed properly, or the template for this Document Library cannot be opened. Please try the following:

1. Check the General Settings for this Document Library for the name of the template, and install the application necessary for opening the template. If the application was set to install on first use, run the application and then try creating a new document again.

2. If you have permission to modify this Document Library, go to General Settings for the library and configure a new template.

This issue may occur if one or more of the following conditions are true:
-Microsoft Office XP or later is not installed on the computer.

-Office XP or a later version of Office is installed on the computer. However, the SharePoint support component that is included in Office Tools is not installed on the computer. That is, either Microsoft SharePoint Support or Windows SharePoint Services Support (as appropriate to your version of Office) is not installed on the computer.

-The Owssupp.dll file is not registered correctly in Microsoft Windows.

To resolve this issue, use one of the following methods, as appropriate for your situation.

If Office 2003 is installed on the computer, follow these steps:
-Click Start, and then click Control Panel.
-Click Add or Remove Programs.
-In the list of currently installed programs, click Microsoft Office 2003, and then click Change.
-Click Add or Remove Features, and then click Next.
-Click to select the Choose advanced customization of application check box, and then click Next.
-In the Choose update options for applications and tools box, expand Office Tools, click the down arrow next to Windows SharePoint Services Support, and then click Run from My Computer.
-Click Update.

If a 2007 Office suite is installed on the computer, follow these steps:
-Click Start, and then click Control Panel.
-Click Add or Remove Programs.
-In the list of currently installed programs, click Microsoft Office suite 2007, and then click Change.
-Click Add or Remove Features, and then click Continue.
-Expand Office Tools.
-Click the down arrow next to Windows SharePoint Services Support, and then click Run from My Computer.
-Click Continue.

Method 3: Register the Owssupp.dll file
Note For Office 2003 and Office 2007 an error occurs in steps 4 and 6. This error is benign and the appropriate modifications have occurred. The error message reads similarly to: "DllRegisterServer in C:\Program Files\Microsoft Office\OFFICE11OWSSUPP.DLL failed. Return code was: 0x80070716.

-Repair or reinstall Office 2003 or the individual Office 2003 program that is experiencing this issue.

For more information about Windows SharePoint Services, visit the following Microsoft Web site: http://technet.microsoft.com/windowsserver/sharepoint/default.aspx


Your client does not support opening this list with Windows Explorer.

When you try to open a folder in a Microsoft Windows SharePoint Services 3.0 document library in Explorer View, the folder does not open.

Specifically, this problem occurs when you connect to a document library in a Windows SharePoint Services 3.0 Web site by using Microsoft Internet Explorer. You browse a folder in the document library, and then you click Open with Windows Explorer on the Actions menu. However, nothing happens. Or, you receive the following message:
Your client does not support opening this list with Windows Explorer.

This issue occurs if the following conditions are true:
-You are using Microsoft Internet Explorer 6.
-The path of the folder contains more than 100 characters.

Workaround:
To work around this issue, use one of the following methods:
-Apply hotfix 325355 for Internet Explorer 6. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
325355 (http://support.microsoft.com/kb/325355/ ) You cannot access Word documents by using Outlook Web Access on a server that is running SharePoint Portal Server

-Use Windows Internet Explorer 7. For more information about Windows Internet Explorer 7, visit the following Microsoft Web site:
http://www.microsoft.com/windows/ie/default.mspx

I hope the above information will helps you to resolve your problem... Thanks!!!

11 July, 2009

The document could not be opened for editing. A Windows SharePoint Services compatible application could not be found to edit the document.

One of the user from my project reported that he was not able to edit as well as check out the office documents. When i tried to follow the same procedure (i.e. Edit, check-in, check-out) and strange thing was me also got the same error message. When i started my troubleshooting, I found out user created document library with multiple nested folders.

When we go to third or fourth level of the folder and try to edit any file with office application, we are getting an error – The document could not be opened for editing. A Windows SharePoint Services compatible application could not be found to edit the document. However if we try to edit the document uploaded on the root of the document library, we can edit it properly.

I tried reproduced the issue 2-3 times and found out one common thing and that is: You cannot edit the office document once the URL path reaches characters limit 340. You can edit the documents only till URL path length is up to 339 characters. You can open the documents, you can upload documents but you can't edit them by right click on document and click on "edit in Microsoft Word". Even this behavior is same with non-office documents also like text documents.

Workaround:
The only workaround possible is - open the file directly from the folder, modify and save it as a new file. Every time you need to save it as a new file. It won’t allow to save in the existing file. Or, Move the file one level up and you will be able to do all the operations like edit, check-in and check-out too.


I hope the above information helps you to resolve your problem and time also!! Thanks!!