Friday, November 18, 2011

Unable to move Content Editor Webpart from one place to other

Issue

While moving the Content Editor web part from one place to another We get the following error message "Error On page" on the Bottom left of the IE.

 Or

 After moving the content Editor web part , when we click Exit edit mode . It gives "Unexpected error has occurred".

Cause

This usually happens whenever we copy the HTML code from one Content Editor web part to another. When we copy the HTML code it also copies the Web part ID and it conflicts.

Resolution

Open the Site in Firefox\Chrome browser as IE will not give you the Drop down to edit the webpart

Modify the Content Editor Web part

Open the Source Code

Remove the following Tag from the code for eg:- "id=WebPartWPXX WebPartID="XXXX-XXXX-XXXX-XXXX-XXXXXXXX"

Click Apply - OK

You can then move the web parts without any issues

Workflow Error: "An error has occurred in Approval"

It’s not a known issue But it’s more of a Setup error

 We have the SharePoint OOB Approval workflow which can be attached to a document library to start whenever a new document gets created and get the required approvers to review and approve the document for publishing.

 It is a very easy task to set-up this workflow

 Steps to setup a workflow :

 For a document library or list , 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 and check "Update the approval status (use this workflow to control content approval) "

 Finish and create a document in the library.

 Although this might seem as an easy straightforward task the workflow might after all still end-up in error:

  Error  System Account  An error has occurred in Approval

 Cause : Because This is an approval workflow

 which should update the approval status of the document Also

 if you missed one step like setting the approval for the document library this simple task will fail at the end.

 The workflow will start and run flawlessly until the end when it will try to update the approval status.

 If this setting is set to not to require content approval it will fail to update it hence throwing the above error.

 So, if you encounter this, just go into the document library settings and go to Versioning Settings Page

 Set "Require content approval for submitted items " to yes and everything should be fine.

Updating SharePoint list by using InfoPath form

Step 1: Create the list


1. Create a new custom list named: MyContacts
2. From the Settings button choose List Settings
3. Click Create Column
4. Add the following columns/data types:
• FirstName, Single line of text
• LastName, Single line of text
• Email, Single line of text
• Phone, Single line of text


The next step is to create a Collaborative Application Markup Language (CAML) template that contains the same XML nodes as the columns we added to our list – this will be used as a secondary data connection in the InfoPath Form Template.


Step 2: Create the CAML template


1. Launch Notepad (or any text editor)
2. Copy and paste the following code to the Notepad document:
<?xml version="1.0" encoding="UTF-8"?>
<Batch OnError="Continue">
    <Method ID="1" Cmd="New">
        <Field Name='Title'></Field>
        <Field Name="FirstName"></Field>
        <Field Name="LastName"></Field>
        <Field Name="Email"></Field>
        <Field Name="Phone"></Field>
    </Method>
</Batch>
3. Save this as: Add List Item Template.xml

Step 3: Create the InfoPath Form Template


1. Create a new, blank, browser-compatible form template
2. Add a “Receive” type secondary data connection to the Add List Item Template.xml file created in Step #2. (Make sure the options “Include the data as a resource file in the form template” and “Automatically retrieve data when the form is opened” are enabled.)
3. Add a “Receive” type secondary data connection to the “MyContacts” SharePoint List created in Step #1 and make sure the option “Automatically retrieve data when the form is opened” is enabled.
NOTE: Be sure to include the “Title” field along with the custom fields we created.
Each SharePoint list is created with a unique identifier called a GUID. In order to submit items to a SharePoint list, you must know the unique GUID for that list. These next steps will enable you to identify the GUID for your “MyContacts” list.


Step 4: Identify the list GUID


1. Open a browser and navigate to the MyContacts list
2. From the Settings menu choose List Settings
3. In the browser’s address bar you will see the URL appended with “List=”

 
4. Copy everything after the equals sign and paste this into a text editor as we will need this value later on.
NOTE: We will need the list GUID to be formatted as “{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}”. If your GUID appears as above with the hyphens and braces “escaped” (i.e. %7B for the braces and %2D for the hyphens) then you will need to replace the escaped characters with the braces and hyphens so when we use this GUID later, it will appear as: {0D73FBB5-88E1-4435-B607-51ADC5DA6D58}


Step 5: Add controls to the InfoPath Form Template


1. Open the Data Source Task Pane
2. From the Data Source dropdown box choose the “MyContacts” connection


3. Right-click on “MyContacts” and choose Repeating Table – this will add a repeating table bound to that connection to your View
4. From the Data Source dropdown box choose Main
5. Add a text box to the “myFields” node named: ListName and set the Default Value property to the GUID value of your list – we will use this node to specify the list when we perform the Submit operation



To update the SharePoint list we will be using the “UpdateListItems” method of the SharePoint “lists.asmx” web service. This web method requires a couple of parameters (the list name and what gets updated) – now that we have added the “ListName” node which contains the GUID and we have the Add List Item Template XML data connection which describes our data structure we have all the necessary information to add the “UpdateListItems” web method!


Step 6: Add the “lists.asmx” web service


1. Add a new “Submit” type of web service data connection to the “lists.asmx” web service – this is typically located at: http://servername/_vti_bin/lists.asmx
2. Select the “UpdateListItems” operation
3. Double-click the “listname” parameter and assign the “my:ListName” node as the value


4. Double-click the “updates” parameter, select the “Add list Item Parameter” data source, select “Batch” and click OK
5. For the “Include” option select “XML subtree, including selected element”


6. Complete the Data Connection Wizard
Now that we have all the connections that are required, we now need to add the “submit” functionality to the form template.


Step 7: Add Submit functionality


1. Display the Data Source Task Pane
2. From the Data Source dropdown box choose the Add List Item Template data connection
3. Drill down through the data source, right-click on the Field node and choose Repeating Table


We need to change the text box control in the “Name” column to Read-only – if these values were to be changed it would affect the CAML and the submit would fail.
• Double-click on the text box in the Name column of the Repeating Table
• Select the Display tab
• Enable the Read-only property and click OK
• Add a new Button control to the View
• Double-click the button to display the Properties
• Click the Submit Options button
• Enable the option “Allow users to submit this form”
• Enable the option “Perform custom action using Rules” and click the Rules button
• Click the Add button
• Click the Add Action button
• From the Action dropdown box choose “Submit using a data connection”, select the “Web Service Submit” data connection and click OK
• Click the Add Action button
• From the Action dropdown box choose “Query using a data connection”, select the “MyContacts” data connection and click OK (this will automatically refresh the list in InfoPath so you can see the newly added record)


• Click OK until you are back to your form
NOTE: If you want to automatically clear out the submitted values, add another action to this Rule to “Set a field’s value” and the only option you need to specify is the “Field” option – select the “Field” node from the “Add List Item Template” data connection and then simply leave the Value option blank.


Step 8: Test


1. Click the Preview button to preview the form
2. Fill in values for each of the fields: Title, First Name, Last Name, E-mail and Phone


3. Click the Submit button – the contact information should be submitted successfully and the “MyContacts” list automatically updated

Monday, August 29, 2011

The administrator cannot browse the site from the server and recieves an error 401.1 Unauthorized


ISSUE DESCRIPTION
===================
=> SharePoint site is browsable from the client machine with the host header.
=> When browsing from the server, it prompts for credentials three times and then we get 401.1  
      Unauthorized error.
=> On server, we can browse the SharePoint site with server name

Cause :-  This behavior is by design
======

RESOLUTION
============
There are two methods to work around this issue, use one of the following methods, as appropriate for your situation.

1. Specify host names (Preferred method if NTLM authentication is desired)
2. Disable the loopback check (less-recommended method)

Please check the Below Url for More detailed Description and the steps to follow for the Resolution .

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

February 2011 CU for SharePoint 2010

Download SharePoint Foundation 2010 February 2011 CU
http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&kbnum=2475880

Download SharePoint Server 2010 February 2011 CU
http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&kbnum=2475878

Download SharePoint Server 2010 with Project Server February 2011 CU
http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&kbnum=2475879

After installing the fixes you need to run the SharePoint 2010 Products Configuration Wizard on each machine in the farm.

For the 2010 Server Products it is sufficient to install the SharePoint Server 2010 package as it includes the SharePoint Foundation package.

However i would suggest to go ahead and try to install both MSF and SP 2010

Sharepoint 2010 : Troubleshooting tips for the Synchronization Service

Below is a list of requirements and common points of failure for the user profile synchronization service.

If you have an issue with the sync service failing to start, stuck starting or stopping, verify the items below in the Your environment.

=> Verify that the Sync account is a member of the local administrators group.
=> Verify the account is a member of the farm administrators group.
=> Verify that a profile service application has been created prior to starting the sync service.
=> Verify that the application pool for the UPA is leveraging the farm account.

Look for SQL alias issues using CLICONFG – should be fixed with the CU1 update.

Verify proper permissions in SQL for Sync account – As this is leveraging the farm account, it should have DBCreator and SecurityAdmin.

Look at the registry keys for the FIM components: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\FIMService] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\FIMSynchronizationService]

Monitor ULSViewer during the sync service configuration with a filter of Category contains Profile applied.

Check Application and System logs for errors during configuration
Consider rebuilding the FIM registry keys – See FIMService file in the resources section of this document.
Consider rebuilding the User Profile Application to obtain a new sync database.

In this process you need to back up the profile and social databases, then specify those names where appropriate in the new UPA creation

While entering a new name to create a new sync db. This will recreate the UPA while preserving the social and profile data

Consider using Process Monitor to look for Access Denied issues

Verify if the domain was upgraded from Windows 2000.

 If so add the sync account to the “Pre-Windows 2000 Compatible Access” and “Windows Authorization Access” groups. If in doubt add the account being used by the sync service to those groups in AD as appropriate.

If service is stuck in starting or stopping, consider setting the FIM services back to their default values of Disabled and Local System, and rebooting the server.

SharePoint 2010 Service Pack 1

**** On Tuesday Service Pack 1 (SP1) for SharePoint 2010 was made available****

SP1 contains a number of important fixes that improve the SharePoint experience for our customers.

With the recommendation to install SP1 for SharePoint came a recommendation to Also deploy the June Cumulative Update (CU) for SharePoint simultaneously.

SharePoint 2010 and Office Server 2010 SP1
http://support.microsoft.com/kb/2532120

The SharePoint Server 2010 cumulative update refresh package (SharePoint server-package): June 30, 2011
http://support.microsoft.com/kb/2536599

Please refer the below link for further queries : http://blogs.technet.com/b/stefan_gossner/archive/2011/06/30/sharepoint-2010-service-pack-1-has-been-released-on-tuesday.aspx



Some useful Links for downloading tools for Sharepoint which includes Moss 2007 and 2010

Users cannot see the checked out files in the folder/ library

I Came across a Issue today wherein the user opened a ticket for the below issue Issue : Users cannot see the checked out files in the fo...