Tuesday, March 20, 2012

SharePoint Search Errors

Hi,

My senior has written an article for applying steps to resolve the share point search issues.

His article link is as below
http://ramesh-learningmoss2007.blogspot.in/2012/03/sharepoint-search-errors.html

Tuesday, March 6, 2012

User profile Replication Engine Issue - Help needed

Hi,
One of our colleague faced the issue as below
We are getting the below error in the log when we run the incremental replication(replicates user profile data/social data across different FARMs) hence we need to refresh the token. However, not sure how to refresh the Change token. Any help in this regard would be great.

Error on the pull from: https://abc.com
Destination Server: https://def.com
Change Token: 1;1867424;12/26/2011 10:38:06
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> The change token provided preceeds the earliest change available.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.Office.Server.AdministrationToolkit.ReplicationEngine.UserProfileChangeWebService.UserProfileChangeService.GetChangesWithRemotePersonalSiteHostUrl(String changeToken, UserProfileChangeQuery changeQuery)
at Microsoft.Office.Server.AdministrationToolkit.ReplicationEngine.IncrementalReplicator.PullUserProfileChanges(String changeToken)
at Microsoft.Office.Server.AdministrationToolkit.ReplicationEngine.IncrementalReplicator.Start()
3/2/2012 5:59 PM
User profile service incremental replication reached max number of retry and stopped.
Finally after doing some Google search,I gave reply as below
Hi Surendra,

This is with the changetoken getting out of sync.
You can try with refresh or stop start incremental sync.
please glance the below article for your reference.

http://blogs.technet.com/b/tapanm/archive/2009/07/15/understanding-user-profile-replication-engine.aspx

Monday, March 5, 2012

SharePoint 2010 with Windows PowerShell Remoting Step by Step

Hi,
Recently I have come across a link which explains Power shell script execution step by step remotely. You can have a look as per below link
http://blogs.msdn.com/b/opal/archive/2010/03/07/sharepoint-2010-with-windows-powershell-remoting-step-by-step.aspx

Friday, February 17, 2012

Issues after deploying SharePoint 2010 Designer Reusable Workflow

Hi,

I got the below issue from one of our colleague in our practise.

Issue
We need to deploy SharePoint designer reusable workflow for approval process to other site collections. We try to get the WSP file from SharePoint Designer using ‘Save as Template’. We try to Import Reusable workflow to Visual Studio using WSP generated above. We try deploy it to other sites and then we are facing the following issues.
1. When we try to Add a workflow to a list, the deployed workflow is listed in All content types. And when we try to select the custom content type we generated, the workflow is not displayed.
2. After adding that workflow to that list, when we initiate that workflow to a list item, it is creating a task. But when we try to edit that task form it is giving page not found error.

Considering this scenario, it would help us if anyone can provide us the deployment approach for a re-usable SharePoint Designer 2010 workflow as a WSP solution package.

After understanding the above,one of my teammate gave the solution as below i.e creating the feature and attaching to workflow association.


Reply
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{

SPWorkflowTemplate workflowTemplate = null; // Workflow template
SPWorkflowAssociation workflowAssociation = null; //Workflow association
SPList historyList = null; // Workflow history list
SPList taskList = null; // Workflow tasks list
SPList list = null;
//Sharepoint List
using (SPSite site = (SPSite)properties.Feature.Parent)
{
using (SPWeb web = site.OpenWeb())
{
web.AllowUnsafeUpdates = true;
workflowTemplate = web.WorkflowTemplates.GetTemplateByName(SPPROCWorkflowAssociationConstants.WorkFlowName, System.Globalization.CultureInfo.CurrentCulture);
list = web.Lists[SPPROCWorkflowAssociationConstants.TargetLibrary];
historyList = web.Lists[SPPROCWorkflowAssociationConstants.HistoryList];
taskList = web.Lists[SPPROCWorkflowAssociationConstants.TaskList];
SPContentType ctType = list.ContentTypes[SPPROCWorkflowAssociationConstants.ContentType];
try
{
// Create workflow association
workflowAssociation = SPWorkflowAssociation.CreateListContentTypeAssociation(workflowTemplate, SPPROCWorkflowAssociationConstants.WorkFlowName, taskList, historyList);
// Set workflow parameters
workflowAssociation.AllowManual = true;
workflowAssociation.AutoStartCreate = false;
workflowAssociation.AutoStartChange = false;
// Add workflow association to my list
ctType.WorkflowAssociations.Add(workflowAssociation);
// Enable workflow
workflowAssociation.Enabled = true;
}
catch(Exception exception)
{
SharePointLogger.Local.TraceToDeveloper(exception, exception.Message);
}
finally
{
web.AllowUnsafeUpdates = false;
}
}
}

}

Monday, February 13, 2012

Datasheet view error

HI,
One day I received a query from our colleague as below
While adding a list item in Datasheet view the below error is popping up.
List Structure Has Changed
“Another user has changed the structure of this list. All your pending changes to this list will be discarded. To retrieve the latest copy of the list, click Refresh.”
Did anyone face this kind of issue? Please suggest
Earlier I too got some problems where I was copying data from excel sheet that has been shared by client and pasting in the data sheet view of the list.
With that knowledge I replied the solution as
This happens when another person tries to add or delete a column from the list while you are adding content in datasheet view. If you are consistently getting this error, it will help to use the ribbon to switch to "standard view" then back to "datasheet view" to allow the changes to 'sync up'. It's important to realize the possibility that not all columns in the list are visible in the datasheet view. Non-visible changes to columns in a list can still affect the view in datasheet if you have pending changes.

For reference of this issue you can have a look as from below link.
http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/6c62115a-f85e-4407-a919-ab4560cf2060/

Monday, January 23, 2012

Auditing of SP 2010 My Sites

One of our colleague asked me the below query regarding Auditing in SP 2010 i.e.
"If we enable Auditing on SP 2010 Web App, does it include MySite.
How to enable Auditing in MySite SP2010.
Is there a way where in we can log/store changes to MySite."

Finally after doing the google search I was able to give solution as below and helped me too for learning new things. Solution is as follows

"To Enable auditing in MySite SP2010,use the stsadm command as below
stsadm -o activatefeature -name Reporting -url http://servername:portno –force
To check audit of My site web application, use the url in the below format:
http://[yourMySiteWebApp]/_layouts/Reporting.aspx?Category=Auditing"

Saturday, January 7, 2012

soap:Server was unable to process request.--->Value does not fall within the expected range.

Hi,

Sometimes our URL say http://servername:portno doesn’t work due to network issue.

Whereas http://localhost:portno works out, but when try to edit master file through SharePoint designer we may get the following issue.



After clicking on Details button, we can see the following message.



At that moment,this would be the show stopper to move ahead.
Finally from my trainer I got the below link and made the changes accordingly.
After doing this I was able to make the changes in the master page.

http://www.dhirajranka.com/?p=301

Hope now your way would be clear to edit the master file of the file.